Browse files

check for null translation

  • Loading branch information...
1 parent 46f59da commit b5ca838cd3fd6d37706478161991ed9203d45c16 @rburns rburns committed Jan 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dialect.js
View
2 lib/dialect.js
@@ -193,7 +193,7 @@ module.exports = function (options) {
if (Object.keys(dictionaries[options.current_locale]).length > 0) {
translation = dictionaries[options.current_locale][str_original];
- if (typeof translation === 'object') {
+ if (typeof translation === 'object' && translation !== null) {
translation = translation.translation; // lol
}
} else {

0 comments on commit b5ca838

Please sign in to comment.