Marcus Spiegel

Results 138 comments of Marcus Spiegel

@vincentwinkel i18n is reading files 1. by invoking `i18n.configure()` 2. by fs.watch with autoReload enabled 3. by invoking `i18n.addLocale()` 4. implicitly when calling any translation method (__(), _n(), etc.) on...

Defaults will change and deprecate writing files in production to prevent unintended issues. --- No aim to start a discussion, but wanted to leave some words to clarify: Writing files...

Note to myself: we need more examples covering best practices for loooot's of template engines

been recently using `@root` ``` handlebars {{#each errors.currentPassword}} {{@root.__this}} {{/each}} ```

Well, I get your point. This could be a nice feature as soon customisable storage backends get introduced. The current approach of providing one file for each locale serves a...

hm... true as a key is considered "missing my translation" if it's value is falsy - I should change that to better comply to json specs

ok, got it - adding `skipHeaderChecks` and/or silently ignoring their absence won't be a big deal... thank you for spotting

People with Simulator setups used to use a Cookie to persist language setting... Should help until next Release. Von meinem iPhone gesendet > Am 09.04.2016 um 08:05 schrieb fourpixels [email protected]:...

apropos seo... consider hacking some middleware and switch with setLocale based on an url segment, like so: ``` js router.all('/:lang/*', function(req, res, next){ i18n.setLocale(req, req.params.lang); next(); }); ``` see http://expressjs.com/en/4x/api.html#router

well that totally depends on your express setup, call your express-router `router`, `app`, `server` or `pony` ... your 404 will most probably result from unproper nesting of routes. Please refer...