Skip to content

Commit

Permalink
[web] Fix a warning message in the console on the "About" and "Search…
Browse files Browse the repository at this point in the history
…" pages.

When accessing the "About" and "Search", no warning is shown regarding the scope of translations.
  • Loading branch information
hacketiwack committed Jul 2, 2023
1 parent 5e73554 commit e4f4824
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions htdocs/assets/index.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions web-src/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
7 changes: 6 additions & 1 deletion web-src/src/pages/PageAbout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
1 change: 1 addition & 0 deletions web-src/src/pages/PageSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4f4824

Please sign in to comment.