OLD | NEW |
(Empty) | |
| 1 ## A polymer component with localized messages |
| 2 |
| 3 A simple demonstration of internationalization/localization |
| 4 with Polymer components. It defines a Polymer component that lets you |
| 5 choose from a selection of locales and displays a message translated |
| 6 for the selected locale. |
| 7 |
| 8 The component is defined in localized.html and localized.dart, and the |
| 9 main entry point is polymer_intl.html |
| 10 |
| 11 ### Files |
| 12 |
| 13 * `pubspec.yaml`: the Pub dependencies for this application. |
| 14 |
| 15 * `build.dart`: creates the deployed Polymer application. |
| 16 |
| 17 * `web/polymer_intl.html`: the main application file. This imports and |
| 18 uses the `<localized-example>` custom element. |
| 19 |
| 20 * `web/polymer_intl.css`: Styles for the application. |
| 21 |
| 22 * `web/localized.html`, `web/localized.dart`: Defines the |
| 23 `<localized-example>` custom element. |
| 24 |
| 25 * `intl_messages.json`, `translation_fr.json`, and `translation_pt.json`: |
| 26 Data files used in the translation process. |
| 27 |
| 28 * `messages_all.dart`, `messages_fr.dart`, and `messages_pt.dart`: |
| 29 Generated code defining Dart libraries with the translated messages. |
OLD | NEW |