Skip to content

Commit a0f0369

Browse files
committed
feat(l10n): add version labels for app version control
- Add 'currentAppVersionLabel' and 'latestRequiredVersionLabel' in Arabic and English localization files - Include placeholders for version numbers in both languages - These new labels will be used to display current and required app versions to users
1 parent 3dc15ed commit a0f0369

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

lib/l10n/app_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,6 +1711,18 @@ abstract class AppLocalizations {
17111711
/// In en, this message translates to:
17121712
/// **'Could not open update URL: {url}'**
17131713
String couldNotOpenUpdateUrl(String url);
1714+
1715+
/// Label to display the current app version.
1716+
///
1717+
/// In en, this message translates to:
1718+
/// **'Your current version: {version}'**
1719+
String currentAppVersionLabel(String version);
1720+
1721+
/// Label to display the latest required app version.
1722+
///
1723+
/// In en, this message translates to:
1724+
/// **'Required version: {version}'**
1725+
String latestRequiredVersionLabel(String version);
17141726
}
17151727

17161728
class _AppLocalizationsDelegate

lib/l10n/app_localizations_ar.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,4 +894,14 @@ class AppLocalizationsAr extends AppLocalizations {
894894
String couldNotOpenUpdateUrl(String url) {
895895
return 'تعذر فتح رابط التحديث: $url';
896896
}
897+
898+
@override
899+
String currentAppVersionLabel(String version) {
900+
return 'إصدارك الحالي: $version';
901+
}
902+
903+
@override
904+
String latestRequiredVersionLabel(String version) {
905+
return 'الإصدار المطلوب: $version';
906+
}
897907
}

lib/l10n/app_localizations_en.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,4 +896,14 @@ class AppLocalizationsEn extends AppLocalizations {
896896
String couldNotOpenUpdateUrl(String url) {
897897
return 'Could not open update URL: $url';
898898
}
899+
900+
@override
901+
String currentAppVersionLabel(String version) {
902+
return 'Your current version: $version';
903+
}
904+
905+
@override
906+
String latestRequiredVersionLabel(String version) {
907+
return 'Required version: $version';
908+
}
899909
}

lib/l10n/arb/app_ar.arb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,5 +1169,25 @@
11691169
"type": "String"
11701170
}
11711171
}
1172+
},
1173+
"currentAppVersionLabel": "إصدارك الحالي: {version}",
1174+
"@currentAppVersionLabel": {
1175+
"description": "تسمية لعرض إصدار التطبيق الحالي.",
1176+
"placeholders": {
1177+
"version": {
1178+
"type": "String",
1179+
"example": "1.0.0"
1180+
}
1181+
}
1182+
},
1183+
"latestRequiredVersionLabel": "الإصدار المطلوب: {version}",
1184+
"@latestRequiredVersionLabel": {
1185+
"description": "تسمية لعرض أحدث إصدار مطلوب للتطبيق.",
1186+
"placeholders": {
1187+
"version": {
1188+
"type": "String",
1189+
"example": "1.1.0"
1190+
}
1191+
}
11721192
}
11731193
}

lib/l10n/arb/app_en.arb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,5 +1169,25 @@
11691169
"type": "String"
11701170
}
11711171
}
1172+
},
1173+
"currentAppVersionLabel": "Your current version: {version}",
1174+
"@currentAppVersionLabel": {
1175+
"description": "Label to display the current app version.",
1176+
"placeholders": {
1177+
"version": {
1178+
"type": "String",
1179+
"example": "1.0.0"
1180+
}
1181+
}
1182+
},
1183+
"latestRequiredVersionLabel": "Required version: {version}",
1184+
"@latestRequiredVersionLabel": {
1185+
"description": "Label to display the latest required app version.",
1186+
"placeholders": {
1187+
"version": {
1188+
"type": "String",
1189+
"example": "1.1.0"
1190+
}
1191+
}
11721192
}
11731193
}

0 commit comments

Comments
 (0)