Tr Generator
Generates the main Tr.kt file with registry and type-safe accessors.
Functions
Link copied to clipboard
fun generate(entries: Map<String, TranslationEntry>, defaultLang: String, allLangs: List<String>): String
Renders the full {objectName}.kt source file: a registry mapping each language to its generated io.github.octaviusframework.i18n.core.TranslationData, plus a type-safe accessor object mirroring the shape of entries.