Improve update of translations to avoid unnecessary regeneration of ts files.