Skip to content

Commit 9db0db8

Browse files
authored
Merge pull request #605 from lbedner/japanese
Japanese Support
2 parents 4f005bc + 866397b commit 9db0db8

14 files changed

Lines changed: 4713 additions & 1669 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 (en, ko, zh). Default: auto-detect from AEGIS_LANG or system locale",
68+
help="Output language (en, ja, ko, zh). Default: auto-detect from AEGIS_LANG or system locale",
6969
envvar="AEGIS_LANG",
7070
),
7171
) -> None:

aegis/cli/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,6 @@ def validate_and_resolve_services(
219219

220220
# Show what components were added by services
221221
if service_added:
222-
typer.echo(f"Services require components: {', '.join(service_added)}")
222+
typer.echo(t("init.services_require", components=", ".join(service_added)))
223223

224224
return selected_services

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", "ko", "zh"}
3+
AVAILABLE_LOCALES: set[str] = {"en", "ja", "ko", "zh"}

aegis/i18n/locales/ja.py

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

aegis/i18n/locales/ko.py

Lines changed: 258 additions & 279 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
@@ -65,6 +65,10 @@ def _load_locale(locale: str) -> None:
6565
from .locales.zh import MESSAGES
6666

6767
_messages["zh"] = MESSAGES
68+
elif locale == "ja":
69+
from .locales.ja import MESSAGES
70+
71+
_messages["ja"] = MESSAGES
6872
elif locale == "ko":
6973
from .locales.ko import MESSAGES
7074

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", "ko", "zh"}
3+
AVAILABLE_LOCALES: set[str] = {"en", "ja", "ko", "zh"}

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, ko, zh). Default: auto-detect",
16+
"main.opt_lang": "Output language (en, ja, ko, zh). 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/ja.py

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

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/ko.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
# Help text
1515
"main.help": "프로젝트 관리 CLI",
16-
"main.opt_lang": "출력 언어 (en, ko, zh). 기본값: 자동 감지",
16+
"main.opt_lang": "출력 언어 (en, ja, ko, zh). 기본값: 자동 감지",
1717
# ── Health ────────────────────────────────────────────────────────
1818
"health.count_healthy": "{count}개 정상",
1919
"health.count_warning": "{count}개 경고",

0 commit comments

Comments
 (0)