# Application Localization: Pseudo Locale Tester

A pseudo locale tester with a strategy switch and ruled rows pairing each English string with its accented render, growth percentage, and fit badge.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/pseudo-locale-tester
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Localization](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/pseudo-locale-tester.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-localization-pseudo-locale-tester
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/localization/pseudo-locale-tester`

## About this block

Pseudo Locale Tester renders the qps-ploc build of
the checkout namespace so layout breaks surface
before real translations arrive. A segmented switch
picks the strategy, Accented, Expanded, or Bracketed,
and each string sits in a ruled row that pairs the
English source with its accented pseudo render, a
growth percentage, and a fit Badge reading OK,
Overflow, or Clipped. Rows that break carry a note
with the exact numbers, a Pay now button that needs
131px inside 96px, and a free returns line that
clips after 34 characters.

The rows array is typed with a Fit union and a
fitBadge record maps each state to its label and Badge
variant, so a new row only has to declare its fit. The
footer sets the expectation with a real figure, German
runs about 35 percent longer than English.

## When to use

Reach for this block on a developer or QA localization
screen, run against a pseudo locale generated from
your source strings. Wire the growth numbers to your
real measured widths so the Overflow and Clipped
badges reflect the shipping layout, not an estimate.

A natural flow around it on an Application Pro page:

**Before**

- [Locale coverage matrix](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization)
- [Translation table](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization)

**After**

- [String editor panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization)
- [Developer tools](https://www.shadcn-ui-blocks.com/blocks/application-pro/developer-tools)

## What you can display

One strong use is the layout audit before
translation. Other pseudo locale shapes:

- **Expanded only.** The strategy fixed to the widest
  render so every string is stress tested at once.
- **Failures first.** Rows filtered to Overflow and
  Clipped so the fixes queue up at the top.
- **Per screen grouping.** Strings grouped by the view
  they render in rather than a flat namespace list.

> Tip: pseudo test before you send a single string to
> translators, a layout fixed early costs nothing next
> to the rework after every locale lands.

## More in Application Localization

- [Format Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/format-settings)
- [Glossary Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/glossary-manager)
- [Language Switcher Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/language-switcher-blueprint)
- [Locale Coverage Matrix](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/locale-coverage-matrix)
- [Locale Fallback Chain](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/locale-fallback-chain)
- [Locale Preview Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/locale-preview-card)
- [RTL Preview Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/rtl-preview-panel)
- [String Editor Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/string-editor-panel)
- [Translation Progress Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/translation-progress-card)
- [Translation Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/localization/translation-table)
