appbaseio/reactivesearch

Support translations for component's static-text

Aperta

#173 aperta il 3 gen 2018

 (2 commenti) (3 reazioni) (0 assegnatari)JavaScript (487 fork)batch import
enhancementhacktoberfest

Metriche repository

Star
 (4835 stelle)
Metriche merge PR
 (Merge medio 3g 7h) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor