1602/express-on-railway — pull request #85 by VladimirTechMan (2011-12-23 20:09:26+00:00)
Title: Init t.locale to app.settings.defaultLocale

This way repeating Controller.setLocale() is not required where the default app setting is known and is what the developer wants. This change also fixes/improves the behavior of locales.T.t() where the locale value is now explicitly assumed to be 'en' if t.locale is undefined.

BTW, thinking aloud: Maybe it would be better to fully remove the " || 'en' " part from T.t() in locales and instead set t.locale in Controller as:

this.t.locale = app.settings.defaultLocale || 'en';

I suppose that would be a more consistent approach -- what do you think?