Creates a TranslationLoader instance that loads from local asset files.
When loading from a package, you must pass the name of the package via the
package optional parameter. The asset must be a JSON key / value map.
Creates a non-blocking TranslationLoader instance that that will load
the translations asynchronously and apply them back to the Translator
when complete.
A more powerful version of the simple network factory. Tihs gives full
control over the way the network call is executed. This stillrequires the
response from the network call result in a JSON key / value map.
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.