I18nGeneratorConfig

abstract class I18nGeneratorConfig @Inject constructor(val name: String, objects: ObjectFactory)

Configuration block for a single translation generator.

Constructors

Link copied to clipboard
@Inject
constructor(name: String, objects: ObjectFactory)

Properties

Link copied to clipboard
val fallbackLanguage: Property<String>

The fallback language code to use when a translation is missing in the current language. Default: en

Link copied to clipboard

The name of this generator configuration block.

Link copied to clipboard
val objectName: Property<String>

The name of the generated Kotlin object holding the translations. Default: Tr

Link copied to clipboard
val sourceProject: Property<Project>

The Gradle project containing the source translation JSON files. If not specified, defaults to the root project.

Link copied to clipboard
val targetPackage: Property<String>

Target package where the generated code should be placed. Default: io.github.octaviusframework.i18n.generated