extracted translate and locale