Skip to content
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

added arabic language #27

Merged
merged 2 commits into from
Sep 20, 2022
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ZLEditImageViewController.showEditImageVC(parentVC: self, image: image, editMode
```

### <a id="Languages"></a>Languages
🇨🇳 Chinese, 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkey.
🇨🇳 Chinese, 🇺🇸 English, 🇯🇵 Japanese, 🇫🇷 French, 🇩🇪 German, 🇷🇺 Russian, 🇻🇳 Vietnamese, 🇰🇷 Korean, 🇲🇾 Malay, 🇮🇹 Italian, 🇮🇩 Indonesian, 🇪🇸 Spanish, 🇵🇹 Portuguese, 🇹🇷 Turkey , Arabic

### <a id="Installation"></a>Installation
There are four ways to use ZLImageEditor in your project:
Expand Down
4 changes: 4 additions & 0 deletions Sources/Extensions/Bundle+ZLImageEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ extension Bundle {
language = "es-419"
} else if language.hasPrefix("tr") {
language = "tr"
} else if language.hasPrefix("ar") {
language = "ar"
} else {
language = "en"
}
Expand Down Expand Up @@ -174,6 +176,8 @@ extension Bundle {
language = "es-419"
case .turkish:
language = "tr"
case .arabic:
language = "ar"
}

return language
Expand Down
1 change: 1 addition & 0 deletions Sources/General/ZLImageEditorLanguageDefine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import Foundation
case portuguese
case spanish
case turkish
case arabic
}

public struct ZLLocalLanguageKey: Hashable {
Expand Down
9 changes: 9 additions & 0 deletions Sources/ZLImageEditor.bundle/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"cancel" = "الغاء";
"done" = "تم";
"editFinish" = "تم";
"revert" = "استرجاع";
"brightness" = "سطوع";
"contrast" = "التباين";
"saturation" = "صفاء اللون";
"textStickerRemoveTips" = "اسحب هنا للإزالة";
"hudLoading" = "انتظار...";