TF-297 Add menu languageAndRegion in AccountManager
This commit is contained in:
@@ -9,7 +9,8 @@ class ManageAccountMenuController extends BaseController {
|
||||
final dashBoardController = Get.find<ManageAccountDashBoardController>();
|
||||
|
||||
final listAccountMenuItem = <AccountMenuItem>[
|
||||
AccountMenuItem.profiles
|
||||
AccountMenuItem.profiles,
|
||||
AccountMenuItem.languageAndRegion,
|
||||
];
|
||||
|
||||
@override
|
||||
|
||||
@@ -4,7 +4,8 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||
|
||||
enum AccountMenuItem {
|
||||
profiles
|
||||
profiles,
|
||||
languageAndRegion
|
||||
}
|
||||
|
||||
extension AccountMenuItemExtension on AccountMenuItem {
|
||||
@@ -13,6 +14,8 @@ extension AccountMenuItemExtension on AccountMenuItem {
|
||||
switch(this) {
|
||||
case AccountMenuItem.profiles:
|
||||
return imagePaths.icProfiles;
|
||||
case AccountMenuItem.languageAndRegion:
|
||||
return imagePaths.icLanguage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +23,8 @@ extension AccountMenuItemExtension on AccountMenuItem {
|
||||
switch(this) {
|
||||
case AccountMenuItem.profiles:
|
||||
return AppLocalizations.of(context).profiles;
|
||||
case AccountMenuItem.languageAndRegion:
|
||||
return AppLocalizations.of(context).languageAndRegion;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"@@last_modified": "2022-06-28T17:58:17.546714",
|
||||
"@@last_modified": "2022-07-08T13:29:01.231528",
|
||||
"initializing_data": "Initializing data...",
|
||||
"@initializing_data": {
|
||||
"type": "text",
|
||||
@@ -1513,5 +1513,47 @@
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageAndRegion": "Language & Region",
|
||||
"@languageAndRegion": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageAndRegionSubtitle": "Set the language, time zone, time format you use on TeamMail.",
|
||||
"@languageAndRegionSubtitle": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"language": "Language",
|
||||
"@language": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageEnglish": "English",
|
||||
"@languageEnglish": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageVietnamese": "Vietnamese",
|
||||
"@languageVietnamese": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageFrench": "French",
|
||||
"@languageFrench": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"languageRussian": "Russian",
|
||||
"@languageRussian": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
}
|
||||
}
|
||||
@@ -1559,4 +1559,46 @@ class AppLocalizations {
|
||||
name: 'selectMailbox',
|
||||
);
|
||||
}
|
||||
|
||||
String get languageAndRegion {
|
||||
return Intl.message(
|
||||
'Language & Region',
|
||||
name: 'languageAndRegion');
|
||||
}
|
||||
|
||||
String get languageAndRegionSubtitle {
|
||||
return Intl.message(
|
||||
'Set the language, time zone, time format you use on TeamMail.',
|
||||
name: 'languageAndRegionSubtitle');
|
||||
}
|
||||
|
||||
String get language {
|
||||
return Intl.message(
|
||||
'Language',
|
||||
name: 'language');
|
||||
}
|
||||
|
||||
String get languageEnglish {
|
||||
return Intl.message(
|
||||
'English',
|
||||
name: 'languageEnglish');
|
||||
}
|
||||
|
||||
String get languageVietnamese {
|
||||
return Intl.message(
|
||||
'Vietnamese',
|
||||
name: 'languageVietnamese');
|
||||
}
|
||||
|
||||
String get languageFrench {
|
||||
return Intl.message(
|
||||
'French',
|
||||
name: 'languageFrench');
|
||||
}
|
||||
|
||||
String get languageRussian {
|
||||
return Intl.message(
|
||||
'Russian',
|
||||
name: 'languageRussian');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user