Skip to content

Commit 220d338

Browse files
Merge pull request #1 from thchia/initialize-ignore-translate
Add ingoreTranslateChildren to options.
2 parents 24a3fe5 + d7ec4f9 commit 220d338

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/index.html.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,12 @@ also provide initial translation data, as well as some additional options.
927927

928928
| Name | Type | Default | Description |
929929
| -------------------- | -------- | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
930-
| renderToStaticMarkup | function | boolean | If using react in browser pass in react-dom/server's [renderToStaticMarkup](https://reactjs.org/docs/react-dom-server.html), and `false` if using React Native. |
931-
| renderInnerHtml | boolean | false | Controls whether HTML in your translations will be rendered or returned as a plain string. |
932-
| onMissingTranslation | function | returns default missing message | See [Handle missing translations](/#handle-missing-translations) for details. |
933-
| defaultLanguage | string | languages[0] | The language code for the language you'd like to set as the default. |
930+
| renderToStaticMarkup | function | boolean | If using react in browser pass in react-dom/server's [renderToStaticMarkup](https://reactjs.org/docs/react-dom-server.html), and `false` if using React Native. |
931+
| renderInnerHtml | boolean | false | Controls whether HTML in your translations will be rendered or returned as a plain string. |
932+
| onMissingTranslation | function | returns default missing message | See [Handle missing translations](/#handle-missing-translations) for details. |
933+
| defaultLanguage | string | languages[0] | The language code for the language you'd like to set as the default. |
934+
| ignoreTranslateChildren | boolean | false | If `true` default translations passed as `children` to `Translate` will be ignored, and not automatically added to your translation data. Note that you can override this behaviour on a per-component instance by passing `options.ignoreTranslateChildren` as a prop to [Translate](/#translate-2).
935+
|
934936

935937
<aside class="success">
936938
<a href="#why-do-i-need-to-pass-rendertostaticmarkup-to-initialize">Why do I need to pass <code>renderToStaticMarkup</code> to initialize?</a>

0 commit comments

Comments
 (0)