Skip to content

Commit 197ea71

Browse files
authored
Merge pull request #609 from lbedner/spanish
Spanish Support
2 parents 7b2c3ce + c525f33 commit 197ea71

16 files changed

Lines changed: 1752 additions & 12 deletions

File tree

aegis/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main(
6565
lang: str | None = typer.Option(
6666
None,
6767
"--lang",
68-
help="Output language (de, en, fr, ja, ko, ru, zh, zh_Hant). Default: auto-detect from AEGIS_LANG or system locale",
68+
help="Output language (de, en, es, fr, ja, ko, ru, zh, zh_Hant). Default: auto-detect from AEGIS_LANG or system locale",
6969
envvar="AEGIS_LANG",
7070
),
7171
) -> None:

aegis/i18n/locales/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
"""Available locales for Aegis Stack CLI."""
22

3-
AVAILABLE_LOCALES: set[str] = {"de", "en", "fr", "ja", "ko", "ru", "zh", "zh_Hant"}
3+
AVAILABLE_LOCALES: set[str] = {
4+
"de",
5+
"en",
6+
"es",
7+
"fr",
8+
"ja",
9+
"ko",
10+
"ru",
11+
"zh",
12+
"zh_Hant",
13+
}

aegis/i18n/locales/es.py

Lines changed: 757 additions & 0 deletions
Large diffs are not rendered by default.

aegis/i18n/registry.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ def _load_locale(locale: str) -> None:
7575
from .locales.de import MESSAGES
7676

7777
_messages["de"] = MESSAGES
78+
elif locale == "es":
79+
from .locales.es import MESSAGES
80+
81+
_messages["es"] = MESSAGES
7882
elif locale == "fr":
7983
from .locales.fr import MESSAGES
8084

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
"""Available locales for the project CLI."""
22

3-
AVAILABLE_LOCALES: set[str] = {"de", "en", "fr", "ja", "ko", "ru", "zh", "zh_Hant"}
3+
AVAILABLE_LOCALES: set[str] = {
4+
"de",
5+
"en",
6+
"es",
7+
"fr",
8+
"ja",
9+
"ko",
10+
"ru",
11+
"zh",
12+
"zh_Hant",
13+
}

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/de.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main.unsupported_lang": "Sprache '{lang}' nicht unterstützt. Verfügbar: {available}",
1414
# Help text
1515
"main.help": "Projekt-Management-CLI",
16-
"main.opt_lang": "Ausgabesprache (de, en, fr, ja, ko, ru, zh, zh_Hant). Standard: automatisch",
16+
"main.opt_lang": "Ausgabesprache (de, en, es, fr, ja, ko, ru, zh, zh_Hant). Standard: automatisch",
1717
# ── Health ────────────────────────────────────────────────────────
1818
"health.count_healthy": "{count} gesund",
1919
"health.count_warning": "{count} Warnung",

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/en.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main.unsupported_lang": "Unsupported language '{lang}'. Available: {available}",
1414
# Help text
1515
"main.help": "Project management CLI",
16-
"main.opt_lang": "Output language (de, en, fr, ja, ko, ru, zh, zh_Hant). Default: auto-detect",
16+
"main.opt_lang": "Output language (de, en, es, fr, ja, ko, ru, zh, zh_Hant). Default: auto-detect",
1717
# ── Health ────────────────────────────────────────────────────────
1818
"health.count_healthy": "{count} healthy",
1919
"health.count_warning": "{count} warning",

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/es.py

Lines changed: 935 additions & 0 deletions
Large diffs are not rendered by default.

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/fr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main.unsupported_lang": "Langue non prise en charge « {lang} ». Disponibles : {available}",
1414
# Texte d'aide
1515
"main.help": "CLI de gestion de projet",
16-
"main.opt_lang": "Langue de sortie (de, en, fr, ja, ko, ru, zh, zh_Hant). Par défaut : détection auto",
16+
"main.opt_lang": "Langue de sortie (de, en, es, fr, ja, ko, ru, zh, zh_Hant). Par défaut : détection auto",
1717
# ── Santé ────────────────────────────────────────────────────────
1818
"health.count_healthy": "{count} sain(s)",
1919
"health.count_warning": "{count} avertissement",

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/ja.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main.unsupported_lang": "未対応の言語 '{lang}'。利用可能:{available}",
1414
# ヘルプ
1515
"main.help": "プロジェクト管理CLI",
16-
"main.opt_lang": "出力言語(de、en、fr、ja、ko、ru、zh、zh_Hant)。デフォルト:自動検出",
16+
"main.opt_lang": "出力言語(de、en、es、fr、ja、ko、ru、zh、zh_Hant)。デフォルト:自動検出",
1717
# ── ヘルスチェック ─────────────────────────────────────────────────
1818
"health.count_healthy": "{count} 件正常",
1919
"health.count_warning": "{count} 件警告",

0 commit comments

Comments
 (0)