有什么方法可以使用 expo 根据 phone 语言在 react-native 中翻译上下文菜单?
Is there any way to translate context menu according to phone language in react-native using expo?
所以我使用 i18n 库来本地化我的应用程序的语言,这没有问题,除了仅在 iOS 中的上下文菜单中。
即使我已经像日语一样更改了语言,它也会始终显示英语,如 (Select、Select All, etc.)
https://user-images.githubusercontent.com/47558402/66972776-41d34100-f0c8-11e9-850c-a2aa6b913782.png
我们有同样的问题:How to translate context menu in react native?
但我在 expo 中使用 react-native。
谢谢。
添加到 app.json:
添加空本地化文件 (https://docs.expo.io/versions/latest/distribution/app-stores/#localizing-system-dialogs-on-ios):
"locales": {
"zh": "./languages/zh.json",
"ru": "./languages/ru.json"
},
和
2.
"ios": {
"infoPlist": {
"CFBundleLocalizations" : ["zh", "ru"],
"CFBundleDevelopmentRegion" : "zh"
}
}
所以我使用 i18n 库来本地化我的应用程序的语言,这没有问题,除了仅在 iOS 中的上下文菜单中。 即使我已经像日语一样更改了语言,它也会始终显示英语,如 (Select、Select All, etc.)
https://user-images.githubusercontent.com/47558402/66972776-41d34100-f0c8-11e9-850c-a2aa6b913782.png
我们有同样的问题:How to translate context menu in react native?
但我在 expo 中使用 react-native。
谢谢。
添加到 app.json:
添加空本地化文件 (https://docs.expo.io/versions/latest/distribution/app-stores/#localizing-system-dialogs-on-ios):
"locales": { "zh": "./languages/zh.json", "ru": "./languages/ru.json" },
和
2.
"ios": {
"infoPlist": {
"CFBundleLocalizations" : ["zh", "ru"],
"CFBundleDevelopmentRegion" : "zh"
}
}