GithubHelp home page GithubHelp logo

alan-knight / polymer_intl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

A sample of using Dart's Intl package with Polymer.

License: BSD 3-Clause "New" or "Revised" License

Dart 81.55% HTML 12.80% CSS 5.65%

polymer_intl's Introduction

A polymer component with localized messages

A simple demonstration of internationalization/localization with Polymer components. It defines a Polymer component that lets you choose from a selection of locales and displays a message translated for the selected locale.

The component is defined in localized.html and localized.dart, and the main entry point is polymer_intl.html

Files

  • pubspec.yaml: the Pub dependencies for this application.

  • web/polymer_intl.html: the main application file. This imports and uses the <localized-example> custom element.

  • web/polymer_intl.css: Styles for the application.

  • web/localized.html, web/localized.dart: Defines the <localized-example> custom element.

  • intl_messages.arb, translation_fr.arb, and translation_pt.arb: Data files used in the translation process.

  • messages_all.dart, messages_fr.dart, and messages_pt.dart: Generated code defining Dart libraries with the translated messages. To regenerate these, from the web directory, run

pub global run intl:generate_from_arb localized.dart translation_*.arb

polymer_intl's People

Contributors

alan-knight avatar

Watchers

 avatar

polymer_intl's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.