We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi! Remote loader unable to parse ICU Select, with following error:
SyntaxError: Unexpected token s in JSON at position 40 at JSON.parse (<anonymous>)
Example:
import { remoteLoader } from "@lingui/remote-loader" async function testFunction() { const messages = await simulatedJsonResponse() const remoteMessages = remoteLoader({messages}) } function simulatedJsonResponse() { return new Promise((resolve) => { resolve({ "customKey": "{someVariable, select, someVarValue {SomeTextHere} other {SomeOtherText}}" }) }) } testFunction()
The text was updated successfully, but these errors were encountered:
Yep, confirmed native JSON.parse is not smart enough. Releasing a new version right now
Sorry, something went wrong.
fix: remoteLoader parse complex structures failed #1087
cee63c4
Give it a try to 3.10.4, just released. Should work fine :)
No branches or pull requests
Hi!
Remote loader unable to parse ICU Select, with following error:
Example:
The text was updated successfully, but these errors were encountered: