load abstract method

Future<Map<String, String>> load(
  1. String language,
  2. Translator translator
)

Interface all TranslationLoader instances must implement. The language to load is passed in but may or may not actually be used by the loader. The built in loaders to not make use of this value to actually perform the loading function. Instead, they only use it to ensure that when translations are loaded asynchronously, the language on the Translator is still the one the loader was attempting to load.

Implementation

Future<Map<String, String>> load(
  String language,
  Translator translator,
);