Bring back wip temporarily for the dark ship of fr, ru, ko, and de (#32539)
This commit is contained in:
@@ -9,7 +9,8 @@ function translationExists(language) {
|
||||
if (language.code === 'zh') {
|
||||
return chineseRegions.includes(language.region)
|
||||
}
|
||||
return languageKeys.includes(language.code)
|
||||
// 92BD1212-61B8-4E7A: Remove ` && !languages[language.code].wip` for the public ship of ko, fr, de, ru
|
||||
return languageKeys.includes(language.code) && !languages[language.code].wip
|
||||
}
|
||||
|
||||
function getLanguageCode(language) {
|
||||
@@ -34,7 +35,8 @@ function getUserLanguage(browserLanguages) {
|
||||
|
||||
function getUserLanguageFromCookie(req) {
|
||||
const value = req.cookies[PREFERRED_LOCALE_COOKIE_NAME]
|
||||
if (value && languages[value]) {
|
||||
// 92BD1212-61B8-4E7A: Remove ` && !languages[value].wip` for the public ship of ko, fr, de, ru
|
||||
if (value && languages[value] && !languages[value].wip) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user