appbaseio/reactivesearch

Support translations for component's static-text

开放

#173 创建于 2018年1月3日

 (2 条评论) (3 个反应) (0 位负责人)JavaScript (487 个派生)batch import
enhancementhacktoberfest

仓库指标

星标
 (4,835 个星标)
PR 合并指标
 (平均合并 3天 7小时) (30 天内合并 1 个 PR)

描述

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.

贡献者指南