setLocaleExceptProvider method

E setLocaleExceptProvider(
  1. E locale
)

Sets locale, but do not change potential TranslationProvider's state Useful when you are in a pure Dart environment (without Flutter)

Implementation

E setLocaleExceptProvider(E locale) {
  GlobalLocaleState.instance.setLocaleId(mapper.toId(locale));
  return locale;
}