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

fix: (Platform) i18n remove select, plurals #5109

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

platon-rov
Copy link
Contributor

@platon-rov platon-rov commented Apr 12, 2021

Please provide a link to the associated issue.

Closes #5098.

Please provide a brief summary of this pull request.

Code of the Platform components refactored to get rid of plural & select features of the i18n. The wiki page about internationalization updated.

As i18n isn't an Angular directive - we're highly limited in next things:

  • Cannot bind i18n id - so we cannot implement & use helper component.
  • Cannot set i18n markers inside of the loops, components code (there exist hacky solution but it isn't applicable as translations extracting isn't working).

Please check whether the PR fulfills the following requirements

Documentation checklist:

@netlify
Copy link

netlify bot commented Apr 12, 2021

Deploy preview for fundamental-ngx ready!

Built with commit eafa9dc

https://deploy-preview-5109--fundamental-ngx.netlify.app

@SAP SAP deleted a comment from netlify bot Apr 12, 2021
@platon-rov platon-rov marked this pull request as ready for review April 13, 2021 07:39
Copy link
Contributor

@dimamarksman dimamarksman left a comment

Choose a reason for hiding this comment

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

LGTM
Just one comment

@platon-rov platon-rov force-pushed the remove-i18n-select-plurals branch from 9bff3e7 to c25c08e Compare April 13, 2021 14:04
@platon-rov platon-rov self-assigned this Apr 13, 2021
@platon-rov platon-rov added the platform platform label Apr 13, 2021
@platon-rov platon-rov force-pushed the remove-i18n-select-plurals branch from c25c08e to bdb1832 Compare April 14, 2021 11:49
@platon-rov platon-rov requested review from a team April 14, 2021 13:14
@artolshansky artolshansky added the ready for qa Testing should be started for the PR label Apr 14, 2021
BREAKING CHANGE: due to needs of SAP's projects was removed support of select and plurals of i18n
It followed with changes in i18n markers in the next components:

* ApprovalFlow Platform Component
* Form Platform Component
* Table Platform Component
* UploadCollection Platform Component
* ValueHelpDialog Platform Component

If you're using internationalization with any of these components -
you need to re-extract translations (`ng extract-i18n`) and update corresponding strings.
@platon-rov platon-rov force-pushed the remove-i18n-select-plurals branch from bdb1832 to eafa9dc Compare April 15, 2021 09:21
@platon-rov platon-rov added ready for qa Testing should be started for the PR QA Approved and removed ready for qa Testing should be started for the PR labels Apr 15, 2021
@platon-rov platon-rov merged commit 035f96a into main Apr 16, 2021
@platon-rov platon-rov deleted the remove-i18n-select-plurals branch April 16, 2021 12:50
DeepakSap14 pushed a commit that referenced this pull request Apr 26, 2021
* fix: (Platform) i18n remove select, plurals

BREAKING CHANGE: due to the needs of SAP projects was removed support of select and plurals of i18n
It followed with changes in i18n markers in the next components:

* ApprovalFlow Platform Component
* Form Platform Component
* Table Platform Component
* UploadCollection Platform Component
* ValueHelpDialog Platform Component

If you're using internationalization with any of these components -
you need to re-extract translations (`ng extract-i18n`) and update corresponding strings.

* docs: (Platform) readme update with info about i18n

* fix: (Platform) upload collection components improve translations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove i18n "select" and "plural" usage in flavour of something more straight forward
4 participants