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

Unified Diff: src/site/samples/polymer_intl/example/polymer_intl.html

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
Index: src/site/samples/polymer_intl/example/polymer_intl.html
diff --git a/src/site/samples/polymer_intl/example/polymer_intl.html b/src/site/samples/polymer_intl/example/polymer_intl.html
new file mode 100644
index 0000000000000000000000000000000000000000..dc211e6cef987626e1ba6c3d0e3e6b1914062918
--- /dev/null
+++ b/src/site/samples/polymer_intl/example/polymer_intl.html
@@ -0,0 +1,35 @@
+<!--
+Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+for details. All rights reserved. Use of this source code is governed by a
+BSD-style license that can be found in the LICENSE file.
+--><!DOCTYPE html><html><head><script src="packages/shadow_dom/shadow_dom.debug.js"></script>
+<script src="packages/custom_element/custom-elements.debug.js"></script>
+<script src="packages/browser/interop.js"></script>
+
+ <meta charset="utf-8">
+ <title>Localization Example</title>
+ <link rel="stylesheet" href="polymer_intl.css">
+
+
+ <script src="polymer_intl.html_bootstrap.dart.js"></script>
+
+ </head>
+ <body><polymer-element name="localized-example">
+ <template>
+ <h1>Polymer Internationalized Messages Example</h1>
+
+ <p>{{helloWorld}}</p>
+
+ <select value="{{selectedLocale}}">
+ <option value="en_US">English</option>
+ <option value="fr">French</option>
+ <option value="pt">Portuguese</option>
+ </select>
+ </template>
+
+</polymer-element>
+
+ <localized-example></localized-example>
+
+
+</body></html>

Powered by Google App Engine
This is Rietveld 408576698