Pseudo-i18n 1.0.0

Simple pseudo-internationalization utility library: allows you to convert any latin alphabet string to a pseudo-language in order to test whether your application is localization-ready. The pseudo-strings respect links, tags, and other markup.
A command-line utility that converts resource files is available from the library’s Github page.
Based on John Robbin’s Pseudoizer and Scott Hanselman’s implementation.

Install-Package Pseudo-i18n -Version 1.0.0
dotnet add package Pseudo-i18n --version 1.0.0
<PackageReference Include="Pseudo-i18n" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pseudo-i18n --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Pseudo-i18n

Simple pseudo-internationalization utility library.

The library allows you to convert any latin alphabet string to a pseudo-language in order to test whether your application is localization-ready. The generated pseudo-string will try to respect links, tags, and other markup in your original strings.

Usage

Use the Translator class to translate strings at runtime:

PseudoInternationalization.Translator.ConvertToFakeInternationalized("Hello world");

This will return the string [Ħęľľő ŵőřľđ !!! !!!].

An extension method can also be used:

using PseudoInternationalization;

"Hello world".ToPseudo();

The following rules will be applied:

  • Strings containing URLs will not be translated,
  • Strings shorter than 10 characters will grow by 400%, longer strings will grow by 30% (! is used as a padding character),
  • Translated strings will always start with [ and end with ],
  • Tags, braces, and other markup will not be translated.

Links

A command-line utility that converts resource files is available from the library’s Github page.

Based on John Robbin’s Pseudoizer and Scott Hanselman’s implementation.

Pseudo-i18n

Simple pseudo-internationalization utility library.

The library allows you to convert any latin alphabet string to a pseudo-language in order to test whether your application is localization-ready. The generated pseudo-string will try to respect links, tags, and other markup in your original strings.

Usage

Use the Translator class to translate strings at runtime:

PseudoInternationalization.Translator.ConvertToFakeInternationalized("Hello world");

This will return the string [Ħęľľő ŵőřľđ !!! !!!].

An extension method can also be used:

using PseudoInternationalization;

"Hello world".ToPseudo();

The following rules will be applied:

  • Strings containing URLs will not be translated,
  • Strings shorter than 10 characters will grow by 400%, longer strings will grow by 30% (! is used as a padding character),
  • Translated strings will always start with [ and end with ],
  • Tags, braces, and other markup will not be translated.

Links

A command-line utility that converts resource files is available from the library’s Github page.

Based on John Robbin’s Pseudoizer and Scott Hanselman’s implementation.

Release Notes

First release.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 241 4/4/2018