Skip to content

fix(i18n): add missing translation keys (#2291) - #2294

Closed
AzazelSensei wants to merge 3 commits into
lissy93:masterfrom
AzazelSensei:fix/i18n-missing-keys-2291
Closed

fix(i18n): add missing translation keys (#2291)#2294
AzazelSensei wants to merge 3 commits into
lissy93:masterfrom
AzazelSensei:fix/i18n-missing-keys-2291

Conversation

@AzazelSensei

Copy link
Copy Markdown

Category

Localization

Overview

Wires hardcoded English leftovers in edit mode / section editor through $t(...), adds matching keys in en.json and de.json, and loads the preferred locale before auth toasts so login.authenticated-redirecting resolves with language=de after a clean cache.

Keys / UI fixed

  • interactive-editor.menu.edit-mode-enabled — edit-mode top banner
  • interactive-editor.edit-item.add-new-title / add-new-description — add-item tile
  • interactive-editor.edit-section.fields.* — section form labels/descriptions (name, icon, displayData, sortBy, rows, cols, collapsed, hideForGuests)
  • login.authenticated-redirecting — existing key; applied via early locale load before OIDC/Keycloak toast

Issue Number

Fixes #2291

Additional Info

How to verify

  1. Set language to German (de) and hard-refresh / clear cache
  2. Enter edit mode — banner, add-item tile, and section editor fields should be German
  3. With SSO/auth enabled, confirm the auth toast shows the German authenticated-redirecting string

Hardcoded English leftovers in edit mode and section editor now use $t,
with matching en/de keys. Preferred locale is applied before auth toasts
so login.authenticated-redirecting resolves after a clean cache.
@AzazelSensei
AzazelSensei requested a review from lissy93 as a code owner August 12, 2026 11:03
@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit bcd9647
🔍 Latest deploy log https://app.netlify.com/projects/dashy-dev/deploys/6a7e03663a3b820008e000f2
😎 Deploy Preview https://deploy-preview-2294--dashy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Only add locale strings for languages I can review myself. English keys
and $t wiring stay; new UI strings go into tr.json instead of de.json.
@AzazelSensei
AzazelSensei force-pushed the fix/i18n-missing-keys-2291 branch from eaaab02 to a5326d0 Compare August 12, 2026 11:14
@AzazelSensei

Copy link
Copy Markdown
Author

Thanks for the heads-up — agreed on sticking to languages I can actually review.

I dropped the new de.json strings and moved those keys into tr.json instead. en.json + the $t(...) wiring are unchanged. Happy to tweak any of the Turkish wording if something sounds off.

@lissy93 lissy93 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AzazelSensei

Thanks for the PR.

But I don't think I can merge this, as the code quality is going to cause some maintainability issues in the future. And I think it missunderstands and over-complicates the issue.

Comment thread src/utils/applyLocale.js Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I don't think the original issue was actually this complicated, or anything to do with loading order. But the root cause was actually just that the translation key (login.authenticated-redirecting) was missing from the locale that OP was using.

If it was a loading issue, then English wouldn't have loaded either.

},
computed: {
allowViewConfig() { return this.$store.getters.permissions.allowViewConfig; },
customSchema() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this approach is good. The schema constantly changing, we cannot hard-code like this, as it will break in future updates.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original issue was just adding the missing keys to the modal header and stuff for the edit item menu. And this is missing from this PR, so don't think it solves the problem

The missing copy was in the edit-item modal, add-new tile, and
edit-mode banner. Reverted the locale loader and schema field
overrides. New keys only in en.json and tr.json.
@AzazelSensei

Copy link
Copy Markdown
Author

Dropped the locale loader and the schema field overrides.

The missing copy was the edit-item modal header / more-fields, the add-new tile, and the edit-mode banner. Those are wired now. Also added login.authenticated-redirecting in tr.json.

@lissy93

lissy93 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

I think this is what it should look like: #2296

Here's the full patch, it's actually pretty small:

---
 src/assets/locales/en.json                             | 4 +++-
 src/components/InteractiveEditor/EditModeTopBanner.vue | 2 +-
 src/components/LinkItems/Section.vue                   | 4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json
index 772cf3d963..028533aceb 100644
--- a/src/assets/locales/en.json
+++ b/src/assets/locales/en.json
@@ -363,7 +363,9 @@
       "save-locally-warning": "If you proceed, changes will be saved only in your browser. You should export a copy of your config for use on other machines. Would you like to continue?"
     },
     "edit-item": {
-      "missing-title-err": "An item title is required"
+      "missing-title-err": "An item title is required",
+      "add-item-title": "Add New Item",
+      "add-item-description": "Click to add new item"
     },
     "edit-section": {
       "edit-section-title": "Edit Section",
diff --git a/src/components/InteractiveEditor/EditModeTopBanner.vue b/src/components/InteractiveEditor/EditModeTopBanner.vue
index 4d7047c6bc..c69a8783b1 100644
--- a/src/components/InteractiveEditor/EditModeTopBanner.vue
+++ b/src/components/InteractiveEditor/EditModeTopBanner.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="edit-mode-top-banner">
-    <span>Edit Mode Enabled</span>
+    <span>{{ $t('interactive-editor.menu.edit-mode-subtitle') }}</span>
   </div>
 </template>
 
diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index 0eabf9c047..7f50ba55f3 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -48,8 +48,8 @@
       <Item v-if="isEditMode"
         :item="{
           icon: ':heavy_plus_sign:',
-          title: 'Add New Item',
-          description: 'Click to add new item',
+          title: $t('interactive-editor.edit-item.add-item-title'),
+          description: $t('interactive-editor.edit-item.add-item-description'),
           id: 'add-new',
         }"
         :isAddNew="true"

@AzazelSensei

Copy link
Copy Markdown
Author

Got it - #2296 is the smaller change. I can close this.

@lissy93 lissy93 closed this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Missing translation strings in src

2 participants