-
Notifications
You must be signed in to change notification settings - Fork 379
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
Done button is not localized from system localization. #249
Comments
Oh, interesting. I tested it on a phone set to swedish and there the localization worked. Could you check where "Done" comes from? |
Thank you for your quick reply. https://github.com/bonzeboy/BSImagePicker/tree/debug/i8n I added following code in init of ImagePickerController.
Reproduce environment: (check1) I expect that "Done" button is displayed as "完了", but it is displayed as "Done". (check2) I don't know swedish well (sorry...), but I think "Done" is not expected is it? |
Yeah it isn't working for me anymore either. |
I have the same problem for german localization. Obviously UIKit localization got moved to somewhere else. Try this in Playground:
Tested with Xcode 11.4.1 (16137) |
I've done a temporary workaround in 3.1.7 where there is a property named doneButtonTitle that you can set on the image picker. |
I use BSImagePicker in Japanese environment.
The cancel button is localized well, but done button not seems to be localized.
Following code may not be work well.
Sources/Controller/ImagePickerController.swift
fileprivate let localizedDone = Bundle(identifier: "com.apple.UIKit")?.localizedString(forKey: "Done", value: "Done", table: "") ?? "Done"
The text was updated successfully, but these errors were encountered: