gristlabs / grist-help

Grist documentation and help center articles
https://support.getgrist.com
Other
13 stars 17 forks source link

Machine translation using OpenAI #388

Closed fflorent closed 2 weeks ago

fflorent commented 4 weeks ago

Use GPT-4o and GPT-4o-mini to machine translate the documentation

This PR adds translations made using GPT-4o for pages who are below 4096 tokens length.

I wrote and used this script to translate the documents into French. It is not well documented and purely written to be run in one-shot, I can give more details on how it works upon request.

One notable thing I used is a glossary that I gave to GPT through the prompt. It looks like GPT-4o follows it much more carefully than GPT-4o-mini.

Related PR: #384, which adds the headers and templates to move from Git

Important: some pages are not translated yet. That's normal, I still want to see whether Git Localize achieve synchronizing many documents like the set in this PR, I will continue translating after that.

netlify[bot] commented 4 weeks ago

Deploy Preview for grist-help-preview ready!

Name Link
Latest commit 0d47b028ed0fbde867418f5b9e90a059332f9db7
Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/66cdf749f264c500080f4fb1
Deploy Preview https://deploy-preview-388--grist-help-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

fflorent commented 3 weeks ago

Waiting for merge of #384 before merging this PR.