applying the fix suggested in this issue: https://github.com/fnando/i18n-js/pull/146