From a9616911f5d57c5a4fb3f1c185be3f04d248b4d2 Mon Sep 17 00:00:00 2001 From: tonya Date: Tue, 22 Oct 2024 23:58:43 +0000 Subject: [PATCH 1/2] feat: improve languages support --- frontend/components/Item/CreateModal.vue | 6 +- frontend/components/Item/View/Table.vue | 33 +++-- frontend/components/Label/CreateModal.vue | 4 +- frontend/components/Location/CreateModal.vue | 4 +- frontend/components/Location/Selector.vue | 2 +- .../global/DetailsSection/DetailsSection.vue | 2 +- frontend/layouts/default.vue | 27 ++-- frontend/locales/en.json | 100 ++++++++++++-- frontend/pages/home/index.vue | 8 +- frontend/pages/home/statistics.ts | 11 +- frontend/pages/item/[id]/index.vue | 62 ++++----- frontend/pages/item/[id]/index/edit.vue | 130 +++++++++--------- frontend/pages/label/[id].vue | 8 +- frontend/pages/location/[id].vue | 16 +-- frontend/pages/locations.vue | 2 +- frontend/pages/profile.vue | 14 +- frontend/plugins/i18n.ts | 2 +- 17 files changed, 263 insertions(+), 168 deletions(-) diff --git a/frontend/components/Item/CreateModal.vue b/frontend/components/Item/CreateModal.vue index bcf5de540..7708ba7a7 100644 --- a/frontend/components/Item/CreateModal.vue +++ b/frontend/components/Item/CreateModal.vue @@ -8,12 +8,12 @@ v-model="form.name" :trigger-focus="focused" :autofocus="true" - label="Item Name" + :label="$t('components.item.create_modal.item_name')" :max-length="255" :min-length="1" /> - - + +