Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -36,7 +36,9 @@ apps/web/public/locales/
|
||||
│ ├── crm.json # Per-area: CRM surfaces
|
||||
│ ├── auth.json # Per-area: authentication surfaces
|
||||
│ └── emailMarketing.json # Per-area: email marketing surfaces
|
||||
└── en/ (same structure)
|
||||
├── en/ (same structure)
|
||||
├── pl/ · ru/ · uk/ · hu/ (same structure, release-gated)
|
||||
└── <locale>-formal/ (nine sparse formal-override namespace files)
|
||||
```
|
||||
|
||||
`translations.json` is the historical bag-of-keys. **New work should land
|
||||
@@ -97,6 +99,8 @@ i18next's `{{name}}` interpolation, so a gradual migration is safe.
|
||||
| en | one, other |
|
||||
| de | one, other |
|
||||
| pl | one, few, many, other |
|
||||
| ru, uk | one, few, many, other |
|
||||
| hu | one, other |
|
||||
| ar | zero, one, two, few, many, other |
|
||||
| ja, zh | other (no plural distinction) |
|
||||
|
||||
@@ -127,10 +131,15 @@ identical output on server + client.
|
||||
When a request arrives, the server picks a locale in this order:
|
||||
|
||||
1. `User.locale` (set via the profile locale-picker)
|
||||
2. `Tenant.defaultLocale`
|
||||
3. `Accept-Language` header (browser default)
|
||||
2. Tenant default locale when the tenant contract exposes one
|
||||
3. Locale cookie / `Accept-Language` header (browser default)
|
||||
4. App fallback (`de`, see `packages/i18n/src/index.ts#defaultLocale`)
|
||||
|
||||
Every candidate is filtered through `I18N_ENABLED_LOCALES`. Disabled locales
|
||||
cannot be activated by stored preferences, cookies, request parameters or
|
||||
browser headers. The checked-in default remains `de,en`; review locales are
|
||||
enabled individually on staging only after their manifest is current.
|
||||
|
||||
The resolved locale is stored in the i18n cookie (`_i18n`) and surfaced
|
||||
to React via `useTranslation().i18n.language`. The picker UI lives in
|
||||
`apps/web/app/modules/users/components/UserProfileSettings.tsx` (rendered
|
||||
@@ -164,7 +173,17 @@ calls the root `setLocale` action.
|
||||
by copying the English files
|
||||
3. Run `pnpm verify:i18n` — the parity check enforces all namespaces have
|
||||
matching keys
|
||||
4. Have the translation reviewed before merging
|
||||
4. Add all nine `<locale>-formal` namespace files; they may be sparse but must
|
||||
fall back through `<locale>-formal → <locale> → de`
|
||||
5. Update `docs/contributing/i18n/reviews/<locale>.json` with German source hashes
|
||||
6. Run `pnpm verify:i18n`
|
||||
7. Keep the locale disabled until the documented native-speaker gate passes
|
||||
|
||||
`scripts/i18n-translate-catalog.ts` is a build-time helper only. It writes
|
||||
static catalogs and is never part of a HiveGrid runtime or deployment image.
|
||||
`scripts/i18n-quality.ts` blocks stale hashes, damaged placeholders/ICU
|
||||
arguments/tags/URLs, mojibake, non-NFC text, untranslated German sentences and
|
||||
incomplete CLDR plural categories.
|
||||
|
||||
## Auditing hardcoded strings
|
||||
|
||||
@@ -179,10 +198,8 @@ node scripts/i18n-audit.mjs
|
||||
# → docs/contributing/i18n-audit-<YYYY-MM-DD>.md
|
||||
```
|
||||
|
||||
The current audit snapshot is `docs/contributing/i18n-audit-2026-05-25.md`.
|
||||
Its re-run section is the active product-UI baseline: 0 hardcoded
|
||||
route/component strings and 0 locale-formatting signals as of 2026-05-29.
|
||||
The 2026-05-25 findings remain in that file as historical disposition only.
|
||||
Audit-Reports sind lokale, datierte Arbeitsartefakte und werden nicht als dauerhafte Quelle im Repo
|
||||
gepflegt. Der ausführbare Vertrag ist `pnpm verify:i18n`.
|
||||
|
||||
The repo-wide `pnpm verify:i18n` script enforces three guards:
|
||||
|
||||
|
||||
Reference in new issue
Block a user