Setup Provider
anylang uses the provider configured in youranylang.config.json file. By default, it uses OpenRouter or Gemini.
Add your provider key to your .env file at the root of your project:
anylang is bring-your-own-key. Check out the Providers page for a full list of supported models (OpenAI, Anthropic, Mistral, etc.) and their corresponding environment variables.
Translate
Once your key is configured, run the translation command:translate automatically scans your files first, retranslates any changed strings, and intelligently skips unchanged target entries to save on API costs.locales folder will now be populated with the translated strings, and they will appear in your app.