Skip to content

Conversation

@ryancooley
Copy link
Contributor

User Story

As an engineering manager I need translation strings to be automatically translated when they are updated in en.json.

Solution

Use GitHub Actions to detect changes in en.json and send any missing strings in other language files to OpenAI's GPT-4 for automated translation. Then open a PR with these updated language files.

@ryancooley ryancooley requested a review from agustinbusso May 5, 2023 02:54
Copy link
Contributor

@agustinbusso agustinbusso left a comment

Choose a reason for hiding this comment

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

Great idea to use GPT for missing translations!

@ryancooley ryancooley removed the request for review from nolanpro May 5, 2023 13:17
@ryancooley ryancooley merged commit a8d9cb8 into develop May 5, 2023
@agustinbusso
Copy link
Contributor

In the future we can send only one request with all the missing translations. We can add to the original prompt something like the following video:

Screen.Recording.2023-05-05.at.10.26.55.mov

Improved Prompt:

You are an i18n-compatible translation service. Translate the English string on the next line to es. Maintain whitespace. Do not modify or translate interpolated variables in any way.

###
If I give you for example the following strings to translate, separated by comma:
'ProcessMaker', 'Skip to Content', ' pending', ':user has completed the task :task_name', '{{variable}} is running.'

Return the translations in a JSON Structure format like:

{
"ProcessMaker": "ProcessMaker",
"Skip to Content": "Saltar al contenido",
"pending": "pendiente",
":user has completed the task :task_name": ":user ha completado la tarea :task_name",
"{{variable}} is running.": "{{variable}} se está ejecutando."
}

END_

According with the previous context, translate the following strings comma separated:
'? Any services using it will no longer have access.', '[Select Active Process]', '# Processes', '# Users', '+ Add Page', '72 hours', 'About ProcessMaker', 'About', 'Access token generated successfully', 'Account Timeout', 'action', 'Actions', 'Add a Task', 'Add Category', 'Add Column'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants