Skip to content

Commit f3427e2

Browse files
HatemMnManuthor
authored andcommitted
feat: add i18n french support
1 parent 26db139 commit f3427e2

12 files changed

Lines changed: 2800 additions & 14 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repos:
4646
rev: v1.31.1
4747
hooks:
4848
- id: typos
49-
exclude: documentation/docs/images/google_cse.drawio.svg|crate/test_server/src/test_jwt.rs|crate/pkcs11/documentation/veracrypt_ckms.svg|crate/server/src/tests/google_cse/|documentation/docs/pkcs11/images|documentation/docs/kms_clients/pkcs11/images|crate/server/resources|documentation/docs/algorithms.md|crate/server/src/tests/certificates/chain/root/ca/|documentation/docs/pki/smime.md|documentation/docs/hsms/proteccio.md|crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs|crate/clients/ckms/src/tests/shared/export_import.rs|ui/src/Locate.tsx|kmip/|.mise/scripts/oracle/README_HSM.md|crate/pkcs11/documentation/veracrypt_ckms.svg|documentation/docs/pkcs11/images|nix/signing-keys/cosmian-kms-public.asc|sbom/|documentation/docs/certifications_and_compliance/cryptographic_algorithms/benchmarks/|crate/clients/clap/src/tests/shared/export_import.rs|crate/crypto/src/crypto/fpe/ff1.rs|documentation/docs/benchmarks/|.mise/scripts/bench/bench_run_flamegraph.sh|docs.instructions.md|crate/server/src/tests/jose/rfc_vectors.rs
49+
exclude: documentation/docs/images/google_cse.drawio.svg|crate/test_server/src/test_jwt.rs|crate/pkcs11/documentation/veracrypt_ckms.svg|crate/server/src/tests/google_cse/|documentation/docs/pkcs11/images|documentation/docs/kms_clients/pkcs11/images|crate/server/resources|documentation/docs/algorithms.md|crate/server/src/tests/certificates/chain/root/ca/|documentation/docs/pki/smime.md|documentation/docs/hsms/proteccio.md|crate/crypto/src/crypto/rsa/ckm_rsa_aes_key_wrap.rs|crate/clients/ckms/src/tests/shared/export_import.rs|ui/src/Locate.tsx|kmip/|.mise/scripts/oracle/README_HSM.md|crate/pkcs11/documentation/veracrypt_ckms.svg|documentation/docs/pkcs11/images|nix/signing-keys/cosmian-kms-public.asc|sbom/|documentation/docs/certifications_and_compliance/cryptographic_algorithms/benchmarks/|crate/clients/clap/src/tests/shared/export_import.rs|crate/crypto/src/crypto/fpe/ff1.rs|documentation/docs/benchmarks/|.mise/scripts/bench/bench_run_flamegraph.sh|docs.instructions.md|crate/server/src/tests/jose/rfc_vectors.rs|ui/src/i18n/locales/fr/|ui/src/i18n/locales/zh-CN
5050

5151
- repo: https://github.com/Lucas-C/pre-commit-hooks
5252
rev: v1.5.5

CHANGELOG/feat_french_kms.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Features
2+
3+
### UI
4+
5+
- Add French (`fr`) as a third supported UI locale alongside English and Simplified Chinese:
6+
- New "🇫🇷 Français" option in the header language switcher
7+
- Full translation of the sidebar menu, layout (header, footer, login, 404), `Locate` page, and every action form (`common`, `layout`, `locate`, `menu`, `actions` namespaces)
8+
- Ant Design components (date pickers, pagination, popconfirm, …) and `dayjs` now follow the French locale when selected
9+
- Terminology policy: cryptographic algorithms/standards (`RSA`, `AES`, `EC`, `PQC`, `Covercrypt`, `MAC`, `FPE`, `HSM`, `KEK`, `BYOK`, `ML-KEM`, `ML-DSA`, `SLH-DSA`, …) are kept untranslated; business/user-facing copy is translated. "Chiffrer/Déchiffrer" is used consistently for encrypt/decrypt (never "crypter/décrypter")
10+
11+
## Refactoring
12+
13+
### UI
14+
15+
- Extract a `localeRegistry.ts` module as the single source of truth for per-locale configuration (label, Ant Design locale, `dayjs` locale, browser-language matcher, translation bundle). `i18n/index.ts`, `useAppLocale.ts`, and `LanguageSwitcher.tsx` now derive from this registry instead of hardcoding each locale — adding a future locale is a single registry entry plus its JSON bundle

0 commit comments

Comments
 (0)