Skip to content

Commit 8004cd3

Browse files
committed
feat(slim/i18n): add base to clone
1 parent 8e2c7f5 commit 8004cd3

File tree

1 file changed

+6
-0
lines changed
  • recipes/slim/snippets/sources/i18n

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { useIntl, FormattedMessage } from 'react-intl'
2+
3+
export { default as withTranslation } from './withI18n'
4+
5+
export const useI18n = useIntl
6+
export const I18nMsg = FormattedMessage

0 commit comments

Comments
 (0)