Skip to content

Commit f19157a

Browse files
authored
Merge pull request #607 from lbedner/french
French Support
2 parents 76e964d + 8b8226e commit f19157a

17 files changed

Lines changed: 1728 additions & 5541 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, ja, ko, zh, zh_Hant). Default: auto-detect from AEGIS_LANG or system locale",
68+
help="Output language (en, fr, ja, ko, 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", "ja", "ko", "zh", "zh_Hant"}
3+
AVAILABLE_LOCALES: set[str] = {"en", "fr", "ja", "ko", "zh", "zh_Hant"}

aegis/i18n/locales/fr.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
@@ -71,6 +71,10 @@ def _load_locale(locale: str) -> None:
7171
from .locales.zh import MESSAGES
7272

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

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

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, ja, ko, zh, zh_Hant). Default: auto-detect",
16+
"main.opt_lang": "Output language (en, fr, ja, ko, 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: 935 additions & 0 deletions
Large diffs are not rendered by default.

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": "出力言語(en、ja、ko、zh、zh_Hant)。デフォルト:自動検出",
16+
"main.opt_lang": "出力言語(en、fr、ja、ko、zh、zh_Hant)。デフォルト:自動検出",
1717
# ── ヘルスチェック ─────────────────────────────────────────────────
1818
"health.count_healthy": "{count} 件正常",
1919
"health.count_warning": "{count} 件警告",

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, ja, ko, zh, zh_Hant). 기본값: 자동 감지",
16+
"main.opt_lang": "출력 언어 (en, fr, ja, ko, zh, zh_Hant). 기본값: 자동 감지",
1717
# ── Health ────────────────────────────────────────────────────────
1818
"health.count_healthy": "{count}개 정상",
1919
"health.count_warning": "{count}개 경고",

aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/zh.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": "项目命令行工具",
16-
"main.opt_lang": "输出语言(en、ja、ko、zh、zh_Hant),默认自动检测系统语言",
16+
"main.opt_lang": "输出语言(en、fr、ja、ko、zh、zh_Hant),默认自动检测系统语言",
1717
# ── 健康检查 ──────────────────────────────────────────────────────
1818
"health.count_healthy": "{count} 个正常",
1919
"health.count_warning": "{count} 个警告",

0 commit comments

Comments
 (0)