Remove dayjs language fallback

This commit is contained in:
Wruczek 2020-10-23 18:07:32 +02:00
parent 9a5e05ca84
commit 3aca04e04c
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
{$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/plugin/localizedFormat.min.js", "sha256-kP2eKuLMKEa/YcMNj0kW8qRpNtjAE4rJrS8PPL3vxCc=")} {$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/plugin/localizedFormat.min.js", "sha256-kP2eKuLMKEa/YcMNj0kW8qRpNtjAE4rJrS8PPL3vxCc=")}
{$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/plugin/relativeTime.min.js", "sha256-K66CFTJDYaJ07agFxxju12e79nVEG+OuRN+hl9ivxYI=")} {$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/plugin/relativeTime.min.js", "sha256-K66CFTJDYaJ07agFxxju12e79nVEG+OuRN+hl9ivxYI=")}
{var $dayjslang = __get("DAYJS_LANG", [], true) ?? __get("MOMENTJS_LANG", [], true)} {var $dayjslang = __get("DAYJS_LANG", [], true)}
{if $dayjslang !== null && $dayjslang !== "en"} {if $dayjslang !== null && $dayjslang !== "en"}
{$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/locale/$dayjslang.js")} {$tplutils::includeScript("{cdnjs}/dayjs/1.9.3/locale/$dayjslang.js")}
<script> <script>