Closed pcg92 closed 5 years ago
it's a good recommendation, I will think about it!
Im trying to integrate this in the boilerplate https://github.com/akameco/babel-plugin-react-intl-auto/tree/master/examples/with-typescript
But Im getting problems running the script: UnhandledPromiseRejectionWarning: SyntaxError ... PageLoading/index.scss.d.ts: Unexpected reserved word 'interface'
Edit: I have tried this: https://github.com/bang88/typescript-react-intl/issues/19 And its working nice
@pcegarra feat/intl I have created a new branch for this, can you make a pr?
Done, check the pr https://github.com/YDJ-FE/ts-react-webpack/pull/25/commits/27fef64ffabbb166bde221a3df5bfd08b956cceb
To try it just change the state to 'es' in the LanguageProvider component, we probably need to create a store to handle this
@pcegarra https://github.com/YDJ-FE/ts-react-webpack/pull/25#issuecomment-489497322
I'm getting some test result before merge
Nice, what about https://ant.design/components/locale-provider/?
@pcegarra yeah, I'm using LocaleProvider
in my company project.
Do you plan to add it in feat/react-intl-universal?
@pcegarra yes
I think that any good starter requires i18n