-
-
Notifications
You must be signed in to change notification settings - Fork 29
FeaturePanel: Id tagging scheme internationalization #559
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
// combo with options | ||
if (fieldTranslation?.options?.[v]) { | ||
return renderValue(k, fieldTranslation.options[v]?.title); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this case can also occur sometimes. Can you please check it? Or say so, and i will try to find it.
This code is quite smelly 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is very much possible that I overlooked something - but I think it was only blocking the translations and actually being used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Great fix, very welcomed :) thanks 🙂 I feel we need some more tests to this whole id-tagging-scheme integration. I think this worked some time before, but it is easy to break anything :) -> #573 |
About that, it seems like I've broken something: Schools. It is definitely very fragile and we need more tests I will investigate the problem later this day |
I don't see an issue eg here https://osmapp.org/way/318017486 It was very hard and experimential to build it in the first place. With current knowledge I know much better how I want to use it. I do some refactors in #506 - I will try to add some tests along. |
It seems to work on some schools, but this one doesn't work: https://osmapp.org/way/194819147 And there are way more that don't work |
Ok so the problem is that the internationalized value is email: {
key: 'email',
keys: [ 'email', 'contact:email' ],
type: 'email',
fieldKey: 'email'
} |
@zbycz I think I have a fix! are you working on a refactoring or should I open a new pr? |
…)" This reverts commit e456b08.
I think i get what you might mean. That if there is no translation in Feel free to fix it. I will work on #506 probably next week, so i will rebase on master. |
Description
While the labels were already internationalized the values weren't. The code was already written but never actually applied due to a small logic error.
Now units and translated values are shown in the feature panel.
Checklist