-
Notifications
You must be signed in to change notification settings - Fork 46
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
Improve localization usage #113
Conversation
Used local localization in case crowdin localization is missing. Fix issue with handling downloaded localization after localization is changed.
Remove commented code
Fix issue with language changing. Fix issue with language detecting. Add plurals support for localization extrantor.
Generated by 🚫 Danger Swift against f253ac7 |
Add better error handling, notidy anout errors while downloading supported languages and manifest file. Remove SDK modes.
Codecov Report
@@ Coverage Diff @@
## master #113 +/- ##
==========================================
- Coverage 50.54% 48.78% -1.76%
==========================================
Files 118 117 -1
Lines 4567 4558 -9
==========================================
- Hits 2308 2223 -85
- Misses 2259 2335 +76
Continue to review full report at Codecov.
|
CrowdinSDK/Classes/CrowdinSDK/Localization/Extractor/LocalLocalizationExtractor.swift
Outdated
Show resolved
Hide resolved
CrowdinSDK/Classes/CrowdinSDK/Localization/Extractor/LocalLocalizationExtractor.swift
Outdated
Show resolved
Hide resolved
CrowdinSDK/Classes/CrowdinSDK/Localization/Extractor/LocalLocalizationExtractor.swift
Outdated
Show resolved
Hide resolved
CrowdinSDK/Classes/CrowdinSDK/Localization/Extractor/LocalLocalizationExtractor.swift
Outdated
Show resolved
Hide resolved
localizations.insert(Strings.auto.rawValue.capitalized.localized, at: 0) | ||
|
||
self.title = Strings.settings.rawValue.capitalized.localized | ||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: Strings.done.rawValue.capitalized.localized, style: .done, target: self, action: #selector(cancelBtnTapped)) | ||
self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "SettingsCell") | ||
self.tableView.reloadData() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of "self" usage, can we remove it?
...lasses/Features/RealtimeUpdateFeature/LocalizationProvider/RURemoteLocalizationStorage.swift
Outdated
Show resolved
Hide resolved
Add gear icon. Remove unused properties from Localization.
Add disconnect handle to SocketManager. Fix issue with saving wrong localization strings after switching language. Fix issue with storing localization strings while realtime-preview feature is enabled. Add method for clearing up local localization storage. Fix issue with starting real-time for the first time. Improve refresh localization option. Improve storing e-tag's for localization files.
… exist on crowdin.
Update pods in Tests project. Set launch arguments for tests target to use en localization.
Use bundled translations if not available on Crowdin