From 1f55d912ea3dcd758c941b821e57f739391ffc4f Mon Sep 17 00:00:00 2001 From: Louis King Date: Fri, 13 Feb 2026 22:31:59 +0000 Subject: [PATCH] Fix translation key references across all pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes critical issue where translation keys were displaying as literal text instead of translations. Changes: - home.js: Fix stat headers (home.* → entities.*) - dashboard.js: Fix stat headers, chart labels, table columns - nodes.js: Fix table columns and filter labels (common.* → entities.*) - advertisements.js: Fix filter widgets and table headers - messages.js: Fix table column header - map.js: Fix filter label and dropdown - admin/node-tags.js: Fix node label reference All translation keys now correctly reference entities.* section. Used common.all_entity pattern instead of non-existent common.all_members. Co-Authored-By: Claude Sonnet 4.5 --- .../web/static/js/spa/pages/admin/node-tags.js | 2 +- .../web/static/js/spa/pages/advertisements.js | 8 ++++---- src/meshcore_hub/web/static/js/spa/pages/dashboard.js | 10 +++++----- src/meshcore_hub/web/static/js/spa/pages/home.js | 4 ++-- src/meshcore_hub/web/static/js/spa/pages/map.js | 4 ++-- src/meshcore_hub/web/static/js/spa/pages/messages.js | 2 +- src/meshcore_hub/web/static/js/spa/pages/nodes.js | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/meshcore_hub/web/static/js/spa/pages/admin/node-tags.js b/src/meshcore_hub/web/static/js/spa/pages/admin/node-tags.js index 469a2a6..c7db27a 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/admin/node-tags.js +++ b/src/meshcore_hub/web/static/js/spa/pages/admin/node-tags.js @@ -321,7 +321,7 @@ ${flashHtml}

${t('admin_node_tags.select_node')}

- + @@ -70,10 +70,10 @@ ${content}`, container); ? html`
` @@ -187,7 +187,7 @@ ${content}`, container); - + diff --git a/src/meshcore_hub/web/static/js/spa/pages/dashboard.js b/src/meshcore_hub/web/static/js/spa/pages/dashboard.js index 78a6344..c7bb0fd 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/dashboard.js +++ b/src/meshcore_hub/web/static/js/spa/pages/dashboard.js @@ -67,7 +67,7 @@ function renderRecentAds(ads) {
${t('common.node')}${t('entities.node')} ${t('common.time')} ${t('common.receivers')}
- + @@ -162,7 +162,7 @@ ${topCount > 0 ? html`
${iconAdvertisements('h-8 w-8')}
-
${t('dashboard.advertisements')}
+
${t('entities.advertisements')}
${stats.advertisements_7d}
${t('time.last_7_days')}
` : nothing} @@ -172,7 +172,7 @@ ${topCount > 0 ? html`
${iconMessages('h-8 w-8')}
-
${t('dashboard.messages')}
+
${t('entities.messages')}
${stats.messages_7d}
${t('time.last_7_days')}
` : nothing} @@ -198,7 +198,7 @@ ${topCount > 0 ? html`

${iconAdvertisements('h-5 w-5')} - ${t('dashboard.advertisements')} + ${t('entities.advertisements')}

${t('time.per_day_last_7_days')}

@@ -212,7 +212,7 @@ ${topCount > 0 ? html`

${iconMessages('h-5 w-5')} - ${t('dashboard.messages')} + ${t('entities.messages')}

${t('time.per_day_last_7_days')}

diff --git a/src/meshcore_hub/web/static/js/spa/pages/home.js b/src/meshcore_hub/web/static/js/spa/pages/home.js index f752e1e..9a1a2da 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/home.js +++ b/src/meshcore_hub/web/static/js/spa/pages/home.js @@ -124,7 +124,7 @@ export async function render(container, params, router) {
${iconAdvertisements('h-8 w-8')}
-
${t('home.advertisements')}
+
${t('entities.advertisements')}
${stats.advertisements_7d}
${t('time.last_7_days')}
` : nothing} @@ -134,7 +134,7 @@ export async function render(container, params, router) {
${iconMessages('h-8 w-8')}
-
${t('home.messages')}
+
${t('entities.messages')}
${stats.messages_7d}
${t('time.last_7_days')}
` : nothing} diff --git a/src/meshcore_hub/web/static/js/spa/pages/map.js b/src/meshcore_hub/web/static/js/spa/pages/map.js index 966272b..b2cf5a1 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/map.js +++ b/src/meshcore_hub/web/static/js/spa/pages/map.js @@ -206,10 +206,10 @@ export async function render(container, params, router) {
- + diff --git a/src/meshcore_hub/web/static/js/spa/pages/nodes.js b/src/meshcore_hub/web/static/js/spa/pages/nodes.js index 3c4598e..623ae0c 100644 --- a/src/meshcore_hub/web/static/js/spa/pages/nodes.js +++ b/src/meshcore_hub/web/static/js/spa/pages/nodes.js @@ -51,10 +51,10 @@ ${content}`, container); ? html`
` @@ -170,7 +170,7 @@ ${content}`, container);
${t('common.node')}${t('entities.node')} ${t('common.type')} ${t('common.received')}
${t('common.type')} ${t('common.time')} ${t('common.from')}${t('common.message')}${t('entities.message')} ${t('common.receivers')}
- +
${t('common.node')}${t('entities.node')} ${t('common.last_seen')} ${t('common.tags')}