[Pseudo Localization] Syntax tokens shouldn't be pseudo localized
See original GitHub issueDescribe the bug
Pseudolocalization mutates syntax tokens, for example in the follow select
syntax the key “screener” is mutated as well as the select
keyword.
Error: Can't parse message. Please check correct syntax: "Ŷōũŕ ƥŕōvĩďēŕ śēńţ à {0, śēĺēćţ, śćŕēēńēŕ {ŵēĺĺńēśś àśśēśśmēńţ} other {{assessmentType}}} ƒōŕ ŷōũ ţō ţàķē. Ƥĺēàśē ţàķē à ƒēŵ mĩńũţēś ţō ćōmƥĺēţē ţĥĩś àśśēśśmēńţ ƀēƒōŕē ŷōũŕ ńēxţ àƥƥōĩńţmēńţ."
To Reproduce Steps to reproduce the behavior, possibly with minimal code sample, e.g:
import { Trans } from "@lingui/react"
export default function App() {
return (
<div>
Your provider sent a{' '}
<Select
value={isScreenerAssessment ? 'screener' : 'other'}
screener="wellness assessment"
other={assessmentType}
/>{' '}
for you to take. Please take a few minutes to complete this
assessment before your next appointment.
</div>
}
Expected behavior Syntax and tokens are unchanged, only actual language.
Additional context Add any other context about the problem here.
- jsLingui version: 2.9.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Pseudo-Localization: What It Is and Why It Matters - Shopify
Pseudo -localization (or pseudolocalization, or pseudo-translation) is the process of verifying that your product is ready for localization.
Read more >Pseudolocalization - Wikipedia
Pseudolocalization (or pseudo-localization) is a software testing method used for testing internationalization aspects of software.
Read more >Fluent for Firefox Developers
When working with a Fluent-backed UI, the developer gets a new tool to test their UI against several classes of problems. Pseudolocalization is...
Read more >Lingui Configuration — LinguiJS documentation
Defines location of message catalogs and what files are included when extract is scanning ... "en" then all messages in en catalog will...
Read more >User interface for machine aided authoring and translation ...
20070169013, Pseudo translation within integrated development environment ... indicating that a character sequence in a string should not be localized; ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Okay i fix #919 asap
We like to release new version each Tuesday. So the next Tuesday will include this fix =)