Template string support
See original GitHub issueThanks 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:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh man, you’re using tab to indent…
No problem, I’ll do this