lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

[Feature]: Pseudo-Localization Mode

Open ashutoshdebug opened this issue 1 month ago • 7 comments

Feature Proposal: “Pseudo-Localization Mode”

Add a --pseudo (or pseudo: true in config) mode to Lingo.dev Compiler and CLI that automatically pseudo-translates all extracted strings — i.e., replaces characters with accented versions, optionally lengthens them, and wraps with markers — without calling any external API.

Why This Feature

Helps developers test UI for internationalization readiness without waiting for actual translations.

Detects layout issues (e.g., truncated text, overflow).

Standard i18n practice used in Google, Microsoft, and Mozilla localization pipelines.

Example Behavior

Input:

<p>Submit</p>
<p>Welcome back!</p>

Output (pseudo locale en-XA):

<p>Šûbmíţ⚡</p>
<p>Ŵêļçømèƀäçķ!⚡</p>

Proposed Usage

Via CLI

pnpx lingo.dev run --pseudo

ashutoshdebug avatar Oct 30 '25 17:10 ashutoshdebug

Love this idea, I can implement --pseudo in the compiler/CLI (simple accenting + optional lengthening/wrapping). Assign this to me if that’s alright and I’ll open a PR with tests & docs shortly.

DeveloperViraj avatar Oct 30 '25 17:10 DeveloperViraj

@DeveloperViraj I got this idea that's why I opened it, but nevermind if I get stuck I will seek your help!

ashutoshdebug avatar Oct 30 '25 17:10 ashutoshdebug

@DeveloperViraj if @ashutoshdebug wants to work on this issue, he's the one who opened it, so he gets priority. Also (both of you) remember not to open a PR unless you are assigned to this issue!

To avoid confusion, please be aware that I am not a member of the Lingo.dev team!

The-Best-Codes avatar Nov 09 '25 00:11 The-Best-Codes

This is a great idea @ashutoshdebug, assigning the issue to you now. Ping @sumitsaurabh927 / our Core team on Discord if you need any guidance!

maxprilutskiy avatar Nov 10 '25 07:11 maxprilutskiy

@maxprilutskiy I will work on the idea once I know how to setup the env on a windows system

ashutoshdebug avatar Nov 10 '25 08:11 ashutoshdebug

@maxprilutskiy best

Reeteshprajapati avatar Nov 16 '25 17:11 Reeteshprajapati

@maxprilutskiy I have initiated a PR, please review it and let me know your thoughts!

ashutoshdebug avatar Nov 23 '25 20:11 ashutoshdebug