From fcc068cd70bbffa5165afd26d398fcdf2bc58880 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Tue, 26 Jan 2021 22:01:55 +0530 Subject: [PATCH] Add missing translations and fix broken ones on the UI --- frontend/src/App.vue | 4 +- frontend/src/components/Editor.vue | 14 +++--- frontend/src/views/Campaign.vue | 14 +++--- frontend/src/views/Campaigns.vue | 15 ++++--- frontend/src/views/Dashboard.vue | 14 +++--- frontend/src/views/Import.vue | 2 +- frontend/src/views/Lists.vue | 4 +- frontend/src/views/Settings.vue | 4 +- frontend/src/views/Subscribers.vue | 16 +++---- i18n/en.json | 68 +++++++++++++++++++++++------- 10 files changed, 97 insertions(+), 58 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4c5ed9e..49bcb47 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -41,7 +41,7 @@ + icon="newspaper-variant-outline" :label="$t('menu.forms')"> + icon="file-upload-outline" :label="$t('menu.import')"> Rich text + native-value="richtext">{{ $t('campaigns.richText') }} Raw HTML + native-value="html">{{ $t('campaigns.rawHTML') }} Plain text + native-value="plain">{{ $t('campaigns.plainText') }}
Preview + icon-left="file-find-outline">{{ $t('campaigns.preview') }}
@@ -31,7 +31,7 @@ ref="quill" :options="options" :disabled="disabled" - placeholder="Content here" + :placeholder="$t('campaigns.contentHelp')" @change="onEditorChange($event)" @ready="onEditorReady($event)" /> @@ -142,7 +142,7 @@ export default { // Quill editor options. options: { - placeholder: 'Content here', + placeholder: this.$t('campaigns.contentHelp'), modules: { keyboard: { bindings: { @@ -188,7 +188,7 @@ export default { methods: { onChangeFormat(format) { this.$utils.confirm( - 'The content may lose some formatting. Are you sure?', + this.$t('campaigns.confirmSwitchFormat'), () => { this.form.format = format; this.onEditorChange(); diff --git a/frontend/src/views/Campaign.vue b/frontend/src/views/Campaign.vue index 7a5cf32..d911be3 100644 --- a/frontend/src/views/Campaign.vue +++ b/frontend/src/views/Campaign.vue @@ -65,15 +65,15 @@ :placeholder="$t('campaigns.sendToLists')" > - - + - - + @@ -87,7 +87,7 @@
-
+
@@ -99,7 +99,7 @@ - +