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

Playwrite primary_language: question/discussion #8724

Open
emmamarichal opened this issue Dec 11, 2024 · 9 comments
Open

Playwrite primary_language: question/discussion #8724

emmamarichal opened this issue Dec 11, 2024 · 9 comments
Labels
-- Needs Eng team opinion API related stuff only eng team can answer I API / Website / Platform fonts.google.com related stuff

Comments

@emmamarichal
Copy link
Collaborator

emmamarichal commented Dec 11, 2024

cc @vv-monsalve

I have the feeling that some of localised primary language like primary_language: "fr_Latn" doesn't work everywhere. For French, it works in the Guides versions, but not on the normal one. It's weird since both of metadata.pb have the primary_language set up.

For Argentina, Guides version isn't displayed in spanish, but I checked and the primary_language: "es_Latn" is missing from metadata.pb (same for Colombia)

Image
Image

@emmamarichal emmamarichal added the I API / Website / Platform fonts.google.com related stuff label Dec 11, 2024
@emmamarichal
Copy link
Collaborator Author

For Playwrite:

All the missing primary_languages have been added here: https://github.com/google/fonts/pull/7853/files

I checked, and only few of them are working:

Image

The rest are displayed in english:

Image

For Playwrite Guides:

Only Colombia and Argentina are missing

@vv-monsalve
Copy link
Collaborator

Hi @emmamarichal, what would be the question?

I have the feeling that some of localised primary language like primary_language: "fr_Latn" doesn't work everywhere. For French, it works in the Guides versions, but not on the normal one. It's weird since both of metadata.pb have the primary_language set up.

This is a UI issue. IIRC, I reported this in one of the meetings. However, it could be a good addition to the document for the problems to discuss with the ENG team.

All the missing primary_languages have been added here: https://github.com/google/fonts/pull/7853/files

They were not missing. I proposed adding this metadata field to localize the target language for these families.

Only Colombia and Argentina are missing

We missed this in the PR revision. I'll create a follow up PR with this fix.

@vv-monsalve vv-monsalve added the -- Needs Eng team opinion API related stuff only eng team can answer label Dec 11, 2024
@emmamarichal
Copy link
Collaborator Author

@vv-monsalve found the culprit! this PR has not be added to the traffic jam: #7853, I'm adding it!

@vv-monsalve
Copy link
Collaborator

vv-monsalve commented Dec 12, 2024

That PR was not added to the board because the changes it introduced would be tracked by each of the 'ofl' directories moving through the pipeline at that time. That is each font PR. And the changes indeed landed, at least for most of the cases.

For instance, you can see that Playwrite BE WAL actually has the language information in the metadata field. But for some reason, Playwrite FR Moderne did not receive it, despite both being added in this commit of that PR.

Playwrite BE WAL
Image

Playwrite FR Moderne
Image

@emmamarichal
Copy link
Collaborator Author

Oh ok thanks! I updated my comment in the chat then :)

@vv-monsalve vv-monsalve changed the title Playwrite primary_script: question/discussion Playwrite primary_language: question/discussion Dec 13, 2024
@vv-monsalve vv-monsalve changed the title Playwrite primary_language: question/discussion Playwrite primary_language: question/discussion Dec 13, 2024
@vv-monsalve
Copy link
Collaborator

There is also a related issue regarding the primary_language.

It works okay on the landing page or when searching for them. However, once entering the desired font, the primary language stops working, and the Specimen page switches to English.

E.g. Playwrite Česko

  • At first, it displays correctly the Czech language

    Image
  • But in the Specimen page it is English

    Image

@vv-monsalve
Copy link
Collaborator

vv-monsalve commented Dec 20, 2024

@vv-monsalve found the culprit! this PR has not be added to the traffic jam: #7853, I'm adding it!

@emmamarichal We'll need to add and track this PR after all.

I found another similar situation with the Deutschland models. They were added in this commit, however inspecting the metadata info for the distributed font the primary_language is empty, so the displayed text is still in English :/

Image

So better to re-push that PR.

@emmamarichal
Copy link
Collaborator Author

Ok thank you! It's already added to the board, I'll track it carefully next time I'll be oncall!

@vv-monsalve
Copy link
Collaborator

Ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-- Needs Eng team opinion API related stuff only eng team can answer I API / Website / Platform fonts.google.com related stuff
Projects
Status: Todo
Development

No branches or pull requests

2 participants