PlayxLocaleConfig constructor
PlayxLocaleConfig({})
Implementation
PlayxLocaleConfig({
required this.supportedLocales,
this.startLocale,
this.fallbackLocale,
this.useOnlyLangCode = false,
this.useFallbackTranslations = true,
this.path = 'assets/translations',
this.assetLoader = const RootBundleAssetLoader(),
this.saveLocale = true,
}) : assert(path.isNotEmpty, 'path can not be empty'),
assert(
supportedLocales.isNotEmpty, 'supportedLocales can not be empty');