def rebuild_all_translation_files():
 for lang in get_all_languages():
  for app in frappe.get_all_apps():
   write_translations_file(app, lang)

def rebuild_all_translation_files ( ) : for lang in get_all_languages ( ) : for app in frappe . get_all_apps ( ) : write_translations_file ( app , lang )
rebuild all translation files: [app]/translations/[lang] .