Use minified day.js locale files

This commit is contained in:
Sascha Moser 2021-02-05 22:31:37 +01:00 committed by GitHub
parent 1347556b41
commit 70d2c7f870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
{var $dayjslang = __get("DAYJS_LANG", [], true)} {var $dayjslang = __get("DAYJS_LANG", [], true)}
{if $dayjslang !== null && $dayjslang !== "en"} {if $dayjslang !== null && $dayjslang !== "en"}
{$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.js")} {$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.min.js")}
<script> <script>
dayjs.locale({$dayjslang} || navigator.languages || navigator.language) dayjs.locale({$dayjslang} || navigator.languages || navigator.language)
</script> </script>