The SQYBI.com website.
- Framework: Docusaurus
- Serve on: Cloudflare Pages
- Comments plugin: giscus
- Coding and writing assistent: Github Copilot
- Automated translation: ChatGPT API
- Copy
.env.example
, rename to.env
, add your OpenAI secret key. - Use
npm run translate
to translate all blog articles automatically by GPT-4-turbo. It will skip the translation if the original file was not modified since the last translation time, to reduce the usage of ChatGPT API. - Translate or adjust the items in the frontmatter by yourself -- they will not be translated by ChatGPT automatically.
- Use
npm run write-translations -- --locale {target_locale}
to append new translation items. - Translate them by yourself.