Skip to content

Add Arabic Localization Support #598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions example/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\Src\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\Home\StudioProjects\flutter_pulltorefresh\example"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
39 changes: 38 additions & 1 deletion lib/src/internals/refresh_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class RefreshLocalizations {
'sv': SvRefreshString(),
'pt': PtRefreshString(),
'ko': KrRefreshString(),
'ar':ArRefreshString()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“'ar': ArRefreshString()”

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is there any problem? @MX8CLUB
if everything is ok, so merge it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should search for another library as this repo didnt get the flutter 3 update

};

RefreshString? get currentLocalization {
Expand Down Expand Up @@ -116,7 +117,8 @@ class RefreshLocalizationsDelegate
'pt',
'sv',
'nl',
'es'
'es',
'ar'
].contains(locale.languageCode);
}

Expand Down Expand Up @@ -635,3 +637,38 @@ class KrRefreshString implements RefreshString {
@override
String? refreshingText = "새로 고침 중…";
}

class ArRefreshString implements RefreshString {
@override
String? canLoadingText = "اسحب لتحميل المزيد";

@override
String? canRefreshText = "اسحب للتحديث";

@override
String? canTwoLevelText = "حرر للدخول الى المستوى الثاني";

@override
String? idleLoadingText = "اسحب للأعلى لتحميل المزيد";

@override
String? idleRefreshText = "اسحب للأسفل للتحديث";

@override
String? loadFailedText = "فشل في التحميل";

@override
String? loadingText = "تحميل…";

@override
String? noMoreText = "لم يعد يوجد بيانات";

@override
String? refreshCompleteText = "انتهى التحديث";

@override
String? refreshFailedText = "فشل في التحديث";

@override
String? refreshingText = "جاري التحديث…";
}