Skip to content

moonrailgun/docusaurus-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

Make sure you have the following in your docusaurus config:

i18n: {
  defaultLocale: 'en',
  locales: ['en', 'fr'],
},

If you not init basic i18n config in your docusaurus config, you can checkout this url: https://docusaurus.io/docs/i18n/introduction

BTW: If you dont know what code should locales fill, you can fill it by reference this url: https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-translations/locales

Then:

Run this command:

OPENAI_API_KEY=sk-xxxxxx npx docusaurus-i18n

Get Help

npx docusaurus-i18n --help

Reference locale code

https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-theme-translations/locales

About

Auto translate docusaurus documents with openai

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published