diff --git a/packages/file-handling/i18next-parser.config.js b/packages/file-handling/i18next-parser.config.js new file mode 100644 index 0000000000000000000000000000000000000000..e1513af706ee9dccef346f9f34c8bf1d2e1beb4b --- /dev/null +++ b/packages/file-handling/i18next-parser.config.js @@ -0,0 +1,10 @@ +module.exports = { + createOldCatalogs: false, + indentation: 4, + keepRemoved: false, + locales: ['en', 'de'], + output: 'src/i18n/$LOCALE/$NAMESPACE.json', + input: ['src/**/*.js'], + sort: true, + i18nextOptions: {compatibilityJSON: 'v3'}, +}; diff --git a/packages/file-handling/i18next-scanner.config.js b/packages/file-handling/i18next-scanner.config.js deleted file mode 100644 index d15acb029ba662a7bdb0d29dc46eb81dfe3c1f61..0000000000000000000000000000000000000000 --- a/packages/file-handling/i18next-scanner.config.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = { - input: ['src/*.js'], - output: './', - options: { - debug: false, - sort: true, - removeUnusedKeys: true, - func: {list: ['i18n.t', '_i18n.t']}, - lngs: ['en', 'de'], - resource: { - loadPath: 'src/i18n/{{lng}}/{{ns}}.json', - savePath: 'src/i18n/{{lng}}/{{ns}}.json', - jsonIndent: 4, - }, - }, -}; diff --git a/packages/file-handling/package.json b/packages/file-handling/package.json index 91ad8ac5754d1b943c845cb6502ce68822e9797a..b313ada302f13ba370426fbfa9766bad3d762ec7 100644 --- a/packages/file-handling/package.json +++ b/packages/file-handling/package.json @@ -20,7 +20,7 @@ "@rollup/plugin-node-resolve": "^13.0.0", "eslint": "^8.0.0", "eslint-plugin-jsdoc": "^38.0.0", - "i18next-scanner": "^3.0.0", + "i18next-parser": "^6.3.0", "karma": "^6.0.0", "karma-chrome-launcher": "^3.0.0", "karma-firefox-launcher": "^2.1.0", @@ -57,7 +57,7 @@ "build-prod": "rollup -c --environment BUILD:production", "build-demo": "rollup -c --environment BUILD:demo", "build-test": "rollup -c --environment BUILD:test", - "i18next": "i18next-scanner", + "i18next": "i18next", "watch": "npm run watch-local", "watch-local": "rollup -c --watch", "watch-dev": "rollup -c --watch --environment BUILD:development", diff --git a/packages/file-handling/src/i18n/de/translation.json b/packages/file-handling/src/i18n/de/translation.json index 769c5f50d7ed19462bbdf7e049564ba9f2a9843d..9014babc8ce6fdedd8d7f166e18cc0f936f55ad9 100644 --- a/packages/file-handling/src/i18n/de/translation.json +++ b/packages/file-handling/src/i18n/de/translation.json @@ -19,15 +19,15 @@ "remove-all": "Alle Dateien aus der Zwischenablage entfernen", "remove-all-btn": "Dateien entfernen", "remove-count": "Eine Datei aus der Zwischenablage entfernen", + "remove-count_plural": "{{count}} Dateien aus der Zwischenablage entfernen", "remove-count-btn": "Datei entfernen", "remove-count-btn_plural": "{{count}} Dateien entfernen", - "remove-count_plural": "{{count}} Dateien aus der Zwischenablage entfernen", "save-all": "Alle Dateien aus der Zwischenablage sichern", "save-all-btn": "Dateien sichern", "save-count": "Eine Datei aus der Zwischenablage sichern", + "save-count_plural": "{{count}} Dateien aus der Zwischenablage sichern", "save-count-btn": "Datei sichern", "save-count-btn_plural": "{{count}} Dateien sichern", - "save-count_plural": "{{count}} Dateien aus der Zwischenablage sichern", "saved-files-body": "Eine Datei wurde erfolgreich temporär in der Zwischenablage abgelegt und kann jetzt innerhalb dieser Applikation verwendet werden.", "saved-files-body_plural": "{{count}} Dateien wurde erfolgreich temporär in der Zwischenablage abgelegt und können jetzt innerhalb dieser Applikation verwendet werden.", "saved-files-title": "Datei erfolgreich abgelegt", @@ -38,8 +38,8 @@ "sink-btn_plural": "{{count}} Dateien ablegen", "sink-title": "Dateien in der Zwischenablage ablegen", "source-btn": "Datei auswählen", - "source-btn-none": "Dateien auswählen", "source-btn_plural": "{{count}} Dateien auswählen", + "source-btn-none": "Dateien auswählen", "source-title": "Von der Zwischenablage auswählen", "upload-area-text": "Sie können in diesem Bereich Dokumente per Drag & Drop oder per Direktauswahl hochladen.", "upload-button-label": "Dateien auswählen", diff --git a/packages/file-handling/src/i18n/en/translation.json b/packages/file-handling/src/i18n/en/translation.json index 4597e0311a51134782d5503a2760a0e3d13d9e7c..23f8ce6c4a29e241701b6d8320fda6e95370b02c 100644 --- a/packages/file-handling/src/i18n/en/translation.json +++ b/packages/file-handling/src/i18n/en/translation.json @@ -19,15 +19,15 @@ "remove-all": "Remove all files from the clipboard", "remove-all-btn": "Remove all", "remove-count": "Remove file from the clipboard", + "remove-count_plural": "Remove {{count}} files from the clipboard", "remove-count-btn": "Remove file", "remove-count-btn_plural": "Remove {{count}} files", - "remove-count_plural": "Remove {{count}} files from the clipboard", "save-all": "Save all files from the clipboard", "save-all-btn": "Save all", "save-count": "Save one file from the clipboard", + "save-count_plural": "Save {{count}} files from the clipboard", "save-count-btn": "Save file", "save-count-btn_plural": "Save {{count}} files", - "save-count_plural": "Save {{count}} files from the clipboard", "saved-files-body": "A file was successfully stored temporarily in the clipboard and can now be used within this application.", "saved-files-body_plural": "{{count}} files were successfully stored temporarily in the clipboard and can now be used within this application.", "saved-files-title": "File successfully filed", @@ -38,8 +38,8 @@ "sink-btn_plural": "Store {{count}} files", "sink-title": "Store files on the clipboard", "source-btn": "Select file", - "source-btn-none": "Select files", "source-btn_plural": "Select {{count}} files", + "source-btn-none": "Select files", "source-title": "Select files from clipboard", "upload-area-text": "In this area you can upload documents up to a size of 32MB via Drag & Drop or by selecting them directly. ", "upload-button-label": "Load to clipboard",