anylang init creates anylang.config.json.
Locale settings
sourceLocale is the language you write in your source files. targetLocales is the list of locales anylang prepares and translates.
File matching
By default, anylang scans.js, .jsx, .ts, .tsx, .vue, and .html files under src.
Output
outDir controls locale JSON output. runtime.output controls the generated TypeScript runtime file.
Auto JSX translation
WhenautoTranslate.jsx is enabled, static JSX text can be transformed by the Vite plugin or Next.js wrapper.
$tr("key", "source text") for dynamic text or places where you want a stable hand-written key.
API provider
OpenRouter is a good default provider because it lets you switch models without changing the rest of your anylang setup..env.