appbaseio/reactivesearch

Support translations for component's static-text

Offen

#173 geöffnet am 03.01.2018

 (2 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (487 Forks)batch import
enhancementhacktoberfest

Repository-Metriken

Stars
 (4.835 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 3T 7h) (1 gemergte PR in 30 T)

Beschreibung

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.

Contributor Guide