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

feat: ✨ add custom localization #997

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mariohamann
Copy link
Contributor

@mariohamann mariohamann commented Apr 29, 2024

Description:

This branch offers the option for every single element, to be translated on an instance level. Check the tests for what it does.

Definition of Reviewable:

  • Documentation is created/updated
  • Migration Guide is created/updated
  • E2E tests (features, a11y, bug fixes) are created/updated
  • Stories (features, a11y) are created/updated
  • relevant tickets are linked

@mariohamann mariohamann changed the title Feat/add-custom-localization feat: ✨ add custom localization Apr 29, 2024

it('should apply custom localization from data-attribute', async () => {
const select = await fixture<SdSelect>(html`
<sd-select lang="de" value="option-1" clearable data-localization='{"clearEntry": "Reset!!"}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<sd-select lang="de" value="option-1" clearable data-localization='{"clearEntry": "Reset!!"}'
<sd-select lang="de" value="option-1" clearable data-custom-localization='{"clearEntry": "Reset!!"}'

Copy link
Contributor

Choose a reason for hiding this comment

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

as agreed in the refinement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants