Skip to content

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

@codesandbox
Copy link

codesandbox bot commented May 20, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
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

@codesandbox-ci
Copy link

codesandbox-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
Contributor

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

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

# generated
docs/public/examples
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