Skip to content

Commit 31adbdd

Browse files
author
Aegis Stack
committed
Russian And German Support
1 parent f19157a commit 31adbdd

17 files changed

Lines changed: 3423 additions & 14 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,6 @@ demos/recordings
140140

141141
# Typical generated stack folders
142142
my-app/
143+
144+
# Translation review artifacts
145+
aegis_*_review.csv

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 (en, fr, ja, ko, zh, zh_Hant). Default: auto-detect from AEGIS_LANG or system locale",
68+
help="Output language (de, en, 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Available locales for Aegis Stack CLI."""
22

3-
AVAILABLE_LOCALES: set[str] = {"en", "fr", "ja", "ko", "zh", "zh_Hant"}
3+
AVAILABLE_LOCALES: set[str] = {"de", "en", "fr", "ja", "ko", "ru", "zh", "zh_Hant"}

aegis/i18n/locales/de.py

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

aegis/i18n/locales/ru.py

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

aegis/i18n/registry.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ def _load_locale(locale: str) -> None:
7171
from .locales.zh import MESSAGES
7272

7373
_messages["zh"] = MESSAGES
74+
elif locale == "de":
75+
from .locales.de import MESSAGES
76+
77+
_messages["de"] = MESSAGES
7478
elif locale == "fr":
7579
from .locales.fr import MESSAGES
7680

@@ -83,6 +87,10 @@ def _load_locale(locale: str) -> None:
8387
from .locales.ko import MESSAGES
8488

8589
_messages["ko"] = MESSAGES
90+
elif locale == "ru":
91+
from .locales.ru import MESSAGES
92+
93+
_messages["ru"] = MESSAGES
8694
elif locale == "zh_Hant":
8795
from .locales.zh_hant import MESSAGES
8896

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

3-
AVAILABLE_LOCALES: set[str] = {"en", "fr", "ja", "ko", "zh", "zh_Hant"}
3+
AVAILABLE_LOCALES: set[str] = {"de", "en", "fr", "ja", "ko", "ru", "zh", "zh_Hant"}

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

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

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 (en, fr, ja, ko, zh, zh_Hant). Default: auto-detect",
16+
"main.opt_lang": "Output language (de, en, 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/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 (en, fr, ja, ko, zh, zh_Hant). Par défaut : détection auto",
16+
"main.opt_lang": "Langue de sortie (de, en, 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",

0 commit comments

Comments
 (0)