diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/head.html | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index 32bf337bc..fc16eb2dc 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -62,14 +62,11 @@ <style id="antiClickjack">body{display:none !important;}</style> <script> - // if ('ReactIntl' in window && 'ReactIntlLocaleData' in window) { - // Object.keys(ReactIntlLocaleData).forEach((lang) => { - // ReactIntl.addLocaleData(ReactIntlLocaleData[lang]); - // }); - // } - - ReactIntl.addLocaleData(ReactIntlLocaleData.en); - ReactIntl.addLocaleData(ReactIntlLocaleData.es); + if ('ReactIntl' in window && 'ReactIntlLocaleData' in window) { + Object.keys(ReactIntlLocaleData).forEach(function(lang) { + ReactIntl.addLocaleData(ReactIntlLocaleData[lang]); + }); + } window.mm_config = {{ .ClientCfg }}; window.mm_license = {{ .ClientLicense }}; |