Created
October 3, 2019 18:14
-
-
Save farism/75a513affb4c1494e70b0c4b40c66265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core.yml | |
- core | |
- tieredSelect | |
- label1 | |
- label2 | |
- label3 | |
- label4 | |
// bidding.yml | |
- bidding | |
- costCodes | |
- label1 | |
- label2 | |
- label3 | |
- label4 | |
<I18nProvider i18n={window.i18n}> | |
<AppCode> | |
<I18nProvider i18n={{ core: { tieredSelect: { label: some.object.value}}}}> | |
<TieredSelect /> | |
<I18nProvider i18n={window.i18n}> | |
<TieredSelect i18nScope="bidding.costcodes" /> | |
<TieredSelect /> | |
<TieredSelect /> | |
</AppCode> | |
<I18nProvider i18n={window.i18n}> | |
//tieredselect.tsx | |
I18n.t(`${i18nscope = 'core.tieredSelect'}.label1`) | |
I18n.t(`${i18nscope}.label2`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment