Refactor resources translation