Skip to content

Commit ba24c7c

Browse files
raifdmuellerclaude
andcommitted
fix: Use i18n key for full-text search placeholder
Replace hardcoded '(full-text)' with i18n key 'search.fullText' so it displays '(Volltext)' in German. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 23a804f commit ba24c7c

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

website/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function triggerSearchIndexBuild() {
8585
.then(() => {
8686
;['search-input', 'header-search-input'].forEach((id) => {
8787
const el = document.getElementById(id)
88-
if (el) el.placeholder = `${i18n.t('search.placeholder')} (full-text)`
88+
if (el) el.placeholder = `${i18n.t('search.placeholder')} ${i18n.t('search.fullText')}`
8989
})
9090
})
9191
.catch((err) => {

website/src/translations/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"main.proposeAnchor": "Neuen Anker vorschlagen",
1515
"main.documentation": "Dokumentation",
1616
"search.placeholder": "Anchors durchsuchen...",
17+
"search.fullText": "(Volltext)",
1718
"filter.allRoles": "Alle Rollen",
1819
"filter.anchors": "Anker",
1920
"footer.tagline": "Semantic Anchors - Gemeinsames Vokabular für LLM-Kommunikation",

website/src/translations/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"main.proposeAnchor": "Propose New Anchor",
1515
"main.documentation": "Documentation",
1616
"search.placeholder": "Search anchors...",
17+
"search.fullText": "(full-text)",
1718
"filter.allRoles": "All Roles",
1819
"filter.anchors": "anchors",
1920
"footer.tagline": "Semantic Anchors - Shared vocabulary for LLM communication",

0 commit comments

Comments
 (0)