1
0
mirror of synced 2025-12-21 02:46:50 -05:00

Bring back wip temporarily for the dark ship of fr, ru, ko, and de (#32539)

This commit is contained in:
Grace Park
2022-11-10 16:25:50 -08:00
committed by GitHub
parent 47cd1d3033
commit 0ed7777736
5 changed files with 18 additions and 7 deletions

View File

@@ -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
}
}