Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix for issue taas-apis/issues/477 #30

Merged
merged 6 commits into from
Aug 13, 2021
Merged

Conversation

nqviet
Copy link
Contributor

@nqviet nqviet commented Aug 12, 2021

No description provided.

Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

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

@nqviet at the moment there is a special code added for plural text textIsPlural specially for one notification type: https://github.com/topcoder-platform/micro-frontends-navbar-app/pull/30/files#diff-3a94f8910b31b990d77495d72abc950ee1836a0f0fa72a467bba78dddc2efd14R582-R591

Instead of this, could we just use handlebars for this? For example see several examples here handlebars-lang/handlebars.js#249.

We would need to create a helper for plural words here https://github.com/topcoder-platform/micro-frontends-navbar-app/blob/dev/src/utils/notifications.js#L63-L64 using one of the examples from handlebars-lang/handlebars.js#249.

Other than this everything works great.

@nqviet
Copy link
Contributor Author

nqviet commented Aug 13, 2021

@maxceem The PR is ready

Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

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

Thank you @nqviet. Works great as per local testing, passing it for QA.

@maxceem maxceem merged commit 761146b into topcoder-archive:dev Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants