7 votes

Topic deleted by author

4 comments

  1. [3]
    Adys
    Link
    Learn about the Lang attribute for html tags and how it works (it’s nestable and recursive - https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang). Run your site’s pages...

    Learn about the Lang attribute for html tags and how it works (it’s nestable and recursive - https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang). Run your site’s pages through an accessibility browser text to speech if you want to test things, it will make issues very obvious because they are able to pick up on those attributes and know which language the text is in.

    If you are able (it’s not always possible especially with static blogs), implement language detection via the user’s accept-language header.

    For a static blog I recommend the standard way of putting your entire site behind an iso language prefix, eg /en/posts/123 and /fr/posts/123

    You can specify URLs to “the same content in another language” for the sake of search engines as well. https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types

    Briefly, yes it’s a good idea and search engines will treat your content just fine but for it to work well you need to implement a few things to help give them and browsers the right heuristics.
    Please ping me if you have specific questions, translation engineering used to be my job and I still do a lot of consulting around it.

    6 votes
    1. lou
      Link Parent
      Those are all great, thanks! The way bilingual is implemented on the theme that I tested actually uses /lang/ so I think I'm good. And thanks for the offer of helping me out, I'll probably make...

      Those are all great, thanks! The way bilingual is implemented on the theme that I tested actually uses /lang/ so I think I'm good. And thanks for the offer of helping me out, I'll probably make some follow up questions in the future!

      2 votes
    2. skybrian
      Link Parent
      There is a discussion on Hacker News about websites being inconsistent about using the accept-language attribute. It seems there are enough people with who want to use a different language from...

      There is a discussion on Hacker News about websites being inconsistent about using the accept-language attribute.

      It seems there are enough people with who want to use a different language from what their browser is set to that having a manual override for this is good?

      1 vote
  2. skybrian
    Link
    I don't know, but on Twitter I subscribe to some people who post in more than one language and it seems okay. It does have the "translate tweet" link, though, which is convenient.

    I don't know, but on Twitter I subscribe to some people who post in more than one language and it seems okay. It does have the "translate tweet" link, though, which is convenient.

    1 vote