Skip to content

Commit

Permalink
feat: Add support for localized Title
Browse files Browse the repository at this point in the history
  • Loading branch information
morning4coffe-dev committed Jul 19, 2023
1 parent 508798f commit 252b663
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Uno.UWP/ApplicationModel/Package.Other.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ public string DisplayName
get
{
TryParsePackageManifest();

if (_displayName.StartsWith("ms-resource:", StringComparison.OrdinalIgnoreCase))
{
var resourceKey = _displayName["ms-resource:".Length..].Trim();

var resourceString = Resources.ResourceLoader.GetForViewIndependentUse().GetString(resourceKey);

if (!string.IsNullOrEmpty(resourceString))
{
_displayName = resourceString;
}
}

return _displayName;
}
}
Expand Down

0 comments on commit 252b663

Please sign in to comment.