Added note about language degradation
This commit is contained in:
@ -111,13 +111,18 @@ export function mapChallengeToLang(
|
||||
lang = 'en';
|
||||
}
|
||||
const translation = translations[lang] || {};
|
||||
const isTranslated = Object.keys(translation).length > 0;
|
||||
if (lang !== 'en') {
|
||||
challenge = {
|
||||
...challenge,
|
||||
...translation
|
||||
...translation,
|
||||
isTranslated
|
||||
};
|
||||
}
|
||||
return challenge;
|
||||
return {
|
||||
...challenge,
|
||||
isTranslated
|
||||
};
|
||||
}
|
||||
|
||||
export function getMapForLang(lang) {
|
||||
@ -133,4 +138,3 @@ export function getMapForLang(lang) {
|
||||
return { result, entities };
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user