Locales/Domain

* entirely switch over to write 'en' for locale 0 and accept both 'www' and 'en' for locale 0 when receiving
This commit is contained in:
Sarjuuk
2024-08-30 15:37:13 +02:00
parent e3fc4ebd62
commit a62f24b97c
8 changed files with 20 additions and 21 deletions

View File

@@ -928,7 +928,7 @@ $WH.g_getLocaleFromDomain.L = {
cn: 4,
es: 6,
ru: 8,
www: 0
en: 0
};
$WH.g_getDomainFromLocale = function(locale) {
@@ -941,7 +941,7 @@ $WH.g_getDomainFromLocale = function(locale) {
lookup = $WH.g_getDomainFromLocale.L = $WH.g_createReverseLookupJson($WH.g_getLocaleFromDomain.L);
}
return (lookup[locale] ? lookup[locale] : 'www');
return (lookup[locale] ? lookup[locale] : 'en');
}
$WH.g_getIdFromTypeName = function (typeName) {