locale property
Locale?
get
locale
Returns the device's every changing Locale.
Implementation
static Locale? get locale =>
_appState?.locale = Localizations.maybeLocaleOf(context!) ??
_resolveLocales(
mainWindow.locales,
_appState?.supportedLocales,
);
set
locale
(Locale? locale)
Set the App's Locale If 'supportedLocales' are specified, this Locale must be among them.
Implementation
static set locale(Locale? locale) {
if (locale != null) {
v.L10n.locale = locale;
if (v.L10n.locale != v.L10n.prevLocale) {
_appState?.locale = locale;
}
}
}