translationAsset property
String
get
translationAsset
Implementation
String get translationAsset {
var key = BaseIntl.getCurrentLocale().split("_").first;
if (key.isNotEmpty) {
if (key == _supportedLocales.first.languageCode) {
return this;
}
final name = getBasename(this);
final replace = replaceAll(name, getJoin(key, name));
logDebug(replace);
return replace;
}
return this;
}