fix(v2): fix/enhance minor i18n issues reported (#4092)

* fix comment

* allow to pass custom classname in navbar items

* Add IconLanguage comp to dropdown

* do not trim htmlLang

* Add initial hreflang SEO support

* doc hreflang
This commit is contained in:
Sébastien Lorber 2021-01-22 21:26:42 +01:00 committed by GitHub
parent 8a934ac9b7
commit 869ebe7b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 158 additions and 32 deletions

View file

@ -32,12 +32,12 @@ The goals of the Docusaurus i18n system are:
- **Localize assets**: an image of your site might contain text that should be translated.
- **No coupling**: not forced to use any SaaS, yet the integration is possible.
- **Easy to use with [Crowdin](http://crowdin.com/)**: multiple Docusaurus v1 sites use Crowdin, and should be able to migrate to v2.
- **Good SEO defaults**: setting useful SEO headers like [`hreflang`](https://developers.google.com/search/docs/advanced/crawling/localized-versions) for you.
### i18n goals (TODO)
Features that are **not yet implemented**:
- **Good SEO defaults**: setting useful html meta headers like `hreflang` for you.
- **RTL support**: one locale should not be harder to use than another.
- **Contextual translations**: reduce friction to contribute to the translation effort.
- **Anchor links**: linking should not break when you localize headings.