mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 05:12:52 +00:00
Don't translate if we do not have a language
This will most likely be because we have not enabled translation
This commit is contained in:
parent
ff117979c6
commit
a12ebcd401
|
|
@ -27,6 +27,10 @@ function setLanguage(lang) {
|
|||
}
|
||||
|
||||
function translate(str) {
|
||||
if (!language || language === '') {
|
||||
return str;
|
||||
}
|
||||
|
||||
if (
|
||||
!translation[language] ||
|
||||
!translation[language]['pages-strings'] ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue