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

Add mixin to dedup definition of translateString [Fixes #979] #1095

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

shad-k
Copy link
Contributor

@shad-k shad-k commented Jun 6, 2020

Description

Created a mixin which defines translateString to dedup the definition for the same in BuildPage, HomePage, AlgoliaSearchBox, NavLinks components and enables easy sharing of the method.

Also enables to remove imports of the translate method as the above-defined method from the mixin can be used for the same.

Related Issue

Fixes #979

#979

Screenshots (if appropriate):

Copy link
Member

@samajammin samajammin left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you for this contribution!

@samajammin samajammin merged commit 18dd75e into ethereum:dev Jun 8, 2020
@samajammin
Copy link
Member

@all-contributors please add @shad-k for code.

@allcontributors
Copy link
Contributor

@samajammin

I've put up a pull request to add @shad-k! 🎉

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.

Share translateString helper method across components
2 participants