anylang scan generates a runtime file, usually src/anylang.ts, from your source and target locales. Import from that generated file in app code.
Provider
Wrap the application once withAnyLangProvider.
Static JSX text
After the Vite plugin or Next.js wrapper is configured, normal static JSX text is translated automatically.tr="false" for strings that should not be translated.
Dynamic text
UseuseTr when the string is dynamic, conditional, or not plain JSX text.
Language state
UseuseLanguage to read and update the selected locale.