Work In Progress
This documentation is in beta. It's missing lots of content, search is broken, and many links go nowhere. These problems will be fixed before release, but there's plenty of work left!
Skip to main content

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.

Usage

Learn how to generate code yourself.