Skip to content

bymyslf/PseudoLocalizer

Repository files navigation

PseudoLocalizer Build Status Build Status NuGet

Pseudolocalization (or pseudo-localization) is a software testing method used for testing internationalization aspects of software. Instead of translating the text of the software into a foreign language, as in the process of localization, the textual elements of an application are replaced with an altered version of the original language.

Quick start

using static PseudoLocalizer.PseudoLocalizer;
PseudoLocalize("text");

or

using PseudoLocalizer;
"text".PseudoLocalize();

Why?

IBM suggests that on average, we should expect any English string to inflate by 30% when translating in another language. Using pseudo localization is a way to simulate translation of English UI strings, without waiting for, or going to the effort of doing real translation. Think of it as a fake translation that remains readable to an English speaking developer, and allows them to test for translation related expansion.

How it works?

Here are the various elements of the transformation:

  • Start and end markers
    • All strings are encapsulated in [ ]
  • Transformation of characters applying accents
    • Formatting placeholders and HTML tags are ignored
  • Padding text
    • Simulates translation induced expansion by doubling all vowels

License

MIT

Other Resources

About

Small .NET Standard Pseudol10n library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages