Skip to content

Commit

Permalink
fix: Make the locale.yaml file utf-8 for sane diffs
Browse files Browse the repository at this point in the history
Also does a pull_translations on 2024-04-01.
  • Loading branch information
bmtcril committed Apr 1, 2024
1 parent 56a8e81 commit 8bf196d
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 8bf196d

Please sign in to comment.