From 2b48f27afaf69359de7eedf734d9b7799b4a38a3 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 7 Apr 2022 15:48:01 +0200
Subject: [PATCH] data-table-view: refresh translations

---
 packages/data-table-view/i18next-scanner.config.js    | 2 ++
 packages/data-table-view/src/i18n/de/translation.json | 6 +++---
 packages/data-table-view/src/i18n/en/translation.json | 6 +++---
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/packages/data-table-view/i18next-scanner.config.js b/packages/data-table-view/i18next-scanner.config.js
index f0f86ce0..d15acb02 100644
--- a/packages/data-table-view/i18next-scanner.config.js
+++ b/packages/data-table-view/i18next-scanner.config.js
@@ -3,12 +3,14 @@ module.exports = {
     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/data-table-view/src/i18n/de/translation.json b/packages/data-table-view/src/i18n/de/translation.json
index 175e60ae..44ed9cf1 100644
--- a/packages/data-table-view/src/i18n/de/translation.json
+++ b/packages/data-table-view/src/i18n/de/translation.json
@@ -1,6 +1,6 @@
 {
-    "print": "Drucken",
-    "export-excel": "Excel Export",
+    "column-search-placeholder": "Nach {{fieldName}} suchen",
     "export-csv": "CSV Export",
-    "column-search-placeholder": "Nach {{fieldName}} suchen"
+    "export-excel": "Excel Export",
+    "print": "Drucken"
 }
diff --git a/packages/data-table-view/src/i18n/en/translation.json b/packages/data-table-view/src/i18n/en/translation.json
index b4cb3d15..0f42ca8a 100644
--- a/packages/data-table-view/src/i18n/en/translation.json
+++ b/packages/data-table-view/src/i18n/en/translation.json
@@ -1,6 +1,6 @@
 {
-    "print": "Print",
-    "export-excel": "Excel Export",
+    "column-search-placeholder": "Search for {{fieldName}}",
     "export-csv": "CSV Export",
-    "column-search-placeholder": "Search for {{fieldName}}"
+    "export-excel": "Excel Export",
+    "print": "Print"
 }
-- 
GitLab