Skip to content

Conversation

@mfarhan943
Copy link

Description: Using Google Translate API to perform language translations to update the .po files and also generate csv if required.

JIRA: https://edlyio.atlassian.net/browse/EDLY-4796

write_to_csv(csv_file_path, entry.msgid_plural, entry.msgstr_plural[1], source)


if __name__ == "__main__":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating a Django management command is currently challenging because of Google Cloud's incompatibility with the current edx-platform Python version. Additionally, Google authentication requires a JSON credential file. My suggestion is to continue with the current approach, but I can convert it to a management command if that is preferred.

@mfarhan943 mfarhan943 marked this pull request as draft July 27, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants