Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: samples/polymer_intl/README.md

Issue 105073003: Adds a sample for polymer internationalization/localization (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes from review Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samples/polymer_intl/build.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/polymer_intl/README.md
diff --git a/samples/polymer_intl/README.md b/samples/polymer_intl/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..a41a354c93dd0f067df7c27597eab2c020bfc861
--- /dev/null
+++ b/samples/polymer_intl/README.md
@@ -0,0 +1,29 @@
+## 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.
+
+* `build.dart`: creates the deployed Polymer 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.json`, `translation_fr.json`, and `translation_pt.json`:
+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.
« no previous file with comments | « no previous file | samples/polymer_intl/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698