Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-uzunu committed Dec 2, 2013
1 parent 52aa01c commit 07a5a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/handlebars/translation.js
Expand Up @@ -75,8 +75,8 @@ TranslationHelper.prototype.helper = function (msgId) {
message;

message = Translation.get().translate(renderer.rain.component,
renderer.rain.environment.language,
id || msgId, msgId, undefined, undefined, args);
(renderer.rain.environment && renderer.rain.environment.language) || 'en_US',
id || msgId, msgId, undefined, undefined, args);

// If the "var" parameter is specified, save the message in a variable in context.
if (options.hash['var']) {
Expand Down

0 comments on commit 07a5a7a

Please sign in to comment.