-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/international-calendar #106
Conversation
🦋 Changeset detectedLatest commit: 89e13ff The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
LGTM ✅
92345b1
to
f1f0d07
Compare
DatePicker
docsDatePicker
component
DatePicker
componentf1f0d07
to
1a7451f
Compare
currentLocale: | ||
(locales[currentLocale] && currentLocale) || DEFAULT_LOCALE, |
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.
This logic could be factorized with the locale
computation. WDYT @jbpenrath ?
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.
Would you want me to add a test for this new feature ?
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.
Yup please
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.
done!
b7388d6
to
54ab037
Compare
8026ddc
to
6cef84a
Compare
Expose `currentLocale` value to let know its subscribers what is the locale value currently in use.
Component was lacking some customization capabilities. Using the browser calendar system wasn't enough modular. This introduces a `locale` props, that allows a higher customization of the component. By default, the calendar system of the DatePicker is synchronized with the Cunningham Provider.
6cef84a
to
5cb45e3
Compare
Show international capabilities of the `DatePicker` component using the `locale` props and the Cunningham provider. Dates would be automatically displayed in the appropriate calendar system.
7892db6
to
c012f54
Compare
Documentation was outdated, as the range date picker is now available.
f37ed3f
to
89e13ff
Compare
Purpose
Improve international capabilities of the
DatePicker
component using alocale
props or the Cunningham provider. Dates would be automatically displayed in the appropriate calendar system.Proposal
currentLocale
value in theCunninghamContext
.DatePicker
's calendar system withcurrentLocale
value.locale
props to theDatePicker
component that overridescurrentLocale
value.DatePicker
component using theI18nProvider
.DatePicker
component.CunninghamProvider
To be discussed
with @jbpenrath
CunninghamProvider
current modifications and potential refactoring.