fix android config
This commit is contained in:
@@ -28,15 +28,15 @@ class AppTranslations {
|
||||
get currentLanguage => locale.languageCode;
|
||||
|
||||
String text(String key, {List<String>? translationVariables}) {
|
||||
String value = _localisedValues[key];
|
||||
String? value = _localisedValues[key];
|
||||
if (value == null) {
|
||||
return "$key not found";
|
||||
}
|
||||
if (translationVariables != null) {
|
||||
translationVariables.asMap().forEach((i, s) {
|
||||
value = value.replaceAll("{$i}", s);
|
||||
value = value!.replaceAll("{$i}", s);
|
||||
});
|
||||
}
|
||||
return value;
|
||||
return value!;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user