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

Unified Diff: src/site/samples/polymer_intl/index.markdown

Issue 140303004: Added polymer internationalization sample (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Small changes Created 6 years, 11 months 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 | « src/site/samples/polymer_intl/example/translation_pt.json ('k') | src/site/samples/samples.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/polymer_intl/index.markdown
diff --git a/src/site/samples/polymer_intl/index.markdown b/src/site/samples/polymer_intl/index.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..896c6673447da4ebe6a75314937323cabfc412e3
--- /dev/null
+++ b/src/site/samples/polymer_intl/index.markdown
@@ -0,0 +1,27 @@
+---
+layout: default
+title: A Polymer Component with Localized Messages
+live_example_url: example/polymer_intl.html
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+A simple demonstration of internationalization/localization
+with Polymer components. The demo 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`.
+
+Read the
+[source](https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/samples/polymer_intl).
+
+<iframe class="running-app-frame"
+ style="height:400px;width:100%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/).
« no previous file with comments | « src/site/samples/polymer_intl/example/translation_pt.json ('k') | src/site/samples/samples.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698