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

Kds 1394 i 18 n for filter drp #3811

Merged
merged 20 commits into from
Jul 10, 2023
Merged

Conversation

JakePitman
Copy link
Contributor

@JakePitman JakePitman commented Jun 30, 2023

Why

FilterDRP has hard-coded strings that can only be translated from within KZ.

What

  • Adds translations for hard-coded strings in FilterDRP:
    • "Date from"
    • "Date to"
    • "Input format"
  • Adds a story demonstrating the degree of translation coverage in FilterDRP
  • Mocks the useIntl function from @cultureamp/i18n-react-intl, as our jest environment doesn't have an intl object in context
  • Exports the locale folder from @kaizen/components, so they can be compiled with consuming repo's locales
  • Upgrades to the latest version of @cultureamp/i18n-react-intl

@JakePitman JakePitman requested a review from a team as a code owner June 30, 2023 04:14
@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2023

🦋 Changeset detected

Latest commit: 8ac9d11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kaizen/components Minor

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2023

✨ Here is your branch preview! ✨

Last updated for commit 8ac9d11: Lint fix

setupTests.ts Show resolved Hide resolved
@@ -140,6 +141,42 @@ Playground.args = {
renderTrigger: "Filter Button",
}

export const Translated: StoryFn<typeof FilterDateRangePicker> = args => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this supposed to be sent to Chromatic? Probably add it to the stickersheet

@JakePitman JakePitman force-pushed the KDS-1394-i-18-n-for-filter-drp branch from 2bfb88d to 8ac9d11 Compare July 10, 2023 10:03
@JakePitman JakePitman merged commit 99a1f1c into main Jul 10, 2023
@JakePitman JakePitman deleted the KDS-1394-i-18-n-for-filter-drp branch July 10, 2023 23:56
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