标题:Xamarin.ios,C#|无法从“阿拉伯语”更改语言。 “法语”来自WKWebView和UiprintInteractionController弹出窗口
每当我们第一次启动该应用程序时,默认语言选择为“阿拉伯语”,但是当我们将语言从“阿拉伯语”更改为“法语”之间,则所有视图控制器语言都会更改,除了WKWebView和UiprintInteractionControllloller popup中的内容。
谁能让我知道如何在WKWebView和UiprintinteractionController弹出窗口中更改语言/语言环境?
在WKWebView中,我们正在加载PDF文件。在此PDF文件中,我们显示了5页[1 ... 5],根据要求,内容应加载为“法语”,因为其他ViewControllers用“法语”语言加载了“法文”在“阿拉伯语”中。
据我了解,我们需要将WKWebView的语言环境更改为“法语”,但没有找到如何将语言环境从默认的“阿拉伯语”更改为“法语”的潜在客户。
请找到UiprintInteractionController弹出窗口的以下代码段。我如何打开印刷弹出窗口。
技术堆栈:xamarin.ios,c#c#
resects c#任何线索/解决方案。
Whenever we launch the app first time, the default language selected to "Arabic" but in between when we change the language from "Arabic" to "French", then all the view controller language is changed except the content in WkWebView and UIPrintInteractionController popup.
Can anyone let me know how to change language/ locale in WkWebView and UIPrintInteractionController popup ?
In WkWebView, we are loading the pdf file. In this pdf file, we are showing 5 pages [1...5] and as per the requirement, the content should load in "French" as other ViewControllers are loaded with the "French" language except the WkWebView content with the default language in "Arabic".
As I understand, we need to change the locale of the WkWebView to "French" but not finding the lead on how to change the locale from default "Arabic" to "French" the content / WkWebView gets loaded.
Please find the below code snippet of UIPrintInteractionController popup. how i am open the print popup.
Technology stack : Xamarin.IOS, C#
Any leads / solutions are highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想更改iOS上的语言,则可以使用代码在设置中更改它。
有关更多详细信息,您可以参考下面的链接。 https://develoveler.apple.com/news/news/?id=u2cfuj88
和该视频将显示操作。 https://developer.apple.apple.com/videos/videos/play/play/play/play/play/wwdc2019/403/403
If you want to change language on ios, you could use the code to change it in Settings.
For more details, you could refer the link below. https://developer.apple.com/news/?id=u2cfuj88
And the video would show the operation. https://developer.apple.com/videos/play/wwdc2019/403