addTranslation method
Adds a translation resource by its name.
This method searches for a SupportedTranslation by name within the current locale's supported translations and initiates its loading.
name
The unique name of the translation to be added.
Implementation
void addTranslation(String name) {
var translation = locManager.supportedLocales
.firstWhere((l) => l.locale == locManager.currentLocale)
.translations
.firstWhere((t) => t.name == name);
locManager.addTranslation(this, translation);
}