MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / loadCoreTranslationsFallback

Function loadCoreTranslationsFallback

js/translator.js:119–125  ·  view source on GitHub ↗

* Load the core translations' fallback. * The first language defined in translations.js will be used.

()

Source from the content-addressed store, hash-verified

117 * The first language defined in translations.js will be used.
118 */
119 async loadCoreTranslationsFallback () {
120 let first = Object.keys(translations)[0];
121 if (first) {
122 Log.log(`[translator] Loading core translation fallback file: ${translations[first]}`);
123 this.coreTranslationsFallback = await loadJSON(translations[first]);
124 }
125 }
126 };
127}());
128

Callers

nothing calls this directly

Calls 1

loadJSONFunction · 0.85

Tested by

no test coverage detected