appbaseio/reactivesearch
Support translations for component's static-text
Open
#173 opened on Jan 3, 2018
enhancementhacktoberfest
Repository metrics
- Stars
- (4,835 stars)
- PR merge metrics
- (Avg merge 3d 7h) (1 merged PR in 30d)
Description
Issue Type:
Enhancement
Description:
Static text displayed by the components should have i18n support.
Example spec can be:
<Component
translation:{{
"textRef": "translated value",
...
}}
/>
The spec format is similar to how we support innerClass prop. To improve consistency, we can perhaps use the same key values for the possible translatable text values as we use for the innerClass prop.