refactor setup_translations