Visitar URL original
Bilingual Mothership ribbons (Fr and En) · Issue #9 · nsgov/patternlibrary · GitHub
Skip to content

Bilingual Mothership ribbons (Fr and En) #9

Open

Description

@jamie-benoit

Suggestion for both languages. Since the language of page has been globally in html tag and that link to flip language is in another that one. We should add a lang and hreflang attributes to the a.

in https://github.com/nsgov/patternlibrary/blob/main/navigation/mothership-ribbon-with-EN.html change
<a href="../" style="float: right; color: #fff; font-weight: bold; margin: 10px 0; text-decoration: none;">English</a>
to
<a href="../" hreflang="en" lang="en" style="float: right; color: #fff; font-weight: bold; margin: 10px 0; text-decoration: none;">English</a>

in https://github.com/nsgov/patternlibrary/blob/main/navigation/mothership-ribbon-with-FR.html change
<a href="/fr" style="float: right; color: #fff; font-weight: bold; margin: 10px 0; text-decoration: none;">Français</a>
to
<a href="/fr" hreflang="fr" lang="fr" style="float: right; color: #fff; font-weight: bold; margin: 10px 0; text-decoration: none;">Français</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions