Localize application display name of iOS developed with .NET MAUI?

Omar H 0 Reputation points
2024-04-25T23:11:33.74+00:00

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

What has been done:

  1. My solution : User's image
  2. In info.plist :
    User's image
  3. In InfoPlist.strings : User's image
  4. In csproj :

User's image

User's image

When I launch my application on iOs, alternating the system language:

  • the texts are well located in the application (French or English)
  • but the name of the application is always "The Door" (even after a complete reinstallation)

Thanks for your help.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,766 Reputation points
    2024-04-25T23:14:05.3+00:00

  2. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,451 Reputation points Microsoft Vendor
    2024-04-29T07:12:29.06+00:00

    Hello,

    Please check if you have set the user's preferred languages.

    Detail steps: Open Settings on your iPhone, go to General->Language &Region->Preferred Languages->France.

    iOS first looks up your user's most preferred language as described in Technical Q&A QA1828: How iOS Determines the Language For Your App

    Also, the string should be "CFBundleDisplayName" = "La porte"; the quotes were missed.

    For more details, please refer to Localization in Xamarin.iOS - Xamarin | Microsoft Learn

    (The doc is about Xamarin.iOS, and it applies to MAUI. In addition, Xamarin support will end on May 1, 2024, see Xamarin official support policy | .NET (microsoft.com) )

    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.