mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
chore(i18n): add Claude-powered translation script and fill missing PO translations
- Add `packages/i18n/scripts/claude.ts` — a Bun script that translates empty PO entries via the Claude Code CLI, supporting batch mode, dry-run, optional AI context from `crowdin-context.jsonl`, and structured JSON output validation - Add `i18n:claude` root script (`bun packages/i18n/scripts/claude.ts`) as a convenience alias - Fill all previously empty msgstr entries across de, es, fr, it, pt PO catalogs and recompile `.ts` catalogs - Polish README with badges (license, CI status, release, language, Crowdin localization) and minor formatting fixes
This commit is contained in:
+5
-4
@@ -12,7 +12,7 @@
|
||||
"@orpc/contract": "1.13.8",
|
||||
"@orpc/tanstack-query": "1.13.8",
|
||||
"@tanstack/react-query": "5.91.0",
|
||||
"@types/bun": "1.3.10",
|
||||
"@types/bun": "1.3.11",
|
||||
"@types/node": "25.5.0",
|
||||
"@types/react": "19.2.14",
|
||||
"better-auth": "1.5.5",
|
||||
@@ -45,7 +45,8 @@
|
||||
"test": "turbo run test",
|
||||
"generate:openapi": "bun scripts/generate-openapi-spec.ts && cd docs && bun run generate:api-docs",
|
||||
"i18n:extract": "lingui extract",
|
||||
"i18n:compile": "lingui compile --typescript"
|
||||
"i18n:compile": "lingui compile --typescript",
|
||||
"i18n:claude": "bun packages/i18n/scripts/claude.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lingui/cli": "catalog:",
|
||||
@@ -53,8 +54,8 @@
|
||||
"@lingui/format-po": "catalog:",
|
||||
"oxfmt": "0.41.0",
|
||||
"oxlint": "1.56.0",
|
||||
"turbo": "2.8.18",
|
||||
"turbo": "2.8.19",
|
||||
"typescript": "catalog:"
|
||||
},
|
||||
"packageManager": "bun@1.3.10"
|
||||
"packageManager": "bun@1.3.11"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user