问题
I am working on a project that requires to be translated on multiple languages. I am using Zanata to translate everything and it works except context menu. I can not find anything in official documentation how to translate it. Regardless of language that I set on the phone it will always show english language in context menu(copy, select all, paste..)
Example of untranslated context menu
I thought that it will be done automatically by operating system but it is not. Does anyone has the same problem and is there any solution for this?
Thank you.
回答1:
For iOS, you need to add the supported localization languages in Xcode Project settings.
If the device language matches one of these languages, the system will show the tooltips in that language. The actual strings, as far as I'm aware, cannot be changed.
Additionally, you can define a CFBundleDevelopmentRegion value in your Info.plist to define a default language.
来源:https://stackoverflow.com/questions/48282253/how-to-translate-context-menu-in-react-native