Install the global window.t(key) translator. Picks the active language from Settings.localStorage.language (seeded from navigator.language and overridable via Settings.setLocalStorage("language", ...)). Falls back to defaultLanguage when the active language isn't registered; returns the key itself when a translation is missing. Both fallback cases log a throttled console.warn. Logs console.error per missing key during preparation if some languages don't cover every key. Throws if defaultLanguage isn't in languages.
Install the global
window.t(key)translator. Picks the active language fromSettings.localStorage.language(seeded fromnavigator.languageand overridable viaSettings.setLocalStorage("language", ...)). Falls back todefaultLanguagewhen the active language isn't registered; returns the key itself when a translation is missing. Both fallback cases log a throttledconsole.warn. Logsconsole.errorper missing key during preparation if some languages don't cover every key. Throws ifdefaultLanguageisn't inlanguages.