Use vue-i18n #68

Merged
jakob.scheid merged 14 commits from feature/vue-i18n into main 2026-05-20 17:35:02 +02:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit 5d7181bea2 - Show all commits
@@ -17,6 +17,10 @@ limitations under the License.
<script setup>
import Searchbar from '@/features/search/components/Searchbar.vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const props = defineProps(['searchQuery']);
const searchQueryModel = defineModel();
@@ -29,7 +33,7 @@ searchQueryModel.value = props.searchQuery;
<div class="search-results-error-message-container">
<div class="search-results-error-message">
<p>Search is not available right now.</p>
<p>Please try again to another time.</p>
<p>{{ t('error.tryAgainToAnotherTime') }}</p>
</div>
</div>
<div class="search-results-container">
+3
View File
@@ -4,5 +4,8 @@
"submit": "Search",
"placeholder": "Search..."
}
},
"error": {
"tryAgainToAnotherTime": "Please try again to another time."
}
}