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