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

FeaturePanel: Add a secondary label to prefer the users language #608

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

Dlurak
Copy link
Collaborator

@Dlurak Dlurak commented Sep 30, 2024

Description

  • Show the label in the users preferred language
  • Show a secondary label in the original language

This ensures the user sees everything that is relevant to them and more importantly that they can understand and read everything. Previously a English speaker might be confronted with Japanese kanji or another writing system they can't even read

Feel free to close this without merging if you don't like this :) It was just a quick idea

image
image
image

The secondary label only is shown when it differs from the main label as it is visible on the last screenshot.

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Oct 7, 2024 2:26pm

@zbycz
Copy link
Owner

zbycz commented Oct 7, 2024

This is great. I have only one remark:

Can you please fix the skeleton in useOnMapClicked: here to also include all name* tags from properties to its tags?

Currently when you click a map feature, the skeleton is briefly displayed with different Headings and then the proper one is shown when Osm request loads. This causes unnecessary flicker on fast internet, or moving on slower one. More details here: https://github.com/zbycz/osmapp/wiki/ARCHITECTURE

Performance is one of the most valued resources in OsmAPP and "loading skeleton" is a way to achieve this even though it makes it a little more difficult.

Related PR: #607 (issue #460)

@zbycz zbycz mentioned this pull request Oct 7, 2024
4 tasks
@Dlurak Dlurak merged commit 7886506 into zbycz:master Oct 7, 2024
2 checks passed
@zbycz
Copy link
Owner

zbycz commented Oct 7, 2024

Love it ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants