Rewrite locale file for options using TypeScript