build/webapp-optimize.js
/**
 * Embeds a JSON AST of l10n resources in a document.
 */
Embeds a JSON AST of l10n resources in a document.
Embeds a JSON AST of l10n resources in a document .
function embedL10nResources(node, entries) {
  for (var lang in entries) {
    if (!entries[lang]) {
      continue;
    }
    var script = node.ownerDocument.createElement('script');
    script.type = 'application/l10n';
    script.lang = lang;
    script.innerHTML = '\n  ' + JSON.stringify(entries[lang]) + '\n';
    node.appendChild(script);
  }
}
function embedL10nResources ( node , entries ) { for ( var lang in entries ) { if ( ! entries [ lang ] ) { continue ; } var script = node . ownerDocument . createElement ( 'script' ) ; script . type = 'application/l10n' ; script . lang = lang ; script . innerHTML = '\n  ' + JSON . stringify ( entries [ lang ] ) + '\n' ; node . appendChild ( script ) ; } }
Embeds a JSON AST of l10n resources in a document.
Embeds a JSON AST of l10n resources in a document .
// split the l10n entries on a per-locale basis, // and embed it in the HTML document by enclosing it in <script> nodes. // skip to the next language if the AST is null