Code Generators
The i18n framework includes a code generator, used to generate what we call "translations classes".
Each class is actually an object containing a nested tree of Key objects representing your translations,
and a Bundle object referencing the bundle that contains those translations.
This provides a completely type-safe translations API — the Kotlin compiler can handle checking whether translation keys exist, rather than copying and pasting keys, which can make for an error-prone and difficult-to-maintain codebase.
For more information on using this generator, see the pages below.
Output
See what the generated code looks like.
Output Code
What to expect from the generated code.
Usage
Learn how to generate code yourself.
CLI Tool
Generate code using our CLI tool.
Programmatic API
Generate code programmatically.