refctoring translations helper