react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

Localization

Open bakir97 opened this issue 3 years ago • 4 comments

Is there a way to add localization for texts? Done, save, and so on.

bakir97 avatar Oct 22 '20 10:10 bakir97

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 avatar Nov 06 '20 17:11 concatto

@concatto Do you know if the same can be done in iOS and how? Thanks!

scblason avatar Mar 29 '22 13:03 scblason

@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!

concatto avatar Mar 29 '22 19:03 concatto

@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 >

prscX avatar Apr 09 '22 11:04 prscX