Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why cant extract strings for packages from XRENGINE? #232

Open
johnfelipe opened this issue Jun 6, 2022 · 1 comment
Open

why cant extract strings for packages from XRENGINE? #232

johnfelipe opened this issue Jun 6, 2022 · 1 comment

Comments

@johnfelipe
Copy link

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

@johnfelipe
Copy link
Author

anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant