-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: expose i18n object by adding setter and getter #6330
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vursen
changed the title
feat: expose i18n object by providing corresponding setter and getter
feat: expose i18n object by adding setter and getter methods
May 29, 2024
vursen
changed the title
feat: expose i18n object by adding setter and getter methods
feat: expose i18n object by adding setter and getter
May 29, 2024
vursen
force-pushed
the
refactor/expose-date-time-picker-i18n
branch
from
May 29, 2024 13:15
5534811
to
bfcbf42
Compare
vursen
commented
May 30, 2024
...ation-tests/src/test/java/com/vaadin/flow/component/datetimepicker/DateTimePickerI18nIT.java
Outdated
Show resolved
Hide resolved
yuriy-fix
reviewed
May 31, 2024
...ation-tests/src/test/java/com/vaadin/flow/component/datetimepicker/DateTimePickerI18nIT.java
Outdated
Show resolved
Hide resolved
vursen
force-pushed
the
refactor/expose-date-time-picker-i18n
branch
from
June 3, 2024 08:45
bfcbf42
to
926208a
Compare
sissbruecker
reviewed
Jun 4, 2024
...-time-picker-flow/src/main/java/com/vaadin/flow/component/datetimepicker/DateTimePicker.java
Outdated
Show resolved
Hide resolved
...-time-picker-flow/src/main/java/com/vaadin/flow/component/datetimepicker/DateTimePicker.java
Show resolved
Hide resolved
sissbruecker
approved these changes
Jun 4, 2024
vursen
commented
Jun 4, 2024
...-time-picker-flow/src/main/java/com/vaadin/flow/component/datetimepicker/DateTimePicker.java
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
…ow/src/main/java/com/vaadin/flow/component/datetimepicker/DateTimePicker.java Co-authored-by: Sascha Ißbrücker <[email protected]>
vursen
force-pushed
the
refactor/expose-date-time-picker-i18n
branch
from
July 11, 2024 05:48
ed18cac
to
96478fe
Compare
Quality Gate passedIssues Measures |
vursen
requested review from
DiegoCardoso
and removed request for
DiegoCardoso and
yuriy-fix
July 11, 2024 08:19
DiegoCardoso
approved these changes
Jul 11, 2024
This ticket/PR has been released with Vaadin 24.5.0.alpha5 and is also targeting the upcoming stable 24.5.0 version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The PR provides public access to the i18n object of DateTimePicker by adding setter and getter methods.
Note
The i18n object has only two properties at the moment: dateLabel and timeLabel. These properties specify a suffix to be added to the aria-label of DatePicker and TimePicker, where the first part of that aria-label is the aria-label or label of DateTimePicker. Due to an API design issue, we also have methods setDateAriaLabel and setTimeAriaLabel set these suffixes despite their name suggesting they set the whole aria-label (overriding the default aria-label format). Ideally, they would be changed to set the whole aria-label while suffixes would only be set through i18n. However, this would be a significant breaking change, which is too big to be included in a minor version. So, for now, it was decided to keep these properties in i18n and also retain these methods, with the difference that the methods will store their labels separately from i18n and their labels will take precedence over the labels set through i18n to avoid undesired side effects.
Part of #4618
Type of change