Skip to content

feat(localization): DLT-2461 refactor components#724

Merged
Julio Ortega (juliodialpad) merged 52 commits intoi18n/base-branchfrom
i18n/refactor-components
Apr 28, 2025
Merged

feat(localization): DLT-2461 refactor components#724
Julio Ortega (juliodialpad) merged 52 commits intoi18n/base-branchfrom
i18n/refactor-components

Conversation

@juliodialpad
Copy link
Copy Markdown
Contributor

@juliodialpad Julio Ortega (juliodialpad) commented Apr 21, 2025

Refactor components to use localization

Obligatory GIF (super important!)

Obligatory GIF

🛠️ Type Of Change

These types will increment the version number on release:

  • Feature

📖 Jira Ticket

https://dialpad.atlassian.net/browse/DLT-2461

📖 Description

  • Migrated first set of componentes, will break this into multiple PRs to ease the review process as there might be a lot of changes happening.

💡 Context

We're implementing localization on Dialtone.

📝 Checklist

For all PRs:

  • I have ensured no private Dialpad links or info are in the code or pull request description (Dialtone is a public repo!).
  • I have reviewed my changes.
  • I have added all relevant documentation.
  • I have considered the performance impact of my change.

For all Vue changes:

  • I have added / updated unit tests.
  • I have made my changes in Vue 2 and Vue 3. Note: you may sync your changes from Vue 2 to Vue 3 (or vice versa) using the ./scripts/dialtone-vue-sync.sh script. Read docs here: Dialtone Vue Sync Script
  • I have validated components with a screen reader.
  • I have validated components keyboard navigation.

Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
# Conflicts:
#	.github/workflows/publish-android.yml
#	.github/workflows/publish-ios.yml
#	.github/workflows/publish-web.yml
#	.github/workflows/visual_tests.yml
#	packages/dialtone-vue2/.storybook/preview.jsx
#	packages/dialtone-vue2/components/popover/popover.vue
#	packages/dialtone-vue2/components/popover/popover_default.story.vue
#	packages/dialtone-vue2/components/popover/popover_header_footer.vue
#	packages/dialtone-vue2/localization/index.js
#	pnpm-lock.yaml
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
@juliodialpad Julio Ortega (juliodialpad) added the visual-test-ready Add this tag when the PR is ready for visual test, to trigger GHA visual tests label Apr 21, 2025
@juliodialpad Julio Ortega (juliodialpad) marked this pull request as draft April 21, 2025 19:16
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Separated banner from notice as they might have different props so it's easier to maintain them separately than overriding props here.


import DtComboboxDefaultTemplate from './combobox_default.story.vue';
import { LABEL_SIZES } from './combobox_constants';
import { COMBOBOX_LABEL_SIZES } from './combobox_constants';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Renamed to match our specifications about prefixing the constants with the component name.

Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
@juliodialpad Julio Ortega (juliodialpad) marked this pull request as ready for review April 21, 2025 22:24
@juliodialpad Julio Ortega (juliodialpad) changed the title feat(localization): DLT-2461 refactor-components feat(localization): DLT-2461 refactor components Apr 23, 2025
Comment thread packages/dialtone-vue2/common/mixins/localization.js
Comment thread packages/dialtone-vue2/components/combobox/combobox_empty-list.vue
<dt-tooltip
:message="nextMonthLabel"
:fallback-placements="['top-end', 'auto']"
:message="$t('NEXT_MONTH')"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we prefix this with component name DATEPICKER_NEXT_MONTH? or is it not necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks for pointing out that, we should follow the same rules as our constants.

@braddialpad
Copy link
Copy Markdown
Contributor

Some error happening in percy, guessing maybe that won't be fixed until the migration is fully complete?

Signed-off-by: Julio Ortega <julio.ortega@dialpad.com>
@github-actions
Copy link
Copy Markdown
Contributor

✔️ Deploy previews ready!
😎 Dialtone preview: https://dialtone.dialpad.com/deploy-previews/pr-724/
😎 Dialtone-vue 2 preview: https://dialtone.dialpad.com/vue/deploy-previews/pr-724/
😎 Dialtone-vue 3 the preview: https://dialtone.dialpad.com/vue3/deploy-previews/pr-724/

@juliodialpad
Copy link
Copy Markdown
Contributor Author

Some error happening in percy, guessing maybe that won't be fixed until the migration is fully complete?

It was failing on the base i18n/brase-branch branch, it is working correctly now, that's why there was a difference.

@juliodialpad
Copy link
Copy Markdown
Contributor Author

Merging this one, It's getting difficult to continue working on localization without this changes in.

@juliodialpad Julio Ortega (juliodialpad) merged commit 1a01493 into i18n/base-branch Apr 28, 2025
11 checks passed
@juliodialpad Julio Ortega (juliodialpad) deleted the i18n/refactor-components branch April 28, 2025 20:35
@braddialpad
Copy link
Copy Markdown
Contributor

It's good, thanks!

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

Labels

visual-test-ready Add this tag when the PR is ready for visual test, to trigger GHA visual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants