From f29b4b3d2712ac82f12d174446581edaeb836678 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 31 Jan 2024 12:19:56 -0800 Subject: [PATCH 1/2] Fix translations --- .../categories/components/CategoriesListing.vue | 8 ++++---- .../js/processes/components/ArchivedProcessList.vue | 10 +++++----- .../js/processes/components/ProcessesListing.vue | 10 +++++----- resources/lang/en.json | 13 +++++++++---- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/resources/js/processes/categories/components/CategoriesListing.vue b/resources/js/processes/categories/components/CategoriesListing.vue index 952b5df7d0..ac548f7966 100644 --- a/resources/js/processes/categories/components/CategoriesListing.vue +++ b/resources/js/processes/categories/components/CategoriesListing.vue @@ -134,7 +134,7 @@ { name: "__slot:name", sortField: "name", - label: "NAME", + label: this.$t('Name'), field: "name", width: 200, sortable: true, @@ -144,7 +144,7 @@ { name: "status", sortField: "status", - label: "STATUS", + label: this.$t('Status'), field: "status", width: 160, sortable: true, @@ -163,7 +163,7 @@ { name: "updated_at", sortField: "updated_at", - label: "MODIFIED", + label: this.$t('Modified'), field: "updated_at", width: 160, sortable: true, @@ -174,7 +174,7 @@ { name: "created_at", sortField: "created_at", - label: "CREATED", + label: this.$t('Created'), field: "created_at", width: 160, sortable: true, diff --git a/resources/js/processes/components/ArchivedProcessList.vue b/resources/js/processes/components/ArchivedProcessList.vue index f9438b30fb..64a1f5aeea 100644 --- a/resources/js/processes/components/ArchivedProcessList.vue +++ b/resources/js/processes/components/ArchivedProcessList.vue @@ -173,32 +173,32 @@ export default { fields: [ { - label: "NAME", + label: this.$t("Name"), field: "name", width: 200, sortable: true, }, { - label: "CATEGORY", + label: this.$t("Category"), field: "category_list", width: 160, sortable: true, }, { - label: "OWNER", + label: this.$t("Owner"), field: "owner", width: 160, sortable: true, }, { - label: "MODIFIED", + label: this.$t("Modified"), field: "updated_at", format: "datetime", width: 160, sortable: true, }, { - label: "CREATED", + label: this.$t("Created"), field: "created_at", format: "datetime", width: 160, diff --git a/resources/js/processes/components/ProcessesListing.vue b/resources/js/processes/components/ProcessesListing.vue index 5e189fca9d..92ebc8435d 100644 --- a/resources/js/processes/components/ProcessesListing.vue +++ b/resources/js/processes/components/ProcessesListing.vue @@ -207,7 +207,7 @@ export default { fields: [ { - label: "NAME", + label: this.$t("Name"), field: "name", width: 200, sortable: true, @@ -215,7 +215,7 @@ export default { direction: "none", }, { - label: "CATEGORY", + label: this.$t("Category"), field: "category_list", width: 160, sortable: true, @@ -223,7 +223,7 @@ export default { sortField: "category.name", }, { - label: "OWNER", + label: this.$t("Owner"), field: "owner", width: 160, sortable: true, @@ -231,7 +231,7 @@ export default { sortField: "user.username", }, { - label: "MODIFIED", + label: this.$t("Modified"), field: "updated_at", format: "datetime", width: 160, @@ -239,7 +239,7 @@ export default { direction: "none", }, { - label: "CREATED", + label: this.$t("Created"), field: "created_at", format: "datetime", width: 160, diff --git a/resources/lang/en.json b/resources/lang/en.json index a761243d6d..645c975e4d 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -2019,11 +2019,16 @@ "Zoom Out": "Zoom Out", "Pan Tool": "Pan Tool", "Type value": "Type value", - "No new notifications at the moment.": "No new notifications at the moment.", - "All Clear": "All Clear", - "Notifications, No New Messages": "Notifications, No New Messages", "Case #": "Case #", "Case title": "Case title", "Task name": "Task name", - "Due date": "Due date" + "Due date": "Due date", + "AI Generated": "AI Generated", + "Photo/Video": "Photo/Video", + "Bootstrap Component": "Bootstrap Component", + "Bootstrap Wrapper": "Bootstrap Wrapper", + "Captcha": "Captcha", + "Google Places": "Google Places", + "Add an action to submit your form or update a field": "Add an action to submit your form or update a field", + "Add special buttons that link between subpages within this Form": "Add special buttons that link between subpages within this Form" } From 728f57b376979eee7612238447b74f7e78230a67 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 31 Jan 2024 12:33:36 -0800 Subject: [PATCH 2/2] Do not try to load a fallback language --- resources/js/bootstrap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 967ba279b2..0a70e83d79 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -183,6 +183,7 @@ window.ProcessMaker = { window.ProcessMaker.i18nPromise = i18next.use(Backend).init({ lng: document.documentElement.lang, + fallbackLng: false, nsSeparator: false, keySeparator: false, parseMissingKeyHandler(value) {