question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Pseudo Localization] Syntax tokens shouldn't be pseudo localized

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
semoalcommented, Jan 26, 2021

Okay i fix #919 asap

1reaction
semoalcommented, Jan 27, 2021

Awesome! Thanks for the quick fix!

A final question: any idea when a new release would be drafted?

We like to release new version each Tuesday. So the next Tuesday will include this fix =)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found