Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow pseudoLocalize to work in @lingui/loader #1165

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

ggascoigne
Copy link
Contributor

@lingui/loader uses strict mode when it's not running in production. This is turn means that compileSingleKey always gets passed an empty string as translation for the pseudo locale to translate. This seems to defeat the purpose of using pseudo localization.

With this change, you can use @lingui/loader and also get dynamically generated pseudo locale string.

@lingui/loader uses strict mode when it's not running in production.  This is turn means that `compileSingleKey` always gets passed an empty string as `translation` for the pseudo locale to translate.  This seems to defeat the purpose of using pseudo localization.

With this change, you can use @lingui/loader and also get dynamically generated pseudo locale string.
@vercel
Copy link

vercel bot commented Nov 11, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lingui-js/js-lingui/EGPTtzbm62HZLUyUmDYyXiwHupYG
✅ Preview: https://js-lingui-git-fork-ggascoigne-patch-1-lingui-js.vercel.app

@ggascoigne ggascoigne changed the title Allow pseudoLocalize to work in @lingui/loader fix: Allow pseudoLocalize to work in @lingui/loader Nov 11, 2021
@semoal semoal merged commit 356c224 into lingui:main Nov 26, 2021
@semoal
Copy link
Contributor

semoal commented Nov 26, 2021

Released with 3.13.0, enjoy it!
Sorry for the late release, has been really busy lately.
https://github.com/lingui/js-lingui/releases/tag/v3.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants