TF-1581 Support language Italian
This commit is contained in:
+2
@@ -16,6 +16,8 @@ extension LocaleExtension on Locale {
|
|||||||
return AppLocalizations.of(context).languageRussian;
|
return AppLocalizations.of(context).languageRussian;
|
||||||
case 'ar':
|
case 'ar':
|
||||||
return AppLocalizations.of(context).languageArabic;
|
return AppLocalizations.of(context).languageArabic;
|
||||||
|
case 'it':
|
||||||
|
return AppLocalizations.of(context).languageItalian;
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2023-03-10T13:53:08.023350",
|
"@@last_modified": "2023-03-10T14:00:31.546227",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@@ -1578,6 +1578,12 @@
|
|||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
|
"languageItalian": "Italian",
|
||||||
|
"@languageItalian": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
"messageDialogSendEmailUploadingAttachment": "Your message could not be sent because it uploading attachment",
|
"messageDialogSendEmailUploadingAttachment": "Your message could not be sent because it uploading attachment",
|
||||||
"@messageDialogSendEmailUploadingAttachment": {
|
"@messageDialogSendEmailUploadingAttachment": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
|||||||
@@ -1609,6 +1609,12 @@ class AppLocalizations {
|
|||||||
name: 'languageArabic');
|
name: 'languageArabic');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get languageItalian {
|
||||||
|
return Intl.message(
|
||||||
|
'Italian',
|
||||||
|
name: 'languageItalian');
|
||||||
|
}
|
||||||
|
|
||||||
String get messageDialogSendEmailUploadingAttachment {
|
String get messageDialogSendEmailUploadingAttachment {
|
||||||
return Intl.message(
|
return Intl.message(
|
||||||
'Your message could not be sent because it uploading attachment',
|
'Your message could not be sent because it uploading attachment',
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ class LocalizationService extends Translations {
|
|||||||
'en',
|
'en',
|
||||||
'vi',
|
'vi',
|
||||||
'ru',
|
'ru',
|
||||||
'ar'
|
'ar',
|
||||||
|
'it'
|
||||||
];
|
];
|
||||||
|
|
||||||
static const List<Locale> supportedLocales = [
|
static const List<Locale> supportedLocales = [
|
||||||
@@ -23,7 +24,8 @@ class LocalizationService extends Translations {
|
|||||||
Locale('en', 'US'),
|
Locale('en', 'US'),
|
||||||
Locale('vi', 'VN'),
|
Locale('vi', 'VN'),
|
||||||
Locale('ru', 'RU'),
|
Locale('ru', 'RU'),
|
||||||
Locale('ar', 'TN')
|
Locale('ar', 'TN'),
|
||||||
|
Locale('it', 'IT')
|
||||||
];
|
];
|
||||||
|
|
||||||
static final locale = _getLocaleFromLanguage();
|
static final locale = _getLocaleFromLanguage();
|
||||||
|
|||||||
Reference in New Issue
Block a user