OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 <include src="i18n_template_no_process.js"> | |
6 | |
7 // Only start processing translations after polymer-ready has fired. This | |
8 // ensures that Elements in the shadow DOM are also translated. Note that this | |
9 // file should only be included in projects using Polymer. Otherwise, the | |
10 // "polymer-ready" event will never fire, and the page will not be translated. | |
11 window.addEventListener('polymer-ready', function() { | |
12 i18nTemplate.process(document, loadTimeData); | |
13 }); | |
OLD | NEW |