Quoting / Escaping does not work correctly with multiple interpolations
jarvispact opened this issue · comments
jarvispact commented
Which package?
react-intl
Describe the bug
The documentation about quoting / escaping here states the following: A single apostrophe escapes one syntax character immediately following it
So i would expect the following behaviour:
Hello {firstname} {lastname}
✅- expected:
Hello Tony Stark
- actual:
Hello Tony Stark
- expected:
Hello '{firstname} {lastname}
❌- expected:
Hello {firstname} Stark
- actual:
Hello {firstname} {lastname}
- expected:
Hello '{firstname}' {lastname}
✅- expected:
Hello {firstname} Stark
- actual:
Hello {firstname} Stark
- expected:
To Reproduce
Codesandbox URL
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser Chrome
- Version 120.0.6099.201 (Official Build) (64-bit) (cohort: Control)
Long Ho commented
hmm the codesandbox link just points to a new codesandbox. Can u fix that?
Long Ho commented
jarvispact commented
I saw the documentation on the website updated already. Thanks for the clarification.