fix i18n-js bug with rail4