This commit is contained in:
Hamza-Ayed
2025-02-06 21:53:49 +03:00
parent a09bfbd646
commit 0997d9301f
10 changed files with 2425 additions and 892 deletions

View File

@@ -74,6 +74,16 @@ class LocaleController extends GetxController {
appTheme = lightThemeEnglish;
box.write(BoxName.lang, 'hi');
break;
case "ar-ma":
locale = const Locale("ar-ma");
appTheme = lightThemeArabic;
box.write(BoxName.lang, 'ar-ma');
break;
case "ar-gulf":
locale = const Locale("ar-gulf");
appTheme = lightThemeArabic;
box.write(BoxName.lang, 'ar-gulf');
break;
default:
locale = Locale(Get.deviceLocale!.languageCode);
box.write(BoxName.lang, Get.deviceLocale!.languageCode);