Changeset e954722 in Klonkt for src/services/i18n.js


Ignore:
Timestamp:
06/30/2026 12:23:37 AM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
80797d7
Parents:
f882048
Message:

fix(i18n): localize the mobile profile-sheet menu labels

The mobile profile menu had hardcoded Dutch labels (Account, Beheer, Nieuwe post, Thema,
Donker/Licht, Uitloggen) so they didn't translate on EN/DE sites. They now use t().

  • src/views/partials/profile-sheet.ejs — Account/Admin/New post/Logout reuse the existing nav.* keys; the theme item + its JS state label use new nav.theme_label/nav.dark/nav.light
  • src/services/i18n.js — add nav.theme_label, nav.dark, nav.light (nl/en/de)

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/i18n.js

    rf882048 re954722  
    1717    'nav.search': 'Zoeken',
    1818    'nav.theme': 'Thema wisselen',
     19    'nav.theme_label': 'Thema', 'nav.dark': 'Donker', 'nav.light': 'Licht',
    1920    'nav.install': 'App installeren',
    2021    'nav.login': 'Inloggen',
     
    938939    'nav.search': 'Search',
    939940    'nav.theme': 'Toggle theme',
     941    'nav.theme_label': 'Theme', 'nav.dark': 'Dark', 'nav.light': 'Light',
    940942    'nav.install': 'Install app',
    941943    'nav.login': 'Log in',
     
    18501852    'nav.search': 'Suche',
    18511853    'nav.theme': 'Thema wechseln',
     1854    'nav.theme_label': 'Thema', 'nav.dark': 'Dunkel', 'nav.light': 'Hell',
    18521855    'nav.install': 'App installieren',
    18531856    'nav.login': 'Anmelden',
Note: See TracChangeset for help on using the changeset viewer.