-
Notifications
You must be signed in to change notification settings - Fork 24
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
Describe localized text "default" alias #732
base: master
Are you sure you want to change the base?
Conversation
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.
@jonas-paul I don't understand.
@MikeAdamsMews it is about a special key {
"default": "Children"
} It means this for an enterprise which has default language set to {
"en-US": "Children"
} while it means this for an enterprise which has default language set to {
"cs-CZ": "Children"
} Is this clearer? |
I'd suggest a bit more details and clarifying the conflict behavior. For example: {
"default": "Children",
"de-DE": "Kinder",
"cs-CZ": "Děti"
} Assuming the enterprise's default language is {
"en-UK": "Children",
"de-DE": "Kinder",
"cs-CZ": "Děti"
} In case the default language is already present in the dictionary, the explicit language takes precedence over the {
"default": "Value for default key",
"en-US": "Value for explicit language key"
} If the enterprise's default language is {
"en-US": "Value for explicit language key"
} Also don't forget to update changelog. |
@jonas-paul sorry but this feels wrong to me, and no it's not clear. I'm actually stuck on the first statement "When used as an input parameter". We have no concept of an input parameter, I assume you mean when using a field of type |
@MikeAdamsMews you're correct on all the points. What can we do about this?
@jnv, @ondrahermanek what do you think? |
4 - keep it hidden, so we don't make this behavior "official"? As Jonas says, it is a workaround ... |
Agree with Ondra, perhaps keep this behavior undocumented for now (so option 3.) and se how - and if - they use it. |
Thanks for the context @jonas-paul. I'm not keen on concepts like 'workaround', equally I'm not keen on hidden behaviours. From a documentation POV I'm just asking a few basic questions: is it technically correct? is it consistent with the rest of the API? is it clear how it works? and does it make sense? As long as you can answer those questions, I'm happy :-) |
Summary
Added a description for this change: https://github.com/MewsSystems/mews/pull/64699.
Checklist