Skip to content

Commit

Permalink
Update 7.lazy-load-translations.md (#2807)
Browse files Browse the repository at this point in the history
Use “Bienvenue” instead of “Welcome” in the `lang/fr-FR.ts` example
  • Loading branch information
jgonz3 committed Feb 17, 2024
1 parent 6798472 commit d41a4a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/content/docs/2.guide/7.lazy-load-translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ export default defineNuxtConfig({
```ts [lang/fr-FR.ts]
export default defineI18nLocale(async locale => {
return {
welcome: 'Welcome'
welcome: 'Bienvenue'
}
})

// or

export default {
welcome: 'Welcome'
welcome: 'Bienvenue'
}
```

Expand Down Expand Up @@ -211,4 +211,4 @@ const welcomeDutch = computed(() => t('welcome', 1, { locale: 'nl' })) // Welkom

::callout{type="info"}
As messages could be loaded from a remote API invoking the `loadLocaleMessages` function will always load messages, unnecessary loading can impact performance.
::
::

0 comments on commit d41a4a3

Please sign in to comment.