larsiusprime / firetongue

A translation/localization framework written in Haxe
MIT License
144 stars 32 forks source link

Add a 'pseudo' option, which scrambles text. #42

Open EliteMasterEric opened 2 years ago

EliteMasterEric commented 2 years ago

Assume the use case where a user has a project with many existing strings and wants to find places they may have missed while translating. A debug option to help with this would be useful.

With the pseudo option for the init() function, any translation text will be replaced with a string of random characters, 30-40% longer than the original text, surrounded by brackets. For example, with pseudo enabled, hello world world render as [zgnytsadflf frgtqsdfkl;sdfkjl]. This also helps you see if the text would be cut off in languages with longer text, by checking the brackets.