Skip to content

Commit

Permalink
refactor: Skip pushing source strings if there are no untranslated st…
Browse files Browse the repository at this point in the history
…rings
  • Loading branch information
seriaati committed Mar 5, 2024
1 parent 80013e1 commit dad4996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bot/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ async def load_synced_commands_json(self) -> None:
pass

async def push_source_strings(self) -> None:
if not self.not_translated:
return

LOGGER_.info("Pushing %d source strings to Transifex", len(self.not_translated))
split_source_strings = split_list_to_chunks(
[SourceString(string, _key=key) for key, string in self.not_translated.items()],
Expand Down

0 comments on commit dad4996

Please sign in to comment.