fix(i18n): Spec-Review-Korrekturen für i18n-Grundgerüst

- header.settings DE-String korrigiert (war englisch)
- ~17 deutsche Strings die englisch waren gefixt
- I18n.init() vor applySettings() in app.js
- html lang-Attribut dynamisch via I18n setzen
- Default html lang auf en (passend zu default_locale)
This commit is contained in:
2026-03-22 14:04:04 +01:00
parent f2d4e22b86
commit 522b177470
3 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="de">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+1 -1
View File
@@ -10,8 +10,8 @@ async function init() {
boards = savedBoards ?? getDefaultBoards();
if (savedSettings) Object.assign(settings, savedSettings);
applySettings();
I18n.init();
applySettings();
renderBoards();
startClock();
bindGlobalEvents();
+21 -19
View File
@@ -12,21 +12,21 @@ const STRINGS = {
'dialog.cancel': 'Abbrechen',
// Boards
'boards.empty_state_pre': 'No boards yet. Click ',
'boards.empty_state_pre': 'Noch keine Boards. Klicke auf ',
'boards.add_board': '+ Board',
'boards.empty_state_mid': ' to create one, or use ',
'boards.empty_state_mid': ' um eins zu erstellen, oder nutze ',
'boards.import': 'Import',
'boards.empty_state_post': ' to load your browser bookmarks.',
'boards.empty_state_post': ' um deine Browser-Lesezeichen zu laden.',
'boards.drag_title': 'Board verschieben',
'boards.blur': 'Blur (privat)',
'boards.unblur': 'Unblur',
'boards.rename': 'Umbenennen',
'boards.delete': 'Löschen',
'boards.delete_confirm': 'Board "{title}" wirklich löschen?',
'boards.delete_confirm': 'Board {title}" wirklich löschen?',
'boards.delete_confirm.title': 'Board löschen',
'boards.show_more': 'Show {count} more…',
'boards.show_less': 'Show less',
'boards.add_link': ' Add link',
'boards.show_more': '{count} weitere anzeigen…',
'boards.show_less': 'Weniger anzeigen',
'boards.add_link': ' Link hinzufügen',
'boards.remove_bookmark': 'Entfernen',
// Onboarding
@@ -200,7 +200,7 @@ const STRINGS = {
'header.board': 'Board',
'header.note': 'Note',
'header.theme': 'Darstellung',
'header.settings': 'Settings',
'header.settings': 'Einstellungen',
// Settings-Panel Überschrift
'settings.title': 'Einstellungen',
@@ -255,16 +255,16 @@ const STRINGS = {
'settings.search_engine_toggle': 'Suchmaschine wechseln',
// Modals
'modal.new_board': 'New Board',
'modal.board_name': 'Board name...',
'modal.create': 'Create',
'modal.new_bookmark': 'New Bookmark',
'modal.bm_title': 'Title...',
'modal.bm_desc': 'Description (optional)',
'modal.bm_add': 'Add',
'modal.rename': 'Rename',
'modal.rename_placeholder': 'New name...',
'modal.rename_confirm': 'Rename',
'modal.new_board': 'Neues Board',
'modal.board_name': 'Board-Name...',
'modal.create': 'Erstellen',
'modal.new_bookmark': 'Neues Lesezeichen',
'modal.bm_title': 'Titel...',
'modal.bm_desc': 'Beschreibung (optional)',
'modal.bm_add': 'Hinzufügen',
'modal.rename': 'Umbenennen',
'modal.rename_placeholder': 'Neuer Name...',
'modal.rename_confirm': 'Umbenennen',
'modal.theme_header': 'Darstellung',
// About
@@ -283,7 +283,7 @@ const STRINGS = {
'notebook.title': 'Notebook',
// Suche
'search.placeholder': 'Search the web…',
'search.placeholder': 'Im Web suchen…',
// Widget-Toolbar Tooltips
'toolbar.note': 'Note erstellen',
@@ -630,6 +630,7 @@ function setLanguage(lang) {
? (navigator.language.startsWith('de') ? 'de' : 'en')
: lang;
currentLang = resolved;
document.documentElement.lang = resolved;
applyLanguage();
}
@@ -652,6 +653,7 @@ const I18n = {
? (navigator.language.startsWith('de') ? 'de' : 'en')
: lang;
currentLang = resolved;
document.documentElement.lang = resolved;
applyLanguage();
}
};