String convertDigitsByLocale(String text) { if (currentLocale!.languageCode == 'fa' || currentLocale!.languageCode == 'ar') { return text.toPersianDigit(); } return text.toEnglishDigit(); }