1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/pages/first-time-flow/metametrics-opt-in
Dan J Miller 92e6338b78
Translation helper: substitute react components and component wrapping substrings (#8129)
* Update i18n-helper to allow substitutions of react components and wrapping of translation substrings

* Simplify code in i18n-helper.js related to substitutions, including react substitutions.

* Remove wrapper support from i18n in favour of using translations in substitutions.

* Fix i18n-helper substitution logic: ensure correct index of substitution is applied

* Throw error if there are not enough substitutions for a translation phrase

* Adds unit tests for now i18n-helper substitution functionality

* Fix grammar, react element line spacing and test layout+readability in i18n-helper.test.js
2020-03-11 12:30:05 -02:30
..
tests Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30
index.scss Remove faux <header> elements (#8131) 2020-02-27 18:00:20 -04:00
metametrics-opt-in.component.js Translation helper: substitute react components and component wrapping substrings (#8129) 2020-03-11 12:30:05 -02:30
metametrics-opt-in.container.js Enable arrow-parens ESLint rule 2020-02-15 17:04:21 -03:30