Search code examples
iosmauimaui-blazor

MAUI Blazor not respecting device language on iOS


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.
Mixes Swedish and English

Time as well

Has anyone else solved this problem? Repro:https://github.com/vallgrenerik/MauiApp2_Input_Time_Date.App


Solution

  • 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>
    

    enter image description here