We've built our documentation using Nextra. Right now, only Spanish and English are supported, but we would like to support more languages.
This issue is for adding support for Portuguese.
How to add support for a new language
The project is structured following Nextra documentation. There are a lot of files that have several versions of the same file (e.g. introduction.en.mdx and introduction.es.mdx). To add a new language, create a new version of every file (e.g. introduction.pt.mdx) and translate the content of the file using the English version as the base.
Requirements
- The language name for Portuguese should be
pt
- Include the new language in
locales inside next.config.js
- All files must be translated (including
FAQ)
- Spelling errors will not be accepted
- We prefer effective communication over a literal translation. Some concepts may be better to leave in English if the Portuguese translation doesn't make much sense in Opire's context
We've built our documentation using Nextra. Right now, only Spanish and English are supported, but we would like to support more languages.
This issue is for adding support for Portuguese.
How to add support for a new language
The project is structured following Nextra documentation. There are a lot of files that have several versions of the same file (e.g.
introduction.en.mdxandintroduction.es.mdx). To add a new language, create a new version of every file (e.g.introduction.pt.mdx) and translate the content of the file using the English version as the base.Requirements
ptlocalesinsidenext.config.jsFAQ)