[web] Fix a warning message in the console on the "About" and "Search" pages.

When accessing the "About" and "Search", no warning is shown regarding the scope of translations.
This commit is contained in:
Alain Nussbaumer
2023-07-02 20:21:39 +02:00
parent 5e73554ad5
commit e4f4824023
4 changed files with 14 additions and 8 deletions

View File

@@ -7,12 +7,12 @@ import { createI18n } from 'vue-i18n'
import messages from '@intlify/unplugin-vue-i18n/messages'
export default createI18n({
legacy: false,
globalInjection: true,
availableLocales: ('de', 'en', 'fr'),
locale: navigator.language,
fallbackLocale: 'en',
fallbackWarn: false,
missingWarn: false,
messages
globalInjection: true,
legacy: false,
locale: navigator.language,
messages,
missingWarn: false
})

View File

@@ -140,7 +140,12 @@
})
"
/>
<i18n-t tag="p" class="is-size-7" keypath="page.about.built-with">
<i18n-t
tag="p"
class="is-size-7"
keypath="page.about.built-with"
scope="global"
>
<template #bulma><a href="https://bulma.io">Bulma</a></template>
<template #mdi
><a href="https://pictogrammers.com/library/mdi/"

View File

@@ -22,6 +22,7 @@
tag="p"
class="help has-text-centered"
keypath="page.search.help"
scope="global"
>
<template #query><code>query:</code></template>
<template #help