Skip to content

Commit

Permalink
ItemView: Update placeholder text for search field
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 27, 2024
1 parent d0e664b commit 85603c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"publisherOthers": "Sonstige",
"vocabularyType": "Vokabulartyp",
"vocSearch": "Suche nach Vokabular",
"conceptSearch": "Suche nach Konzept"
"conceptSearch": "Suche nach Konzept",
"searchInVocabulary": "in {voc} suchen"
},
"en": {
"about": "About",
Expand All @@ -17,6 +18,7 @@
"publisherOthers": "Others",
"vocabularyType": "Vocabulary Type",
"vocSearch": "Searching for vocabulary",
"conceptSearch": "Searching for concept"
"conceptSearch": "Searching for concept",
"searchInVocabulary": "search in {voc}"
}
}
1 change: 1 addition & 0 deletions src/client/views/ItemView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const topConcepts = computed(() => {
v-if="scheme"
id="searchInScheme"
:search="utils.cdkRegistryToSuggestFunction(registry, { scheme })"
:placeholder="jskos.notation(scheme) ? $t('searchInVocabulary', { voc: jskos.notation(scheme) }) : null"
@select="concept = { uri: $event.uri }" />
<!-- ConceptTree has to be on the top level in order for "scrollToUri" to work -->
<div id="conceptHierarchy">
Expand Down

0 comments on commit 85603c0

Please sign in to comment.