-
Notifications
You must be signed in to change notification settings - Fork 7
locale/newTab.js should be an JSON file #114
Comments
Loosely depends on: |
Can do: async function fetchXML(url){
var response = await fetch(url);
var text = await response.text();
return (new DOMParser()).parseFromString(text, "text/xml");
} |
Any reason why we want locale/newTab.js as XML? If we re-use the XML as-is currently, there is a need for 2 requests: the xml and the DTD which actually contains the text: http://mxr.mozilla.org/l10n-central/source/en-GB/browser/chrome/browser/newTab.dtd There is also no locale XML for en-US in l10n-central. How about we provide one JSON file per locale, generated as a build step? |
(Note, this is a v2 thing)
Yeah, the currently used format is pretty awful.
|
we should load newTab.js strings as needed, using fetch as XML.
The text was updated successfully, but these errors were encountered: