i18next-scanner | extract translation keys/values , and merge them into i18n | Runtime Evironment library
kandi X-RAY | i18next-scanner Summary
kandi X-RAY | i18next-scanner Summary
Scan your code, extract translation keys/values, and merge them into i18n resource files.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of i18next-scanner
i18next-scanner Key Features
i18next-scanner Examples and Code Snippets
Community Discussions
Trending Discussions on i18next-scanner
QUESTION
I use React with react-i18next
and to generate the i18n json files I use i18next-scanner
.
As I have seen, the react-i18next
json files need the key "translation":{...}
for everything else.
How can I add the i18next-scanner
automatically?
EDIT:
i18n.js
...ANSWER
Answered 2020-Apr-05 at 13:16As of the fact that you are using inline resources, there is a need to prefix with "translations", you can do it in the usage.
QUESTION
I have the following:
...ANSWER
Answered 2020-Mar-16 at 09:12I'v reviewed the libs source code, from the tests, it looks like this lib is not supports this.
But, from this code, if your options.context
is a function, it will be invoked, that means that you will able to modify it.
Check this code: https://codesandbox.io/s/laughing-ptolemy-vd1xb
As you can see, I've managed to change the context type, but the lib is not supporting your case (base on this line) it adds only one context.
It can be a really simple PR :]
Edit
I've added this functionality to i18next-scanner, now you can specify contextDefaultValues
- a list of values that will be used in a case of dynamic context values.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install i18next-scanner
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page