added comment for getTranslation function