From 1d3a87168d4d955a2f2aba9330683cc7b32f686d Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 10 Jun 2019 21:31:32 -0400 Subject: [PATCH] feat: common components localization --- client/components/common/page-delete.vue | 13 +++++++------ client/components/common/password-strength.vue | 12 ++++++------ client/components/common/search-results.vue | 14 +++++++------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/client/components/common/page-delete.vue b/client/components/common/page-delete.vue index 19513ad2..68374d0e 100644 --- a/client/components/common/page-delete.vue +++ b/client/components/common/page-delete.vue @@ -3,18 +3,19 @@ v-card.wiki-form .dialog-header.is-short.is-red v-icon.mr-2(color='white') highlight_off - span Delete Page + span {{$t('common:page.delete')}} v-card-text - .body-2 Are you sure you want to delete page #[span.red--text.text--darken-2 {{pageTitle}}]? - .caption The page can be restored from the administration area. + i18next.body-2(path='common:page.deleteTitle', tag='div') + span.red--text.text--darken-2(place='title') {{pageTitle}} + .caption {{$t('common:page.deleteSubtitle')}} v-chip.mt-3.ml-0.mr-1(label, color='red lighten-4', disabled, small) .caption.red--text.text--darken-2 {{pageLocale.toUpperCase()}} v-chip.mt-3.mx-0(label, color='red lighten-5', disabled, small) span.red--text.text--darken-2 /{{pagePath}} v-card-chin v-spacer - v-btn(flat, @click='discard', :disabled='loading') Cancel - v-btn(color='red darken-2', @click='deletePage', :loading='loading').white--text Delete + v-btn(flat, @click='discard', :disabled='loading') {{$t('common:actions.cancel')}} + v-btn(color='red darken-2', @click='deletePage', :loading='loading').white--text {{$t('common:actions.delete')}}