mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Move languageNames and scriptNames data to the individual locale files instead of always loading them via locales.json (re: #7994)
This commit is contained in:
@@ -152,8 +152,10 @@ export function coreLocalizer() {
|
||||
_textDirection = currentData && currentData.rtl ? 'rtl' : 'ltr';
|
||||
}
|
||||
|
||||
_languageNames = currentData && currentData.languageNames;
|
||||
_scriptNames = currentData && currentData.scriptNames;
|
||||
let locale = _localeCode;
|
||||
if (locale.toLowerCase() === 'en-us') locale = 'en';
|
||||
_languageNames = _localeStrings[locale].languageNames;
|
||||
_scriptNames = _localeStrings[locale].scriptNames;
|
||||
|
||||
_usesMetric = _localeCode.slice(-3).toLowerCase() !== '-us';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user