"Add filter" in Filters component button text not overridable
Closed this issue · 3 comments
Summary
I was unable to find a way to override the "Add filters +" button text in the Polaris component.
Could this be added as a prop or is there some workaround that I cannot find?
Expected behavior
This should be an adjustable value
Actual behavior
Wrap animated gifs/videos in a details tag:
Steps to reproduce
Link to sandbox
1.
2.
3.
Are you using React components?
Yes
Polaris version number
No response
Browser
No response
Device
No response
Hey @csm-genov! 👋🏽 Can you share context on why you need to customize this button text? We're making changes to this component, so any color you can add about your use case would be helpful to understand the current gap.
Hi @chloerice ,
In our specific case, it is required due to the fact that we offer admin side translation to our customers and we would like this text to be translated in the supported languages along with the rest of the text in our app.
Hi @chloerice , In our specific case, it is required due to the fact that we offer admin side translation to our customers and we would like this text to be translated in the supported languages along with the rest of the text in our app.
Ahh okay! Polaris components are already localized, you can dynamically ensure the correct translations are passed into the Polaris AppProvider
using shopify/react-i18n
.