doctrine / doctrine-website

Source code for the doctrine-project.org website and documentation.

Home Page:https://www.doctrine-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Remove Google translation bar

ThomasLandauer opened this issue · comments

I'm suggesting to remove the Google translation bar that was introduced in #141

Why?

  1. Since it's loaded with JavaScript, it's causing a so-called Cumulative Layout Shift (CLS, see https://web.dev/cls/): After everything is on screen, the translation bar appears, moving everything down.
  2. In that toolbar I've clicked the "Deactivate for English" button at least ;-) 100 times, but it keeps reappearing every time...

The bar was, as far as I remember, a quick win to provide docs in multiple languages. I don't know how heavily it's used by our visitors, so just removing them isn't an appropriate option. If there's a way how we can see if people are enabling translations?

If there's a way how we can see if people are enabling translations?

Without having looked into it, I would guess: No, cause the bar comes from Google and only talks to Google ;-)

For me, the relevant questions are:

  1. How many Doctrine users don't understand English well enough?
  2. How many of those can't use Google Translation by themselves?
  3. How good is the translation at all?

So my opinion is:
It's an annoyance for the vast majority, and doesn't provide any real value for the rest.