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(icons): move i18ns to icons package & add acc texts #2751

Merged
merged 2 commits into from
Jan 29, 2021

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Jan 29, 2021

Changes:

  • The Icon component now loads message bundles from the relevant icon package
  • The icons i18n texts are removed from the main package and added to the icons package
  • Accessibility texts are added for more icons (about 60), for each that we had key-value entry in the message bundle (prior to this change only 4 used to have such)

Related to: #2739

@ilhan007 ilhan007 changed the title chore(icons): move i18ns to icons package and add acc texts chore(icons): move i18ns to icons package & add acc texts Jan 29, 2021
@ilhan007 ilhan007 requested a review from vladitasev January 29, 2021 09:21
@@ -181,7 +181,7 @@ class Icon extends UI5Element {

static async onDefine() {
this.createGlobalStyle(); // hide all icons until the first icon has rendered (and added the Icon.css)
await fetchI18nBundle("@ui5/webcomponents");
await fetchI18nBundle("@ui5/webcomponents-icons");
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is a good first step, but please don't close the issue as the ui5-icon web component is still hardcoding where the message bundles are coming from.

For a generic solution, we also need to think of a mapping from icon namespace to icon package.

For example, the icon tnt/workflow-editor should look up texts from @ui5/webcomponents/icons-tnt.

I'll add this to the issue.

@ilhan007 ilhan007 merged commit 9129f45 into master Jan 29, 2021
@ilhan007 ilhan007 deleted the ffox-icons-i18n branch January 29, 2021 11:41
alexandar-mitsev pushed a commit to alexandar-mitsev/ui5-webcomponents that referenced this pull request Feb 1, 2021
The Icon component now loads message bundles from the relevant icon package
The icons i18n texts are removed from the main package and added to the icons package
Accessibility texts are added for more icons (about 60), for each that we had key-value entry in the message bundle (prior to this change only 4 used to have such)
Related to: SAP#2739
NHristov-sap pushed a commit to NHristov-sap/ui5-webcomponents that referenced this pull request Feb 9, 2021
The Icon component now loads message bundles from the relevant icon package
The icons i18n texts are removed from the main package and added to the icons package
Accessibility texts are added for more icons (about 60), for each that we had key-value entry in the message bundle (prior to this change only 4 used to have such)
Related to: SAP#2739
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