How to localizae application display name of iOS developed with .NET MAUI?

Muhab Abdulraheem 21 Reputation points
2023-03-16T12:23:51.11+00:00

Display name is localized on android in (Resources\values) folder and it works as expected. However, I can't get it to work with iOS.

What have been done:

  1. In info.plist make sure there is this code
    <key>CFBundleDevelopmentRegion</key>
   	<string>en</string>
   	<key>CFBundleLocalizations</key>
   	<array>
   		<string>en</string>
   		<string>ar</string>
   	</array>
   	<key>CFBundleDisplayName</key>
   	<string>Thamar</string>
  1. In platform/iOS add this folder structure. User's image
  2. In each InfoPlist.strings , add CFBundleDisplayName localization "CFBundleDisplayName" = "ثمار";

Any help appreciated.. thank you.

Developer technologies .NET .NET MAUI
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2023-03-17T08:13:03.2966667+00:00

    Hello,

    Please move the .lproj folder out of Platforms folder, which should be at the same level as the Platforms/Resources/App.xml file.

    You also could check if the build action of InfoPlist.strings is BundleResource.

    In addition, you can go to Properties ->Build->App Info (via VS for Mac), then check the Application Title, which display name of the application for base language(usually the base language is en).

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.