István Lantos
István Lantos
I find this thread with the same issue. It would be really useful to define custom schemas. But apart from giving columns custom names, such feature not so useful. But...
@mashpie For some reason `rotuter.all` not working for me, only this: ``` app.all('/:lang/*', function(req, res, next){ //i18n.setLocale(req, req.params.lang); i18n.setLocale([req, res.locals], req.params.lang); next(); }); ``` But the problem is that everything...
I changed the improper nesting to the recommended method, and it's the same (see `/contact`): https://github.com/DJviolin/lantosistvan/blob/0c0ba696ac186286cbcf08405f98aee40f7e37ba/app.js https://github.com/DJviolin/lantosistvan/blob/6f7b8eb1074422ede2df30204e02b48889c3919c/routes/contact.js Setting the translation only with a cookie works like a charm. But I...
Thank You! So I have to init the routers with: ``` app.use('/contact', contact); app.use('/:lang/contact', contact); ``` Probably I will mix this with cookies. My only problem is if someone clicks...
@mashpie Thank You!
That's how it works in my app too, `i18n.configure` initialised before `i18n.init`. I just not wanted to copy here the entire thing: ``` js i18n.configure({ locales: ['en', 'hu'], fallbacks: {...
I think this is related: https://github.com/mashpie/i18n-node/issues/216 I also want on my default routes like `/` only load the `defaultLocale`.
Correct. I want something like that. The routes without any `/en/*` or `/hu/*`, like `/` or `/blog` always return english. If someone hit an `/en/*`route it shouldn't be redirected to...
Thank You!
In the last 2 years? Honestly, I haven't used i18n-node at all, moreover, I moved to API design. In the basic, yes, I wanted something similar.