From 6461d77da2c68677fbc7679fb92f66d4bf8d6da4 Mon Sep 17 00:00:00 2001 From: Kenneth Bruskiewicz Date: Wed, 15 Nov 2023 08:42:15 -0800 Subject: [PATCH] prettier, translations --- lib/editors/KeyValueEditor.js | 2 +- lib/toolbar.html | 55 ++++++++++----- lib/utils/i18n.js | 21 +++--- web/index.js | 105 ++++++++++++++++------------- web/translations/translations.json | 50 +++++++------- 5 files changed, 136 insertions(+), 97 deletions(-) diff --git a/lib/editors/KeyValueEditor.js b/lib/editors/KeyValueEditor.js index 36347559..5ad23b00 100644 --- a/lib/editors/KeyValueEditor.js +++ b/lib/editors/KeyValueEditor.js @@ -41,7 +41,7 @@ export default class KeyValueListEditor extends Handsontable.editors if (instance) { const _id = instance.getDataAtRowProp(row, '_id'); const label = instance.getDataAtRowProp(row, 'label'); - console.log(`${_id}, ${label}`) + console.log(`${_id}, ${label}`); const translated_value = i18next.t(_id) !== _id ? i18next.t(_id) : label; return translated_value; diff --git a/lib/toolbar.html b/lib/toolbar.html index 6a394f4a..5b2b7421 100644 --- a/lib/toolbar.html +++ b/lib/toolbar.html @@ -32,9 +32,12 @@ class="form-control-file" id="upload-template-input" /> - New + New