i18next-scanner
i18next-scanner copied to clipboard
why cant extract strings for packages from XRENGINE?
https://github.com/XRFoundation/XREngine/tree/dev/packages
root@ubuntu21:~/i18next-scanner# i18next-scanner --config /root/i18next-scanner/examples/i18next-scanner.config.js --output /root/i18next-scanner/test/packages/client 'src/**/*.{js,jsx}'
i18next-scanner: options={
"debug": true,
"sort": false,
"attr": {
"list": [
"data-i18n"
],
"extensions": [
".html",
".htm"
]
},
"func": {
"list": [
"i18next.t",
"i18n.t"
],
"extensions": [
".js",
".jsx"
]
},
"trans": {
"component": "Trans",
"i18nKey": "i18nKey",
"defaultsKey": "defaults",
"extensions": [
".js",
".jsx"
],
"acorn": {
"ecmaVersion": 2020,
"sourceType": "module"
}
},
"lngs": [
"en",
"de"
],
"fallbackLng": "en",
"ns": [
"locale",
"resource"
],
"defaultLng": "en",
"defaultNs": "resource",
"defaultValue": "__STRING_NOT_TRANSLATED__",
"resource": {
"loadPath": "i18n/{{lng}}/{{ns}}.json",
"savePath": "i18n/{{lng}}/{{ns}}.json",
"jsonIndent": 2,
"lineEnding": "\n"
},
"keySeparator": false,
"nsSeparator": false,
"context": true,
"contextFallback": true,
"contextSeparator": "_",
"contextDefaultValues": [],
"plural": true,
"pluralFallback": true,
"pluralSeparator": "_",
"interpolation": {
"prefix": "{{",
"suffix": "}}"
}
}
i18next-scanner: Added a new translation key { "key": "__STRING_NOT_TRANSLATED__" } to "i18n/en/resource.json"
i18next-scanner: Added a new translation key { "key": "__STRING_NOT_TRANSLATED__" } to "i18n/de/resource.json"
i18next-scanner: Added a new translation key { "ns:foo.bar": "__STRING_NOT_TRANSLATED__" } to "i18n/en/resource.json"
i18next-scanner: Added a new translation key { "ns:foo.bar": "__STRING_NOT_TRANSLATED__" } to "i18n/de/resource.json"
i18next-scanner: Added a new translation key { "ns:foo.bar_plural": "__STRING_NOT_TRANSLATED__" } to "i18n/en/resource.json"
i18next-scanner: Added a new translation key { "ns:foo.bar_plural": "__STRING_NOT_TRANSLATED__" } to "i18n/de/resource.json"
pls help me for put to work your script
anyone?