Marcus Spiegel

Results 138 comments of Marcus Spiegel

That Module provides parsing ranges https://github.com/mashpie/i18n-node/blob/master/README.md#ranged-interval-support And the modules deps shouldn't compromise your own. Npm installs each modules dependencies indipendently. Could you provide your setup for debugging?

I will update `math-interval-parser` in next release accordingly. Meanwhile while working with node 8.1.x + npm 5.3.x I figured out, what happens. npm deduped xregexp as soon I installed another...

i18n doesn't do any redirecting or setting of languages. It reacts on your implementation. As `res.locals` are to get modified by any middleware it is definetly hard to tell, what...

for multilingual routing, you should consider https://github.com/mashpie/i18n-node#i18n__l

ok, next how does your `req`object look like in differrent routes, compared to that one documented in https://github.com/mashpie/i18n-node#i18ninit And why are you explicitly ommit `res` in `i18n.setLocale([req, resLocals], paramsLang);` which...

Just to sort out: You want: ``` /hu/... => should be setLocale('hu) ``` anything else: ``` /home => setLocale('en) /contact => setLocale('en) ``` plus if I hit any "en" route...

ok, let me take some time to code up a working example

you mixed contexts. `i18n.setLocale(lang)` is fine in cli skripts but won't work on request/response driven server applications. You need to change your code in router.js accoringly: ```js router.get('/lang/:lang', (req, res)...

there is currently no build-in client-side support available. But people managed to implement reuse of .json files on client side. Example: https://github.com/oliversalzburg/i18n-node-angular

browser support is not yet available directly. The only working example I am aware of is https://docs.omniref.com/js/npm/i18n-node-angular/0.2.0 Adding full browser support will need to wait until 1.0.0 as I want...