Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Utiliser la bonne valeur d'attribut lang sur la balise html (PIX-6520) #439

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

yannbertrand
Copy link
Member

@yannbertrand yannbertrand commented Dec 9, 2022

🦄 Problème

Pour l'instant, l'attribut lang de la balise html est toujours setté à fr. En réalité, la langue utilisée n'est pas la même sur les différentes versions du site.

🤖 Solution

Dans nos layouts, remplir la valeur de lang en fonction de la locale sélectionnée.

🌈 Remarques

Ce manquement a des impacts assez important comme listé sur ce site.

Pour aller plus loin, notamment en termes de SEO, il faudra peut être étudier la méthode this.$nuxtI18nHead.

💯 Pour tester

Vérifier sur chaque locale, que l'attribut lang correspond à la locale :

  • sur la homepage
  • sur la page d'erreur (par exemple si la page n'existe pas)

@yannbertrand yannbertrand self-assigned this Dec 9, 2022
@pix-service
Copy link

I'm deploying this PR to these urls:

Please check it out!

@yannbertrand yannbertrand changed the title [FEATURE] Utiliser la bonne valeur d'attribut lang sur la balise html [FEATURE] Utiliser la bonne valeur d'attribut lang sur la balise html (PIX-6520) Dec 12, 2022
@yannbertrand yannbertrand force-pushed the tech-use-right-html-lang branch from 356d633 to 535e8cd Compare December 12, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants