Skip to content

I18n in input? #546

Answered by unnoq
naquiroz asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there isn't currently an efficient way to do that (I think we'll have to wait until the standard schema supports it). However, maybe middleware can handle it - though it's could be incorrect if requests are handled in parallel.

const base = os.use(({ next }) => {

    v.setGlobalConfig({ lang: 'de' }); 

   return next()
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by naquiroz
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