-
Hey there. Has anyone been able to localize the info.plist file for IOS? I´ve created the necessary folders for the InfoPlist.strings files. The .strings files follow the rule "key"="localized-value"; But I can´t set the build action to BundleResource. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I found a solution on reddit... Since BundleResource does not exist as a build action for .net maui, one can do the following in the project file:
In this case my default language is english and I set the text for english directly in the info.plist file. This does work, just keep in mind you have to set the regional settings right. |
Beta Was this translation helpful? Give feedback.
I found a solution on reddit...
Since BundleResource does not exist as a build action for .net maui, one can do the following in the project file:
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-ios'"> <MauiAsset Include="Platforms\iOS\Resources\de.lproj\InfoPlist.strings" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> </ItemGroup>
In this case my default language is english and I set the text for english directly in the info.plist file.
For "german" I followed the tutorials and created a file InfoPlist.strings in Platforms\iOS\Resources\de.lproj.
This does work, just keep in mind you have to set the regional settings right.