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

Incorrect lang attribute on Resources page #304

Open
emersonthis opened this issue Apr 5, 2020 · 5 comments
Open

Incorrect lang attribute on Resources page #304

emersonthis opened this issue Apr 5, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@emersonthis
Copy link
Collaborator

Bug:
We noticed this exact same problem on the homepage: #284
The language buttons work but the page's lang attribute does not change from en. This matters because CSS needs this to know how to correctly format accents, etc for certain languages (like Greek).

Screen Shot 2020-04-05 at 10 53 54 AM

Suggested fix:
We solved this exact issue on the homepage in this PR: #297 . I suspect the identical refactor needs to happen for the resources page:

  • create a new file for each translation with the corresponding language suffix (ex: resources-it.md)
  • Update the yaml at the top of each version of the file to include the correct lang value (ex: 'it') and also the title value should be in the same language if we want the html <title> to be translated.
@emersonthis emersonthis added the bug Something isn't working label Apr 5, 2020
@rousik
Copy link
Collaborator

rousik commented Apr 24, 2020

Note that we don't localize Resources pages so it's always in English, which means that we can expect to see mixed-language pages here.

Do you know what's the right approach in such situation?

@emersonthis
Copy link
Collaborator Author

emersonthis commented Apr 24, 2020 via email

@rousik
Copy link
Collaborator

rousik commented Apr 24, 2020 via email

@rousik
Copy link
Collaborator

rousik commented Apr 24, 2020 via email

@emersonthis
Copy link
Collaborator Author

emersonthis commented Apr 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants