apply method
Applies the given set of translated strings to the translator. This will
no-op if the given language
is not the currently set language.
This is meant to provide support for lazy loading translations.
Implementation
void apply(
String language,
Map<String, String>? values,
) {
if (language == _language) {
_translations.addAll(values ?? {});
_translationsStreamController?.add(null);
}
}