Merge branch 'lcode-links' into 'master'

[ADD] Links to available languages for mapping

See merge request allianceauth/allianceauth!1690
This commit is contained in:
Ariel Rin 2025-02-26 10:18:31 +00:00
commit 12fa38b446

View File

@ -120,6 +120,7 @@ LANGUAGES = ( # Sorted by Language Code alphabetical order + English at top
# Django's language codes are different from some of the libraries we use, # Django's language codes are different from some of the libraries we use,
# so we need to map them. # so we need to map them.
LANGUAGE_MAPPING = { LANGUAGE_MAPPING = {
# See https://github.com/DataTables/Plugins/tree/master/i18n for available languages
"DataTables": { "DataTables": {
"cs-cz": "cs", "cs-cz": "cs",
"de": "de-DE", "de": "de-DE",
@ -134,6 +135,7 @@ LANGUAGE_MAPPING = {
"uk": "uk", "uk": "uk",
"zh-hans": "zh-HANT", "zh-hans": "zh-HANT",
}, },
# See https://github.com/moment/moment/tree/master/src/locale for available languages
"MomentJS": { "MomentJS": {
"cs-cz": "cs", "cs-cz": "cs",
"de": "de", "de": "de",