fix(giscus): fallback to en if no language code is set (#1084)

This commit is contained in:
Jimmy Cai 2024-10-20 10:04:59 +02:00 committed by GitHub
parent 37f1541c20
commit 5175ac5ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,7 @@
data-emit-metadata="{{- default 0 .emitMetadata -}}" data-emit-metadata="{{- default 0 .emitMetadata -}}"
data-input-position="{{- default `top` .inputPosition -}}" data-input-position="{{- default `top` .inputPosition -}}"
data-theme="{{- default `light` .lightTheme -}}" data-theme="{{- default `light` .lightTheme -}}"
data-lang="{{- default $.Language.LanguageCode .lang -}}" data-lang="{{- default (default `en` $.Language.LanguageCode) .lang -}}"
data-loading="{{- .loading -}}" data-loading="{{- .loading -}}"
crossorigin="anonymous" crossorigin="anonymous"
async async