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

Show language selector! #360

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Conversation

fflorent
Copy link
Collaborator

@fflorent fflorent commented Jul 9, 2024

This allows the user to show the documentation in French for now and in other languages in the future.

This allows the user to show the documentation in French for now and
in other languages in the future.
Copy link

netlify bot commented Jul 9, 2024

Deploy Preview for grist-help-preview ready!

Name Link
🔨 Latest commit 2e4ff8c
🔍 Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/668ebb8f1b76d2000836ff99
😎 Deploy Preview https://deploy-preview-360--grist-help-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@paulfitz paulfitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, once this happens, the selector will show on support.getgrist.com. The French translation is so bare, including on the default/front page, that it might be mostly disappointing for users.

If you don't care about support.getgrist.com, we could maybe add a flag so the selector doesn't show their yet. But if getting it to show there is the point, I can check in with Grist Labs support people to see how they feel about this.

The French translation is already available at https://support.getgrist.com/fr/

@fflorent
Copy link
Collaborator Author

fflorent commented Jul 9, 2024

I expected that it would encourage to help translating the website, if we advertise it as needing some work from the community.

That being said, probably in such a case we should either make it explicit that it's still in beta phase, or continue translating on our side before making it public.

I don't mind waiting until we have more content in French (so opt for the second option), and until then close or make this PR as "WIP".

@fflorent fflorent changed the title Show language selector! WIP: Show language selector! Jul 9, 2024
@fflorent fflorent marked this pull request as draft July 9, 2024 15:53
@paulfitz
Copy link
Member

paulfitz commented Jul 9, 2024

How about if this message were rewritten a bit for the case where most translations are missing.

Screenshot from 2024-07-09 13-14-19

Like "We're just getting started translating this language, sorry! We show partially translated languages so translators can track progress. This page isn't translated yet. But you can help..." maybe?

@fflorent
Copy link
Collaborator Author

fflorent commented Jul 10, 2024

@paulfitz That's interesting. I would need to be sure of the purpose(s) you have in mind for the message so I can enhance relevantly (also I may need to tweak a bit the code depending on your answer):

  • advertise the new localization and notify that it's in very early stage (that would indeed help);
  • help existing translators to track the progress as you mentioned (for that, we may redirect them to https://support.getgrist.com/fr);
  • encourage the community to help translating;
  • EDIT: @vviers suggested this purpose: release often to motivate the translators to keep going;
  • other purposes?

@vviers
Copy link
Sponsor Contributor

vviers commented Jul 10, 2024

I like the option of having the "work in progress, help needed" warning message @paulfitz ! Sorry for falling behind on translation we'll get to it this summer !

@fflorent
Copy link
Collaborator Author

I propose this message based on your suggestion:

We're just getting started translating this language, sorry!

We show partially translated languages to track progress.

This page isn't translated yet. But the good news is that you can join the translation community to help us 👋{.internal-link target=_blank}.

It's rendered like below in French:

image

@fflorent fflorent marked this pull request as ready for review July 10, 2024 09:17
@fflorent fflorent changed the title WIP: Show language selector! Show language selector! Jul 10, 2024
Copy link
Member

@paulfitz paulfitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, the revised language works well! Checked in with rest of support team, they are excited for the French translation to make progress. in any way. One "nice to have" that came up would be to match style on the language dropdown with the style used in the main application. But for the moment a less polished and less consistent look may actually set expectations more appropriately.

Leaving it to you to land at your convenience @fflorent.

@fflorent
Copy link
Collaborator Author

@paulfitz Do you mean like this? (The font size is set like for the other elements on the top)
image

@fflorent
Copy link
Collaborator Author

I pushed an update of the code in a separate commit. Your feedback is welcome

@paulfitz
Copy link
Member

paulfitz commented Jul 10, 2024

That is a welcome tweak. But what we hand in our mind with this kind of dropdown used in the Grist app:

language-dropdown

This PR is good to land in my opinion, and I wouldn't actually want to hold it for a discussion about a fancier dropdown. We could revisit when there's at least one complete translation :-)

@fflorent
Copy link
Collaborator Author

Thanks for the clarification!

I merge as suggested, we'll work on that in a follow-up

@fflorent fflorent merged commit 03e37c8 into gristlabs:master Jul 10, 2024
5 checks passed
@fflorent fflorent deleted the show-language-selector branch July 10, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants