You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By automating the translations of new news posts with a large language model, we offload the responsibility of translating those off of our translators and maintainers, and news posts are translated immediately without delay.
Overview of how to add:
Install the openai npm package.
Ask Naviary for an API key. Modify env.js to include a OPEN_AI_KEY property in our generated .env file. Stick the API key in there.
Create a new script, on startup, that will create a list of all news posts present in translation/news/en-US that aren't in the other language's news post folders.
Then, for each missing post, it uses the openai package to send a prompt to ChatGPT, asking them to translate it into a single missing language. One prompt per language.
Save each response as a new news post in the respective language's news post directory.
The text was updated successfully, but these errors were encountered:
By automating the translations of new news posts with a large language model, we offload the responsibility of translating those off of our translators and maintainers, and news posts are translated immediately without delay.
Overview of how to add:
Install the
openai
npm package.Ask Naviary for an API key. Modify
env.js
to include aOPEN_AI_KEY
property in our generated.env
file. Stick the API key in there.Create a new script, on startup, that will create a list of all news posts present in translation/news/en-US that aren't in the other language's news post folders.
Then, for each missing post, it uses the
openai
package to send a prompt to ChatGPT, asking them to translate it into a single missing language. One prompt per language.Save each response as a new news post in the respective language's news post directory.
The text was updated successfully, but these errors were encountered: