dotnet / dotnet/maui

.Net MAUI Localization

Open
#5,595 29 comments 5 reactions 0 assignees View on GitHub
area-localization platform/android platform/ios platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

Localization is not working completely. I am using shell and when I change the language at runtime some texts are changed but not all of them. Some pages in the stack don't get translated. If I close the app and run it again the text in all pages is displayed in the correct language (I am saving the user setting to the device). The Shell menu localization works always, so I think this is a bug.

I also noticed that in Android the Shell flyout disappears when you click on the page content (which I expect is the desired behavior), in windows you have to click in the hamburger button for the flyout to hide. When changing the language programmatically, in windows the application loses the title bar in all the pages, in Android it works as expected.

Using FontAwesome for the icons in shell is nice but the alignment in Android is not very good and there is no padding or margin property to adjust their position.

In preview 13, I was able to publish to my IOs physical device in preview14 not anymore.

### Steps to Reproduce

I am using simple app with Shell and some pages to test navigation, localization and theming. I am including a video with the issues:

Code to change language at runtime:

```csharp
...
switch (App.Language)
{
case "English":
selCulture = "en-US";
break;
case "Spanish":
selCulture = "es-CO";
break;
default:
break;
}

CultureInfo.CurrentUICulture = new CultureInfo(selCulture, false);
Settings.Language = App.Language;

Application.Current.MainPage = new AppShell();
await Shell.Current.GoToAsync($"//{nameof(SettingsPage)}");
...
```

https://user-images.githubusercontent.com/6794769/160248838-2f773a3d-d6ae-4349-beab-a887a6c4610f.mp4

.

### Version with bug

Preview 14 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

iOS, Android, Windows

### Affected platform versions

Android 12, Windows 11

### Did you find any workaround?

No, I have not tried any work arounds

### Relevant log output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the runtime language-change snippet, especially the replacement of MainPage with AppShell and navigation to SettingsPage, then review the attached video. The report combines localization, Shell flyout and title-bar behavior, icon alignment, and iOS publishing across Android, Windows, and iOS; done would require separating these symptoms and reproducing each one reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp, ios
Domain
desktop-dev, localization, mobile-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.