Merge branch 'devel' into next
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ const language = (params && params.hl) ||
|
|||||||
const baseLanguage = language.toLowerCase().split(/[-_]/)[0];
|
const baseLanguage = language.toLowerCase().split(/[-_]/)[0];
|
||||||
|
|
||||||
// Try the full locale first, then the locale without the region code, fallback to 'en'.
|
// Try the full locale first, then the locale without the region code, fallback to 'en'.
|
||||||
const htmlLang = allMessages[language] ? langauge : allMessages[baseLanguage] ? baseLanguage : 'en';
|
const htmlLang = allMessages[language] ? language : allMessages[baseLanguage] ? baseLanguage : 'en';
|
||||||
const messages = allMessages[htmlLang];
|
const messages = allMessages[htmlLang];
|
||||||
|
|
||||||
// Set lang attribute of the HTML element: <html lang="XX">
|
// Set lang attribute of the HTML element: <html lang="XX">
|
||||||
|
|||||||
Reference in New Issue
Block a user