Add translation for the page not found error

This commit is contained in:
2026-05-19 21:46:58 +02:00
parent a60526e6d7
commit ffaa6200c3
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
} }
}, },
"error": { "error": {
"tryAgainToAnotherTime": "Please try again to another time." "tryAgainToAnotherTime": "Please try again to another time.",
"pageNotFound": "The page you are looking for does not exist. Please check the URL or return to the search page."
} }
} }
+7 -1
View File
@@ -14,10 +14,16 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<script setup>
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
</script>
<template> <template>
<div class="not-found"> <div class="not-found">
<span class="error-message"> <span class="error-message">
The page you are looking for does not exist. Please check the URL or return to the search page. {{ t('error.pageNotFound') }}
</span> </span>
<RouterLink to="/" id="link">Back to Search</RouterLink> <RouterLink to="/" id="link">Back to Search</RouterLink>
</div> </div>