Authored by Julien Enselme

i18next-scanner configuration to extract translations from an Aurelia app

Use i18next-scanner to extract translations from JS/TS files and .html files.

It is compatible with Javascript and Typescript. If you don't use Typescript, remove the line const typescript = require("typescript"); to avoid issues at import.

Add this file at the root of your project and run ./node_modules/.bin/i18next-scanner src/**/*.{js,ts,html} to extract the translations. They will be under src/locales/{{lng}}/translation.json.

i18next-scanner.config.js 2.18 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment