website icon indicating copy to clipboard operation
website copied to clipboard

Prepare field to receive i18n contributions

Open guilherssousa opened this issue 3 years ago • 2 comments

Propose

As mentioned by @kwonoj on Issue #172 and by @kdy1 on #158, there is no near future plan to receive doc translations in official branch. So, this pull request does not add any translations to docs but instead prepares the field by implementing Nextra's Next.js i18n Routing feature and changing the current file structure to fit the given locale approach.

Important Changes

  • In next.config.js, i18n settings are added, by defining en-US as default locale.
  • All documentation markdown files and meta JSON files (except for Playground)* were added a .en-US right before their file extensions.
    • *Since Playground only renders an Iframe displaying play.src.rs, they are ignored on middleware level to avoid errors.

guilherssousa avatar Jun 22 '22 16:06 guilherssousa

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 22 '22 16:06 CLAassistant

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
website ✅ Ready (Inspect) Visit Preview Jun 22, 2022 at 4:39PM (UTC)

vercel[bot] avatar Jun 22 '22 16:06 vercel[bot]