-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
area-localizationLocalization and globalization issuesLocalization and globalization issuesexternalpartnerIssue or Request from a partner teamIssue or Request from a partner teampartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Description
Description
If I run app in debug mode dotnet build -t:Run -f:net6.0-android it doesn't show translated message. For dotnet build -t:Run -f:net6.0-android -c:Release it does.
Project to reproduce - https://github.com/nevse/Maui-Tests-Localization1

Steps to Reproduce
- create app
dotnet new maui -n HumanaizerTests - add references
<ItemGroup>
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
<PackageReference Include="Humanizer.Core.de" Version="2.14.1" />
</ItemGroup>
- change culture to
deand use Humanizer to read data localization resources
CultureInfo.CurrentCulture = CultureInfo.CurrentUICulture = new CultureInfo("de");
CounterLabel.Text = DateTime.UtcNow.AddHours(-2).Humanize();
- run the app in debug
dotnet build -t:Run -f net6.0-androidand release modedotnet build -t:Run -f:net6.0-android -c:Release
Version with bug
Preview 12 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output
No response
Metadata
Metadata
Assignees
Labels
area-localizationLocalization and globalization issuesLocalization and globalization issuesexternalpartnerIssue or Request from a partner teamIssue or Request from a partner teampartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androids/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working