feat(theme-classic): use lang attribute in navbar locale dropdown items (#7942)

This commit is contained in:
Sébastien Lorber 2022-08-12 12:33:53 +02:00 committed by GitHub
parent b4279dfee7
commit ad15605545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -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. */