Files
coucou/windows/tsconfig.json
Claude 77a7098051 i18n core: the Mac's strings, a key-based t() for the webviews and Rust
Strings are looked up by their English text, like the Mac's catalog:
t("Allow"), t("Uploading {name}", { name }), tn(one, other, n) for plurals.

- scripts/gen-strings.mjs turns NotchBuddy/Resources/Localizable.xcstrings
  into src/i18n/strings.json: Mac keys such as "step.reads" become their
  English text, %@ / %lld become {placeholders} (named where the Windows
  code uses them), plural variations keep their categories.
- src/i18n/extra.json holds the strings only Windows and Linux show, in
  all ten languages.
- src/i18n/i18n.ts: lookup with English fallback, Intl plural rules, the
  System choice (system language when Coucou has it, else English; pt → pt-BR,
  zh-CN → zh-Hans), dates through Intl, and onLanguageChange.
- views/dom.ts: a tl(…) text given to h() relabels itself in place when the
  language changes, so no view has to be rebuilt.
- src-tauri/src/i18n.rs embeds the same two files with include_str! and
  answers the same way (t, tf, tn); its tests run in English per thread.
- Tests load the JSON through the setup hook, as Vite does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DMzyoPKtGVNBUemdZhnWRG
2026-10-08 00:00:29 +02:00

21 lines
503 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"isolatedModules": true,
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true,
"noEmit": true,
"types": ["vite/client"]
},
"include": ["src"]
}