From 47842c124338d1214057e1cb58814e9ab59da2da Mon Sep 17 00:00:00 2001 From: Peter Pfeufer Date: Wed, 26 Feb 2025 21:45:41 +0100 Subject: [PATCH] [FIX] Correct locale link for moment js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The other one was the directory for the node modules … --- .../project_template/project_name/settings/base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index 3ee41ac0..900c1b77 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -119,8 +119,12 @@ LANGUAGES = ( # Sorted by Language Code alphabetical order + English at top # Django's language codes are different from some of the libraries we use, # so we need to map them. +# When adding a new language, please remember to add it to the mapping +# and add the language files to their respective directories under `allianceauth/static/allianceauth/libs/`. LANGUAGE_MAPPING = { # See https://github.com/DataTables/Plugins/tree/master/i18n for available languages + # (We use the JSON files) + # `allianceauth/static/allianceauth/libs/DataTables/Plugins/{version}/i18n/` for the files "DataTables": { "cs-cz": "cs", "de": "de-DE", @@ -135,7 +139,8 @@ LANGUAGE_MAPPING = { "uk": "uk", "zh-hans": "zh-HANT", }, - # See https://github.com/moment/moment/tree/master/src/locale for available languages + # See https://github.com/moment/moment/tree/master/locale for available languages + # `allianceauth/static/allianceauth/libs/moment.js/{version}/locale/` for the files "MomentJS": { "cs-cz": "cs", "de": "de",