Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Added

- [L10NSharp] Added pseudolocalization support: lookups for the standard `qps-ploc` pseudo-locale (`LocalizationManager.PseudoLocalizationLanguageId`) return the English text pseudolocalized at runtime (e.g. `[Tîitlée Mîissîing]`), so testers can spot non-internationalized strings and layout problems. Set `LocalizationManager.OfferPseudoLocalization = true` to include it in the offered UI languages; `LocalizationManager.PseudoLocalize(string)` exposes the transform directly. See `src/L10NSharp/Pseudo/README.md`.

## [10.0.0] - 2026-08-27

### Added
Expand Down
16 changes: 16 additions & 0 deletions src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ public void GetDynamicString_NoManagerLoaded_EnglishNull_ReturnsId(string uiLang
}
}

/// <summary>
/// The pseudo-locale is treated like English here: with no manager loaded, the supplied
/// English text is still what gets returned, pseudolocalized.
/// </summary>
[Test]
public void GetDynamicStringOrEnglish_NoManagerLoaded_Pseudo_PseudolocalizesSuppliedEnglish()
{
var pseudo = LocalizationManager.PseudoLocalizationLanguageId;
Assert.That(
LocalizationManager.GetDynamicStringOrEnglish("Glom", "prefix.data", "data", null, pseudo),
Is.EqualTo(LocalizationManager.PseudoLocalize("data")));
Assert.That(
LocalizationManager.GetDynamicStringOrEnglish("Glom", "prefix.data", null, null, pseudo),
Is.EqualTo("prefix.data"));
}

[TestCase(null)]
[TestCase("en")]
[TestCase("es")]
Expand Down
Loading
Loading