add one step to generate the translations and stats files
add one step to generate the translations and stats files: Fix typos
add one last step to generate the legacy translations.csv and stats.csv files
refactor code a bit