Added default locale, change translate algorithm