add translation

merge-requests/831/head
Elham Rababh 5 years ago
parent 99868a058c
commit 5e90f14a89

@ -708,5 +708,6 @@ const Map<String, Map<String, String>> localizedValues = {
"requestType":{ "requestType":{
"en":"Request Type", "en":"Request Type",
"ar":"نوع الطلب"}, "ar":"نوع الطلب"},
"special": {"en": "Special", "ar": "خاص"} "special": {"en": "Special", "ar": "خاص"},
"allClinic": {"en": "All Clinics", "ar": "جميع العيادات"}
}; };

@ -72,7 +72,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
activeColor: Colors.red, activeColor: Colors.red,
), ),
AppText( AppText(
"All Clinic", "${TranslationBase.of(context).allClinic}",
fontSize: 15, fontSize: 15,
), ),
], ],
@ -112,7 +112,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
activeColor: Colors.red, activeColor: Colors.red,
), ),
AppText( AppText(
selectedClinicName ?? "Select Clinic", selectedClinicName ?? TranslationBase.of(context).clinicSelect,
fontSize: 15, fontSize: 15,
), ),
Container( Container(
@ -236,7 +236,7 @@ class _InPatientListPageState extends State<InPatientListPage> {
Row( Row(
children: [ children: [
AppText( AppText(
"Select Clinic :", "${TranslationBase.of(context).clinicSelect} :",
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 18, fontSize: 18,

@ -1102,6 +1102,7 @@ class TranslationBase {
String get textResponse => localizedValues['textResponse'][locale.languageCode]; String get textResponse => localizedValues['textResponse'][locale.languageCode];
String get special => localizedValues['special'][locale.languageCode]; String get special => localizedValues['special'][locale.languageCode];
String get requestType => localizedValues['requestType'][locale.languageCode]; String get requestType => localizedValues['requestType'][locale.languageCode];
String get allClinic => localizedValues['allClinic'][locale.languageCode];
} }

Loading…
Cancel
Save