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
This works great, but a major flaw is, that it prevents me from using the implicit fallback mechanism described here.
Example
I have messages for en and de configured. Now, a user connects to my site with language de-DE. According to the implicit fallback mechanism, the user should receive the messages described in de. But what actually happens is, that I try to request de-DE from the server. This fails and the user gets the global fallback en.
I think what I actually want is that it tries in sequence one implicit fallback after another until it reaches the global fallback. But I'm curious how other people approached this issue.
Thanks in advance!
Small disclaimer: I'm using v8 of the library, but looking at the example in the documentation, this should be exactly the same in v9.
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
-
Hey,
I am using lazy loading of messages similar to the example in the docs.
This works great, but a major flaw is, that it prevents me from using the implicit fallback mechanism described here.
Example
I have messages for
en
andde
configured. Now, a user connects to my site with languagede-DE
. According to the implicit fallback mechanism, the user should receive the messages described inde
. But what actually happens is, that I try to requestde-DE
from the server. This fails and the user gets the global fallbacken
.I think what I actually want is that it tries in sequence one implicit fallback after another until it reaches the global fallback. But I'm curious how other people approached this issue.
Thanks in advance!
Small disclaimer: I'm using v8 of the library, but looking at the example in the documentation, this should be exactly the same in v9.
Beta Was this translation helpful? Give feedback.
All reactions