Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -16,7 +16,7 @@ Translate every user-facing string that:
|
||||
|
||||
Do **not** translate:
|
||||
|
||||
- Brand names (`ToolCTRL`, `Stripe`, `GitHub`, `Scira AI` etc.) — they're
|
||||
- Brand names (`HiveGrid`, `Legacy-Provider`, `GitHub`, `Scira AI` etc.) — they're
|
||||
proper nouns and stay constant across locales
|
||||
- Developer-only tooling labels (Storybook globals, CLI prompts, log
|
||||
messages, internal admin operator screens marked as such)
|
||||
@@ -77,7 +77,7 @@ In components:
|
||||
|
||||
```tsx
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { formatIcu } from "@toolctrl/i18n";
|
||||
import { formatIcu } from "@hivegrid/i18n";
|
||||
|
||||
function SelectionToolbar({ count }: { count: number }) {
|
||||
const { t, i18n } = useTranslation("common");
|
||||
@@ -85,7 +85,7 @@ function SelectionToolbar({ count }: { count: number }) {
|
||||
}
|
||||
```
|
||||
|
||||
A `createUseTranslate()` factory in `@toolctrl/i18n` returns a hook that
|
||||
A `createUseTranslate()` factory in `@hivegrid/i18n` returns a hook that
|
||||
auto-detects ICU syntax and routes to FormatJS — useful when most of your
|
||||
keys are ICU-shaped. Plain (non-ICU) messages keep working through
|
||||
i18next's `{{name}}` interpolation, so a gradual migration is safe.
|
||||
@@ -106,10 +106,10 @@ actually wired up correctly?" — see
|
||||
|
||||
## Intl helpers
|
||||
|
||||
The `@toolctrl/i18n` package exports locale-aware Intl-API wrappers:
|
||||
The `@hivegrid/i18n` package exports locale-aware Intl-API wrappers:
|
||||
|
||||
```tsx
|
||||
import { formatCurrency, formatDate, formatNumber, formatPercent, formatList, formatRelativeTime } from "@toolctrl/i18n";
|
||||
import { formatCurrency, formatDate, formatNumber, formatPercent, formatList, formatRelativeTime } from "@hivegrid/i18n";
|
||||
|
||||
formatCurrency(1234.5, { locale, currency: "EUR" }); // "1.234,50 €" / "$1,234.50"
|
||||
formatDate(new Date(), { locale, dateStyle: "medium" });
|
||||
@@ -171,7 +171,7 @@ calls the root `setLocale` action.
|
||||
The `scripts/i18n-audit.mjs` script scans web routes, modules,
|
||||
route modules, and components for hardcoded English/German JSX text, then
|
||||
records locale-sensitive formatting signals that should move to the
|
||||
`@toolctrl/i18n` helpers over time. Run it before starting an extraction
|
||||
`@hivegrid/i18n` helpers over time. Run it before starting an extraction
|
||||
sprint to baseline the count, and again after to measure progress:
|
||||
|
||||
```bash
|
||||
@@ -205,7 +205,7 @@ translations yet.
|
||||
- [ ] Strings live in a per-area namespace (`common`, `settings`, …)
|
||||
- [ ] DE and EN are both filled in (parity test enforces this)
|
||||
- [ ] Plural-aware copy uses ICU syntax
|
||||
- [ ] Currency/date/number rendering uses `@toolctrl/i18n` helpers,
|
||||
- [ ] Currency/date/number rendering uses `@hivegrid/i18n` helpers,
|
||||
passing the active locale
|
||||
- [ ] Direction-sensitive Tailwind classes use `rtl:` / `ltr:` modifiers
|
||||
(or logical CSS properties)
|
||||
|
||||
Reference in new issue
Block a user