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.

Template string support

See original GitHub issue

Thanks for your work. This library is a lifesaver for building static next sites, but it lacks template string support, which is quite useful in many cases.

Users would probably want to translate like:

t('key', {count: 2})
{
   "key": "You clicked {{count}} times"
}

How about implement this feature by integrating mustache?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kigawascommented, Nov 2, 2021

Oh man, you’re using tab to indent…

1reaction
kigawascommented, Nov 2, 2021

No problem, I’ll do this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template literals (Template strings) - JavaScript | MDN
Template literals are literals delimited with backtick ( ` ) characters, allowing for multi-line strings, string interpolation with embedded ...
Read more >
"template string" | Can I use... Support tables for HTML5, CSS3 ...
Template literals are string literals allowing embedded expressions using backtick characters (`). You can use multi-line strings and string interpolation ...
Read more >
JavaScript Template Literals - W3Schools
Template literals provide an easy way to interpolate variables and expressions into strings. The method is called string interpolation. The syntax is: ${...} ......
Read more >
Understanding Template Literals in JavaScript - DigitalOcean
Template literals make a lot of common string tasks simpler by interpolating expressions in strings and creating multi-line strings without any ...
Read more >
JavaScript Template Literals (Template Strings) - Programiz
In this tutorial, you will learn about JavaScript Template Literals (Template Strings) with the help of examples. Template literals (template strings) allow ...
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