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
Hi there,
There is a way of fallback multiple times if a specific text is not found in a file?
Assuming that we have fr-CA.json, fr.json and en.json.
For example, I set the the language to fr-CA and I want to show "hello" in fr-CA. If the "hello" entry is not found in fr-CA file it should fallback to fr file. If the text is not found even there, fallback to en (that contains all the text). So fr-CA and Fr files contains only a set of translated text.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
There is a way of fallback multiple times if a specific text is not found in a file?
Assuming that we have fr-CA.json, fr.json and en.json.
For example, I set the the language to fr-CA and I want to show "hello" in fr-CA. If the "hello" entry is not found in fr-CA file it should fallback to fr file. If the text is not found even there, fallback to en (that contains all the text). So fr-CA and Fr files contains only a set of translated text.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions