From 18e5f378c6188755834a8c3a36a52d5f4acbeaf8 Mon Sep 17 00:00:00 2001 From: Takala Joeli A Date: Thu, 3 Oct 2024 11:18:11 +0300 Subject: [PATCH 1/4] Search bar language selector according to the vocabulary config languages --- resource/js/vocab-search.js | 2 +- src/view/scripts.inc.twig | 40 +++++++++++++++++++++++-------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/resource/js/vocab-search.js b/resource/js/vocab-search.js index de57f8580..e7e6b6528 100644 --- a/resource/js/vocab-search.js +++ b/resource/js/vocab-search.js @@ -18,7 +18,7 @@ const vocabSearch = Vue.createApp({ this.languages = window.SKOSMOS.languageOrder this.selectedLanguage = this.parseSearchLang() this.searchCounter = 0 // used for matching the query and the response in case there are many responses - this.languageStrings = window.SKOSMOS.language_strings[window.SKOSMOS.lang] ?? window.SKOSMOS.language_strings.en + this.languageStrings = window.SKOSMOS.language_strings this.msgs = window.SKOSMOS.msgs[window.SKOSMOS.lang] ?? window.SKOSMOS.msgs.en this.renderedResultsList = [] this.showNotation = window.SKOSMOS.showNotation diff --git a/src/view/scripts.inc.twig b/src/view/scripts.inc.twig index 0b448c4b1..5a4e82424 100644 --- a/src/view/scripts.inc.twig +++ b/src/view/scripts.inc.twig @@ -1,6 +1,29 @@