Class I18nConfig
-
- All Implemented Interfaces:
public final class I18nConfigSettings-group for ServerPackCreators language: parses the stored language-property into a locale, propagates every change to the given i18n4k-configuration, and persists locale-changes via the injected saveToDisk-callback. Extracted from ApiProperties (refactor Phase 1b); ApiProperties remains the facade through which consumers access these values.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringLANGUAGE_KEYprivate Localelanguage
-
Constructor Summary
Constructors Constructor Description I18nConfig(PropertyStore store, I18n4kConfigDefault i18n4kConfig, Function0<Unit> saveToDisk)
-
Method Summary
Modifier and Type Method Description final LocalegetLanguage()final UnitsetLanguage(Locale value)final UnitchangeLocale(Locale locale)Changes the locale and persists it via the injected save-callback, ensuring every subsequent start of ServerPackCreator uses said locale. -
-
Constructor Detail
-
I18nConfig
I18nConfig(PropertyStore store, I18n4kConfigDefault i18n4kConfig, Function0<Unit> saveToDisk)
-
-
Method Detail
-
getLanguage
final Locale getLanguage()
-
setLanguage
final Unit setLanguage(Locale value)
-
changeLocale
final Unit changeLocale(Locale locale)
Changes the locale and persists it via the injected save-callback, ensuring every subsequent start of ServerPackCreator uses said locale.
-
-
-
-