英文:
MAUI Blazor not respecting device language on iOS
问题
如果我创建一个新的 MAUI Blazor 应用程序并添加两个输入框,如下所示:
<input type="date" title="日期"/>
<input type="time" title="时间">
有其他人解决了这个问题吗?
重现链接:https://github.com/vallgrenerik/MauiApp2_Input_Time_Date.App
英文:
If I create a new MAUI Blazor application and adding two inputs like:
<input type="date" title="Date"/>
<input type="time" title="Time" >
It mixes Swedish (my preferred language) and English.
Has anyone else solved this problem?
Repro:https://github.com/vallgrenerik/MauiApp2_Input_Time_Date.App
答案1
得分: 2
No bug/issue.
As Gerald mentioned in https://github.com/dotnet/maui/issues/15364, we have to set the CFBundleLocalizations
in the info.plist file.
Following code will show Swedish.
<key>CFBundleLocalizations</key>
<array>
<string>sv</string>
</array>
英文:
No bug/issue.
As Gerald mentioned in https://github.com/dotnet/maui/issues/15364, we have to set the CFBundleLocalizations
in the info.plist file.
Following code will show Swdish.
<key>CFBundleLocalizations</key>
<array>
<string>sv</string>
</array>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论