Skip to content

Localization of info.plist for IOS #15928

Answered by FM1973
FM1973 asked this question in Q&A
Jun 29, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andyzukunft
Comment options

@Brionvega
Comment options

@hugebug4ever
Comment options

Answer selected by FM1973
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants