react-native-photo-editor
react-native-photo-editor copied to clipboard
Localization
Is there a way to add localization for texts? Done, save, and so on.
You can override the labels using your strings.xml which is located at android/app/src/main/res/values. The valid identifiers can be found here:
https://github.com/prscX/react-native-photo-editor/blob/master/android/src/main/res/values/strings.xml
@concatto Do you know if the same can be done in iOS and how? Thanks!
@scblason Sorry, unfortunately I have to say I don't know. I glanced over the ios folder, and couldn't find any strings there; I suspect they're defined in the iOS package itself (https://github.com/eventtus/photo-editor). I suggest you take a look there! Good luck!
@scblason: At present, there is no provision to pass literals from library JS API. We need manually make changes to below iOS .xib file. You can find this file from your xcode project nav panel. Let us know if that works for you:
https://github.com/eventtus/photo-editor/blob/30f2db6c24fd40a45f4cb2db866479e6f7be7b69/iOSPhotoEditor/PhotoEditorViewController.xib
Thanks, </ Pranav >