Skip to content
Snippets Groups Projects
Commit 67b5808b authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

file-handling: port to i18next-parser

parent c03ec3cb
No related branches found
No related tags found
No related merge requests found
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'},
};
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,
},
},
};
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"@rollup/plugin-node-resolve": "^13.0.0", "@rollup/plugin-node-resolve": "^13.0.0",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"eslint-plugin-jsdoc": "^38.0.0", "eslint-plugin-jsdoc": "^38.0.0",
"i18next-scanner": "^3.0.0", "i18next-parser": "^6.3.0",
"karma": "^6.0.0", "karma": "^6.0.0",
"karma-chrome-launcher": "^3.0.0", "karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^2.1.0", "karma-firefox-launcher": "^2.1.0",
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"build-prod": "rollup -c --environment BUILD:production", "build-prod": "rollup -c --environment BUILD:production",
"build-demo": "rollup -c --environment BUILD:demo", "build-demo": "rollup -c --environment BUILD:demo",
"build-test": "rollup -c --environment BUILD:test", "build-test": "rollup -c --environment BUILD:test",
"i18next": "i18next-scanner", "i18next": "i18next",
"watch": "npm run watch-local", "watch": "npm run watch-local",
"watch-local": "rollup -c --watch", "watch-local": "rollup -c --watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
......
...@@ -19,15 +19,15 @@ ...@@ -19,15 +19,15 @@
"remove-all": "Alle Dateien aus der Zwischenablage entfernen", "remove-all": "Alle Dateien aus der Zwischenablage entfernen",
"remove-all-btn": "Dateien entfernen", "remove-all-btn": "Dateien entfernen",
"remove-count": "Eine Datei aus der Zwischenablage 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": "Datei entfernen",
"remove-count-btn_plural": "{{count}} Dateien 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": "Alle Dateien aus der Zwischenablage sichern",
"save-all-btn": "Dateien sichern", "save-all-btn": "Dateien sichern",
"save-count": "Eine Datei aus der Zwischenablage 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": "Datei sichern",
"save-count-btn_plural": "{{count}} Dateien 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": "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-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", "saved-files-title": "Datei erfolgreich abgelegt",
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
"sink-btn_plural": "{{count}} Dateien ablegen", "sink-btn_plural": "{{count}} Dateien ablegen",
"sink-title": "Dateien in der Zwischenablage ablegen", "sink-title": "Dateien in der Zwischenablage ablegen",
"source-btn": "Datei auswählen", "source-btn": "Datei auswählen",
"source-btn-none": "Dateien auswählen",
"source-btn_plural": "{{count}} Dateien auswählen", "source-btn_plural": "{{count}} Dateien auswählen",
"source-btn-none": "Dateien auswählen",
"source-title": "Von der Zwischenablage 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-area-text": "Sie können in diesem Bereich Dokumente per Drag & Drop oder per Direktauswahl hochladen.",
"upload-button-label": "Dateien auswählen", "upload-button-label": "Dateien auswählen",
......
...@@ -19,15 +19,15 @@ ...@@ -19,15 +19,15 @@
"remove-all": "Remove all files from the clipboard", "remove-all": "Remove all files from the clipboard",
"remove-all-btn": "Remove all", "remove-all-btn": "Remove all",
"remove-count": "Remove file from the clipboard", "remove-count": "Remove file from the clipboard",
"remove-count_plural": "Remove {{count}} files from the clipboard",
"remove-count-btn": "Remove file", "remove-count-btn": "Remove file",
"remove-count-btn_plural": "Remove {{count}} files", "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": "Save all files from the clipboard",
"save-all-btn": "Save all", "save-all-btn": "Save all",
"save-count": "Save one file from the clipboard", "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": "Save file",
"save-count-btn_plural": "Save {{count}} files", "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": "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-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", "saved-files-title": "File successfully filed",
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
"sink-btn_plural": "Store {{count}} files", "sink-btn_plural": "Store {{count}} files",
"sink-title": "Store files on the clipboard", "sink-title": "Store files on the clipboard",
"source-btn": "Select file", "source-btn": "Select file",
"source-btn-none": "Select files",
"source-btn_plural": "Select {{count}} files", "source-btn_plural": "Select {{count}} files",
"source-btn-none": "Select files",
"source-title": "Select files from clipboard", "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-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", "upload-button-label": "Load to clipboard",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment