getTranslations need Help
kamaldlk opened this issue · 0 comments
kamaldlk commented
I'm trying to get translate my application using translate-components lib Extracting strings I'm getting empty please give me any examples
**
let extractTranslations = require('../node_modules/translate-components/lib/getTranslations')
extractTranslations.extract('./src/.js', './src/es.json', ['es'])
extractTranslations.extract('./src/.js', './src/de.json', ['de'])
extractTranslations.extract('./src/*.js', './src/fr.json', ['fr'])
**
result
{
"Welcome to React": {
"de": ""
},
"To get started, edit": {
"de": ""
},
"and save to reload.": {
"de": ""
},
"Spanish": {
"de": ""
},
"'\nconst closeTag = '": {
"de": ""
}
}