Skip to content

fallback languague always gets loaded #2035

Answered by jamuhl
BennyAlex asked this question in Q&A
Discussion options

You must be logged in to vote

you can't fetch the file of fallback language inside the t function upon being a missing key -> i18next.t run sync why fetching translations is async

there are three options:

a) you load and use fallbacks

b) you assert resource files are complete (not that hard) and set fallback to false

c) you load the translations for fallback in the missingKeyHandler (still sync and not async)

regarding extending the docs...contributions are always welcome to improve the docs

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BennyAlex
Comment options

@jamuhl
Comment options

Answer selected by BennyAlex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants