Resources

class Resources

Represents the resources configuration for i18next.

This class allows you to define translations for multiple languages and their respective namespaces using a Kotlin DSL.

Functions

Link copied to clipboard
fun Resources.de(languageBuilder: LanguageConfiguration.() -> Unit)

Extension function to conveniently add German (de) language resources.

Link copied to clipboard
fun Resources.en(languageBuilder: LanguageConfiguration.() -> Unit)

Extension function to conveniently add English (en) language resources.

Link copied to clipboard
fun Resources.es(languageBuilder: LanguageConfiguration.() -> Unit)

Extension function to conveniently add Spanish (es) language resources.

Link copied to clipboard
fun Resources.it(languageBuilder: LanguageConfiguration.() -> Unit)

Extension function to conveniently add Italian (it) language resources.

Link copied to clipboard
fun language(language: String, languageBuilder: LanguageConfiguration.() -> Unit)

Adds a language configuration to the resources.