Skip to content

Commit

Permalink
A small quick fix related to the use of language features, which aros…
Browse files Browse the repository at this point in the history
…e during a merge.
  • Loading branch information
miguelvaara committed Dec 19, 2024
1 parent a15bf27 commit b02ecfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resource/js/vocab-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function startVocabSearchApp () {
searchCounter: null,
renderedResultsList: [],
languageStrings: null,
msgs: null,
showDropdown: false,
showNotation: null
}
Expand All @@ -19,6 +18,9 @@ function startVocabSearchApp () {
searchPlaceholder () {
return $t('Search...')
},
noResults () {
return $t('No results')
},
},
mounted () {
this.languages = window.SKOSMOS.languageOrder
Expand Down Expand Up @@ -172,7 +174,7 @@ function startVocabSearchApp () {

if (this.renderedResultsList.length === 0) { // show no results message
this.renderedResultsList.push({
prefLabel: this.msgs['No results'],
prefLabel: this.noResults,
lang: window.SKOSMOS.lang
})
}
Expand Down

0 comments on commit b02ecfe

Please sign in to comment.