Pseudo-Localization Tester

Turn your English strings into stretched, accented test text, see which buttons and labels would overflow, and export a pseudo locale file for your app.

Hufanya kazi kwenye kivinjari chako. Faili zako hazitoki kamwe kwenye kifaa. Tazama jinsi ya kuthibitisha

…

Jinsi ya kufanya

  1. 1
    Add strings

    Open a strings file or paste key=value lines into Source strings.

  2. 2
    Pick the format

    Check the Format menu matches your file.

  3. 3
    Set the options

    Choose Text expansion, accents, brackets, key prefix and right-to-left runs.

  4. 4
    Set limits

    Enter the Default character limit and per-key character or pixel widths.

  5. 5
    Find problems

    Tick Show only strings that are too long and look at the preview boxes.

  6. 6
    Export

    Download the pseudo file and the length report CSV.

Kuhusu zana hii

Pseudo-localization is a way to test an app for translation problems before any translator is involved. Every string is replaced with a version that still reads roughly like English but uses accented letters, is longer, and is wrapped in brackets. Run the app with that fake language and problems jump out: text that is hard-coded and stays plain English, labels cut off because German or Finnish will be longer, characters that a font cannot draw, and strings built by gluing pieces together. Android and Windows both ship pseudo locales for this reason. This tester does the same for any string file. Paste key and value lines or open JSON, ARB, YAML, iOS strings, Android XML, RESX, properties or PO. Every string is converted while placeholders, HTML tags, escapes and curly-brace variables stay untouched, so the result still works in the app. You can then download the pseudo file in the same format, check each key against a character limit, and preview how wide the text would be on a real button.

Expansion that matches reality

Short strings grow the most when translated. A three-letter OK button might double, while a long sentence grows by about a third. The default expansion follows the IBM globalization guideline: strings of up to 10 characters get 200 percent extra, 11 to 20 characters 90 percent, 21 to 30 characters 70 percent, 31 to 50 characters 50 percent, 51 to 70 characters 40 percent and longer text 30 percent. You can also choose a fixed percentage or no expansion. Padding uses readable filler words so line breaks happen in natural places.

Accents, brackets, keys and right-to-left runs

Accented letters prove that the font and the whole data path handle characters outside basic Latin. Brackets at both ends show at once when text is cut off, because the closing bracket goes missing. The key prefix option puts the string key in front of each value, which helps testers report exactly which string is wrong. Right-to-left runs wrap each word in Unicode bidirectional control characters, a technique also used by Android's pseudo bidi locale, so you can see whether your layout copes with text that flows the other way. Mirror the preview layout switches the preview column to right-to-left direction.

Character and pixel limits

Set a default character limit and override it per key. Each row shows the pseudo length against its limit in green or red. For tighter checks, enter a pixel width per key: the tester measures the pseudo text with the browser's system font at the chosen size and draws a dashed box of that width, so you see the ellipsis exactly where a fixed-width button would cut the text. Show only strings that are too long gives a quick to-do list, and the length report exports everything as CSV.

Limits

Pixel widths are measured with the system font of your browser, which may differ from your app's font. Pseudo text checks layout and encoding, not grammar or plural rules. Right-to-left runs test text direction only; real Arabic or Hebrew shaping must still be tested with real translations.

Mfano uliotatuliwa

An app team pastes eight strings. Save has 4 visible characters, so the IBM rule adds 8, and the pseudo value is a bracketed Šáṽé followed by filler, 14 characters including brackets. With a limit of 12 characters and a 90 pixel button, the row turns red: at 14 pixel font the pseudo text measures 118 pixels. The welcome string keeps its curly-brace name variable unchanged and the percent-d in the cart line stays intact. The team widens the button, exports pseudo.properties as a test locale and finds two labels that stayed in plain English because they were hard-coded.

Kwa ufupi

Maswali yanayoulizwa mara kwa mara

Will placeholders still work in the pseudo file?

Yes. Printf placeholders, curly-brace variables, HTML tags, entities and escapes such as backslash-n are never changed, only the letters around them.

Where does the expansion rule come from?

From IBM's globalization guidance, which gives typical growth from English by string length. You can switch to a fixed percentage.

What is the right-to-left option for?

It wraps words in bidirectional control characters so the text renders right to left, showing whether your layout and text fields handle bidi text.

How accurate is the pixel check?

It uses the browser's canvas text measurement with the system font at your chosen size. Use the same size as your UI for a close estimate.

Which file formats can I export?

The same set as import: properties, JSON, ARB, YAML, iOS strings, Android XML, RESX and PO.

Does this translate anything?

No. Pseudo text is fake on purpose. It only simulates the shape of translated text for testing.

Bila malipo kabisaHakuna ada, hakuna usajili
Faili hubaki za faraghaKila kitu hufanya kazi kwenye kivinjari chako
Rahisi katika lugha yakoInapatikana kwa lugha nyingi