标题:Xamarin.ios,C#|无法从“阿拉伯语”更改语言。 “法语”来自WKWebView和UiprintInteractionController弹出窗口

发布于 2025-02-09 10:58:41 字数 623 浏览 2 评论 0原文

每当我们第一次启动该应用程序时,默认语言选择为“阿拉伯语”,但是当我们将语言从“阿拉伯语”更改为“法语”之间,则所有视图控制器语言都会更改,除了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.

enter image description here

Technology stack : Xamarin.IOS, C#

Any leads / solutions are highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倚栏听风 2025-02-16 10:58:41

如果您想更改iOS上的语言,则可以使用代码在设置中更改它。

UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!)

有关更多详细信息,您可以参考下面的链接。 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.

UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!)

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文