Skip to content

A Firefox extension for testing localization.

License

Notifications You must be signed in to change notification settings

stephaniehobson/pseudolocalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pseudolocalize

What is pseudolocalization?

Pseudolocalization is a method for testing how code handles other languages. But you don't need to have a full translation to do the testing. Words get replaced with an altered version to fake translation.

For example: Account Settings → Àççôûñţ Šéţţîñĝš

This extension includes two pseudolocalization options:

Accented

This option will replace English characters with accented characters. This helps test fonts and page encoding. It also makes the text 30% longer which helps test for variation in word lengths (for example: German is often longer than English).

Bidi

This option will replace the English characters with backwards characters. It will also insert hidden characters what will get Firefox to treat the fake words as if they are in a language that is written from right to left.

It will also set the dir attribute on the <html> to RTL.

Reset

It's a very basic extension. To return to the original page, you will need to refresh.

Thanks

This extension was inspired by Firefox 62 Pseudolocalization Demo and uses the transformString function and character maps straight out of Firefox.

The Your Second Extension tutorial on the MDN Web Docs site was very useful to me!

Generate release

./zipup $VERSION
git push --follow-tags

About

A Firefox extension for testing localization.

Resources

License

Stars

Watchers

Forks

Packages

No packages published