Skip to content

Commit 2833c49

Browse files
authored
docs: replace legacy API usage with composition API (#2196)
1 parent 9c7573e commit 2833c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/essentials/fallback.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Will result in the following fallback chains:
106106

107107
## Fallback interpolation
108108

109-
Set `formatFallbackMessages: true` to do template interpolation on translation keys when your language lacks a translation for a key.
109+
Set `fallbackFormat: true` to do template interpolation on translation keys when your language lacks a translation for a key.
110110

111111
Since the keys to the translations are strings, you can use a user-readable message (for a particular language) as a key.
112112
E.g.
@@ -121,7 +121,7 @@ const messages = {
121121

122122
This is useful because you don’t have to specify a translation for the string "Hello, world!" into English.
123123

124-
In fact, you can even include template parameters in a key. Together with `formatFallbackMessages: true`, this lets you skip writing templates for your "base" language; the keys *are* your templates.
124+
In fact, you can even include template parameters in a key. Together with `fallbackFormat: true`, this lets you skip writing templates for your "base" language; the keys *are* your templates.
125125

126126
```javascript
127127
const messages = {
@@ -133,7 +133,7 @@ const messages = {
133133
const i18n = createI18n({
134134
locale: 'ru',
135135
fallbackLocale: 'en',
136-
formatFallbackMessages: true,
136+
fallbackFormat: true,
137137
messages
138138
})
139139
```

0 commit comments

Comments
 (0)