Versionv1

Comment la bannière choisit la langue (attribut html lang)

La bannière lit en général la langue de la page via l’attribut lang sur l’élément <html>.

Exemple

<html lang="fr">

Si lang est fr, la bannière peut afficher le français. Si lang est pt-BR, elle peut afficher le portugais (Brésil).

Si la langue semble fausse

  • Vérifiez que lang correspond à la langue réelle du contenu.
  • Évitez les pages multilingues sans lang cohérent.
  • Pour les détails techniques, voir la documentation développeur.

Last updated