Skip to content

Commit

Permalink
Merge pull request #686 from openedx/utf8-translations
Browse files Browse the repository at this point in the history
fix: Make the locale.yaml file utf-8 for sane diffs
  • Loading branch information
Cristhian Garcia authored Apr 2, 2024
2 parents 56a8e81 + 8bf196d commit d269885
Show file tree
Hide file tree
Showing 2 changed files with 4,837 additions and 4,813 deletions.
2 changes: 1 addition & 1 deletion scripts/translate_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def compile_translations(root_path):
outfile.write("---\n")
# If we don't use an extremely large width, the jinja in our translations
# can be broken by newlines. So we use the largest number there is.
yaml.dump(all_translations, outfile, width=math.inf, sort_keys=True)
yaml.dump(all_translations, outfile, width=math.inf, sort_keys=True, allow_unicode=True)
outfile.write("\n{{ patch('superset-extra-asset-translations')}}\n")

# We remove these files to avoid confusion about where translations are coming
Expand Down
Loading

0 comments on commit d269885

Please sign in to comment.