How to translate context menu in react native?

寵の児 提交于 2020-01-14 05:58:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!