loadNamespace method
void
loadNamespace()
override
Loads translations for a specific namespace.
Useful for loading package-specific translations.
namespace: The namespace identifier.locale: Locale to load for.translations: Map of key-value translations.
Implementation
@override
void loadNamespace(
String namespace,
String locale,
Map<String, String> translations,
) {
_translations.putIfAbsent(locale, () => {});
_translations[locale]![namespace] = Map.from(translations);
}