You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/essentials/fallback.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ Will result in the following fallback chains:
106
106
107
107
## Fallback interpolation
108
108
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.
110
110
111
111
Since the keys to the translations are strings, you can use a user-readable message (for a particular language) as a key.
112
112
E.g.
@@ -121,7 +121,7 @@ const messages = {
121
121
122
122
This is useful because you don’t have to specify a translation for the string "Hello, world!" into English.
123
123
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.
0 commit comments