How do you handle dynamic translations?
See original GitHub issueHi,
Is it possible to translate the example below?
{routes.map(route => <Trans>{route}</Trans>)}
If routes equals [‘home’, ‘contact’] i’d expect two new keys to be extracted ‘home’ and ‘contact’. However, currently what is extracted is ‘{0}’.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Dynamic Translation - Product Documentation | ServiceNow
The Dynamic Translation spoke provides actions to enable the ability to translate multiple texts from one language into one or more languages ...
Read more >Dynamic translation on forms and activity streams - YouTube
Explains how to enable a dictionary for translating forms and activity streams. This video applies to UI16, the latest version of the user ......
Read more >How to translate dynamic content? - Help Center
In this article, you'll find how to translate dynamic content. 1) Head over to your site and right-click to pull up the menu...
Read more >5 smart tips for localizing dynamic content - Smartcat
Use machine translation + post-editing. · Accumulate knowledge. · Work directly with freelancers. · Approach different content differently. · Let ...
Read more >Translating Dynamic Content (Strings) - Phrase
Keep translations of dynamic content in a separate project, next to the project already in use for handling static translations. Depending on quantity...
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
Exactly,
@lingui/babel-plugin-extract-messages
findsi18nMark
function calls and extracts it and removei18nMark
function completely.Yeah, first you need to use
i18nMark
to mark translatable strings and then pass it as an id either to<Trans>
component ori18n._
method: