diff --git a/i18n-scripts/build-i18n.sh b/i18n-scripts/build-i18n.sh deleted file mode 100755 index e206270b9..000000000 --- a/i18n-scripts/build-i18n.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -set -exuo pipefail - -FILE_PATTERN="{!(dist|node_modules)/**/*.{js,jsx,ts,tsx,json},*.{js,jsx,ts,tsx,json}}" - -i18next "${FILE_PATTERN}" [-oc] -c "./i18next-parser.config.js" -o "locales/\$LOCALE/\$NAMESPACE.json" diff --git a/i18next-parser.config.js b/i18next-parser.config.js index aa8f23b08..a431b0b08 100644 --- a/i18next-parser.config.js +++ b/i18next-parser.config.js @@ -2,7 +2,7 @@ const { CustomJSONLexer } = require('./i18n-scripts/lexers'); module.exports = { - input: ['src/**/*.{js,jsx,ts,tsx}'], + input: ['src/**/*.{js,jsx,ts,tsx,json}', './console-extensions.json'], sort: true, createOldCatalogs: false, keySeparator: false, diff --git a/package.json b/package.json index e583d8e81..927bddefd 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "start-console": "./start-console.sh", "i18n-to-po": "node ./i18n-scripts/i18n-to-po.js", "po-to-i18n": "node ./i18n-scripts/po-to-i18n.js", - "i18n": "./i18n-scripts/build-i18n.sh && node ./i18n-scripts/set-english-defaults.js", + "i18n": "i18next && node ./i18n-scripts/set-english-defaults.js", "export-pos": "./i18n-scripts/export-pos.sh", "memsource-upload": "./i18n-scripts/memsource-upload.sh", "memsource-download": "./i18n-scripts/memsource-download.sh"