Add translations for error messages

This commit is contained in:
2026-05-19 21:27:58 +02:00
parent dd0f560bc8
commit 5d7181bea2
2 changed files with 8 additions and 1 deletions
@@ -17,6 +17,10 @@ limitations under the License.
<script setup> <script setup>
import Searchbar from '@/features/search/components/Searchbar.vue'; import Searchbar from '@/features/search/components/Searchbar.vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const props = defineProps(['searchQuery']); const props = defineProps(['searchQuery']);
const searchQueryModel = defineModel(); const searchQueryModel = defineModel();
@@ -29,7 +33,7 @@ searchQueryModel.value = props.searchQuery;
<div class="search-results-error-message-container"> <div class="search-results-error-message-container">
<div class="search-results-error-message"> <div class="search-results-error-message">
<p>Search is not available right now.</p> <p>Search is not available right now.</p>
<p>Please try again to another time.</p> <p>{{ t('error.tryAgainToAnotherTime') }}</p>
</div> </div>
</div> </div>
<div class="search-results-container"> <div class="search-results-container">
+3
View File
@@ -4,5 +4,8 @@
"submit": "Search", "submit": "Search",
"placeholder": "Search..." "placeholder": "Search..."
} }
},
"error": {
"tryAgainToAnotherTime": "Please try again to another time."
} }
} }