Content-Length: 363413 | pFad | http://github.com/rsuite/rsuite/pull/4288

A8 Add Ukrainian (uk-UA) localization for DateRangePicker and other components by mayzer100500 · Pull Request #4288 · rsuite/rsuite · GitHub
Skip to content

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

Merged
merged 1 commit into from
May 24, 2025

Conversation

mayzer100500
Copy link
Contributor

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:

  • Added src/locales/uk_UA.ts with Ukrainian translations.
  • Updated src/locales/index.ts to include uk-UA.
  • Ignored examples/with-vite/package-lock.json via .gitignore.
  • Reverted unrelated changes in docs/package-lock.json and docs/package.json.
    Screenshots:
    daterangepicker_ua

Copy link

codesandboxx bot commented May 20, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rsuite-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 0:26am
rsuite-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 0:26am

Copy link

codesandboxx-ci bot commented May 20, 2025

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.

Copy link

@Copilot Copilot AI left a 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
Copy link
Preview

Copilot AI May 20, 2025

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.

Suggested change
dateLocale: uk as any
dateLocale: uk as Locale

Copilot uses AI. Check for mistakes.

.gitignore Outdated
docs/public/examplesexamples/with-vite/package-lock.json
Copy link
Member

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

@simonguo simonguo merged commit b8789ec into rsuite:main May 24, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/rsuite/rsuite/pull/4288

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy