Refactor translations using regex scripts