Adds sitemap.xml. Adds 'Help Translate' to translatable strings. Error messages and fn name cleanups. (#136)

* added a note about needing more than one language to be enabled to allow for a drop down

* Removing debug statements

* Add 'Help Translate' to translatable strings, improves error messages around missing translated strings, calls write-translations on some routes

* Adds sitemap.xml to live server and build. Versioning not supported. -- Also did some file name and module cache cleanups.
This commit is contained in:
Eric Nakagawa 2017-10-18 12:55:58 -07:00 committed by Joel Marcey
parent 30eea17a24
commit bcba05ae03
19 changed files with 495 additions and 245 deletions

View file

@ -32,6 +32,8 @@ const translation = { languages: enabledLanguages };
const files = glob.sync(CWD + "/i18n/**");
const langRegex = /\/i18n\/(.*)\.json$/;
console.log("Loading translation files...");
files.forEach(file => {
const extension = path.extname(file);
if (extension === ".json") {