Skip to content

Namespace loading on server required? #468

Answered by ivanhofer
akkie asked this question in Q&A
Discussion options

You must be logged in to vote

So you are saying that you have a different behaviour on server vs. cleint?

You could call loadAllLocales() in the hooks.server.ts to make sure everything gets loaded on the server, before accessing any translations. That would be the easiest option.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akkie
Comment options

Answer selected by akkie
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