Skip to content

Commit

Permalink
A simplified implementation for handling type translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelvaara committed Jan 21, 2025
1 parent c2e3351 commit 279f420
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resource/js/vocab-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ function startVocabSearchApp () {
this.showNotation = window.SKOSMOS.showNotation
},
methods: {
translateTypes (type) {
return $t(type)
},
autoComplete () {
const delayMs = 300

Expand Down Expand Up @@ -119,7 +116,7 @@ function startVocabSearchApp () {
return null
},
translateType (type) {
return this.translateTypes(type)
return $t(type)
},
/*
* renderResults is used when the search string has been indexed in the cache
Expand Down

0 comments on commit 279f420

Please sign in to comment.