Skip to content
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

chore(cdk): TuiDay improvement of localization #1139

Merged
merged 3 commits into from
Dec 23, 2021
Merged

Conversation

nsbarsukov
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows Conventional Commits
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Code style update
  • Build or CI related changes
  • Documentation content changes

Does this PR introduce a breaking change?

  • Yes
  • No

@lumberjack-bot
Copy link

lumberjack-bot bot commented Dec 22, 2021

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2021

Visit the preview URL for this PR (updated for commit c03333e):

https://taiga-ui--pr1139-tui-day-localization-tf8h1ybs.web.app

(expires Thu, 23 Dec 2021 13:57:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@nsbarsukov
Copy link
Member Author

It is required for future feature #954

@nsbarsukov nsbarsukov changed the title chore(cdk): TuiDay add static method parseRawDateString chore(cdk): TuiDay improvement of localization Dec 22, 2021
static parseRawDateString(
date: string,
dateMode: TuiDateMode = 'DMY',
): {day: number; month: number; year: number} {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe add assertion for invalid string?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nsbarsukov nsbarsukov merged commit 4349a45 into main Dec 23, 2021
@nsbarsukov nsbarsukov deleted the tui-day-localization branch December 23, 2021 08:01
@well-done-bot
Copy link

well-done-bot bot commented Dec 23, 2021

'Well done'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants