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.

Support interpolation options "prefix" and "suffix"

See original GitHub issue

The readme says “All other i18next options can be passed in as well”, but when I pass in interpolation options “prefix” and “suffix”, it just stops working. Are these options supported?

interpolation: {
    prefix: '%{',
    suffix: '}',
  }

Thanks for your help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
whysbizcommented, Aug 19, 2020

Any idea how to support this format :item?

i try to put prefix as “:” and suffix as “” and it doesn’t work. Any idea?

0reactions
isaachinmancommented, Jan 21, 2020

Glad to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support interpolation options "prefix" and "suffix" #620 - GitHub
We could check for the existence of interpolation.prefix and interpolation.suffix and insert those values if they exist into the default value ...
Read more >
Interpolation - i18next documentation
Interpolation is one of the most used functionalities in I18N. ... Prefix/Suffix for interpolation and other options can be overridden in the init...
Read more >
IDE0071: Simplify interpolation - .NET - Microsoft Learn
Simplify interpolation (IDE0071)​​ This style rule concerns with simplification of interpolated strings to improve code readability. It ...
Read more >
StringSubstitutor (Apache Commons Text 1.10.0 API)
This class takes a piece of text and substitutes all the variables within it. The default definition of a variable is ${variableName} ....
Read more >
10.2. Parameter Substitution
If suffix of var matches Pattern, then substitute Replacement for Pattern. Example 10-13. Matching patterns at prefix or suffix of string. #!/bin/bash #...
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