mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +02:00
feat(theme-classic): use lang attribute in navbar locale dropdown items (#7942)
This commit is contained in:
parent
b4279dfee7
commit
ad15605545
3 changed files with 5 additions and 3 deletions
5
packages/docusaurus-types/src/i18n.d.ts
vendored
5
packages/docusaurus-types/src/i18n.d.ts
vendored
|
@ -11,8 +11,9 @@ export type I18nLocaleConfig = {
|
|||
/** The label displayed for this locale in the locales dropdown. */
|
||||
label: string;
|
||||
/**
|
||||
* BCP 47 language tag to use in `<html lang="...">` and in
|
||||
* `<link ... hreflang="...">`
|
||||
* BCP 47 language tag to use in:
|
||||
* - `<html lang="...">` (or any other DOM tag name)
|
||||
* - `<link ... hreflang="...">`
|
||||
*/
|
||||
htmlLang: string;
|
||||
/** Used to select the locale's CSS and html meta attribute. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue