Skip to content

Commit 1f85082

Browse files
docs: improve doc of fall back warinings. (#778)
1 parent 43f905c commit 1f85082

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guide/essentials/fallback.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ The first warning message is printed the key, due to given to the translation f
6262
These warning messages are only warned in development mode (`process.env.NODE_ENV !== 'production'`) by default, not for production.
6363
:::
6464

65-
To suppress these warnings (while keeping those which warn of the total absence of translation for the given key) set `silentTranslationWarn: true`, and `silentFallbackWarn: true` when initializing the `createI18n`.
65+
To suppress the first warning(`Not found key...`), set `silentTranslationWarn: true` in Legacy API mode or set `missingWarn: false` in Composition API mode when initializing the `createI18n`.
66+
67+
To suppress the second warning(`Fall back to...`), set `silentFallbackWarn: true` in Legacy API mode or set `fallbackWarn: false` in Composition API mode when initializing the `createI18n`.
6668

6769
## Explicit fallback with an array of locales
6870

0 commit comments

Comments
 (0)