Skip to content

Instantly share code, notes, and snippets.

@farism
Created October 3, 2019 18:14
Show Gist options
  • Save farism/75a513affb4c1494e70b0c4b40c66265 to your computer and use it in GitHub Desktop.
Save farism/75a513affb4c1494e70b0c4b40c66265 to your computer and use it in GitHub Desktop.
// 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