Skip to content

Commit

Permalink
Merge pull request #2302 from unoplatform/dev/xygu/20240524/localizer…
Browse files Browse the repository at this point in the history
…-not-resolving

fix: ResourceLoaderStringLocalizer not resolving
  • Loading branch information
nickrandolph committed May 24, 2024
2 parents 4919dca + 46a991a commit 8ba897a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ private LocalizedString GetLocalizedString(string name, params object[] argument
string? resource = null;
try
{
resource =
#if WINDOWS
resource = _appResourceMap.GetValue(name)?.ValueAsString ??
_defaultResourceMap.GetValue(name)?.ValueAsString;
_appResourceMap.GetValue(name)?.ValueAsString ??
_defaultResourceMap.GetValue(name)?.ValueAsString;
#else
resource = _appResourceLoader?.GetString(name) ??
(_appResourceLoader?.GetString(name) is { Length: > 0 } tmp ? tmp : null) ??
_defaultResourceLoader.GetString(name);
#endif

Expand Down

0 comments on commit 8ba897a

Please sign in to comment.