-
-
Notifications
You must be signed in to change notification settings - Fork 953
Add Ukrainian (uk-UA) localization for DateRangePicker and other components #4288
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
… and other components
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
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.
Pull Request Overview
This PR adds Ukrainian localization for React Suite components by introducing a dedicated locale file and updating the locale index.
- Added the Ukrainian translations in src/locales/uk_UA.ts based on the ru-RU structure and date-fns/locale/uk.
- Updated src/locales/index.ts to export the new locale.
- Ignored an extraneous package-lock.json file in examples/with-vite.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/locales/uk_UA.ts | Added Ukrainian translation entries for various widgets. |
src/locales/index.ts | Exported the new uk-UA locale for integration. |
formattedDayPattern: 'dd MMM yyyy', | ||
shortDateFormat: 'dd.MM.yyyy', | ||
shortTimeFormat: 'HH:mm', | ||
dateLocale: uk as any |
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.
Consider using a specific type for 'dateLocale' instead of 'any' to enhance type safety and maintainability.
dateLocale: uk as any | |
dateLocale: uk as Locale |
Copilot uses AI. Check for mistakes.
.gitignore
Outdated
docs/public/examplesexamples/with-vite/package-lock.json |
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.
Changes to .gitignore should be reverted
0c43754
to
af3ca2f
Compare
This PR adds Ukrainian (uk-UA) localization for React Suite components, including DateRangePicker. The localization is based on the existing ru-RU structure and uses date-fns/locale/uk for date formatting.
Changes:
src/locales/uk_UA.ts
with Ukrainian translations.src/locales/index.ts
to include uk-UA.examples/with-vite/package-lock.json
via .gitignore.docs/package-lock.json
anddocs/package.json
.Screenshots: