generated from Seekra/repository-template
Add translation for the page not found error
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@
|
||||
}
|
||||
},
|
||||
"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."
|
||||
}
|
||||
}
|
||||
@@ -14,10 +14,16 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script setup>
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
const { t } = useI18n();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="not-found">
|
||||
<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>
|
||||
<RouterLink to="/" id="link">Back to Search</RouterLink>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user