TypedLocaleExtension<O extends Object, T extends TypedLocale<O> > extension
An extension on TypedLocale
that provides utilities to manage translation
caches.
- on
-
- T
Methods
-
copyWithTranslationsCache(
{Iterable< NaturalLanguage> ? languages, Iterable<FiatCurrency> ? currencies, Iterable<WorldCountry> ? countries}) → T -
Synchronously returns a copy of this
TypedLocale
with updated translation caches. -
copyWithTranslationsCacheAsync(
{Iterable< NaturalLanguage> ? languages, Iterable<FiatCurrency> ? currencies, Iterable<WorldCountry> ? countries}) → Future<T> -
Returns a future of a new
TypedLocale
instance with updated translation caches asynchronously.