https://github.com/tomwayson/smashing-react-i18n
testing out react-intl against app requirements
https://github.com/tomwayson/smashing-react-i18n
Last synced: about 1 year ago
JSON representation
testing out react-intl against app requirements
- Host: GitHub
- URL: https://github.com/tomwayson/smashing-react-i18n
- Owner: tomwayson
- License: mit
- Created: 2018-09-17T05:57:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T16:01:40.000Z (over 7 years ago)
- Last Synced: 2025-02-11T16:24:03.123Z (over 1 year ago)
- Language: JavaScript
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This fork is for testing out react-intl against requirements for a specific app.
In addition to the features described below, this repo demonstrates how to:
- [x] detect the user's locale on the client (i.e. if not passed in a cookie from the server)
- [x] test components w/ [jest](https://jestjs.io/)/[enzyme](https://github.com/airbnb/enzyme)
- [x] lazy load components and their messages at runtime
- [ ] TODO: run the app w/o server-rendering
Everything below comes from the upstream repo: https://github.com/yury-dymov/smashing-react-i18n
# Internationalizing React App Boilerplate For SmashingMagazine
This is a boilerplate template for the [Internationalizing React Apps article](https://www.smashingmagazine.com/2017/01/internationalizing-react-apps/)
You may also check for the [solution branch](https://github.com/yury-dymov/smashing-react-i18n/tree/solution)
# Under The Hood
* Universal / Isomorphic React App
* Babel
* webpack, webpack-dev-server, and configuration
* express
# Tutorial Steps
1. Implement user's locale detection with `accept-language` library
2. Translate messages with `react-intl`
3. Support locale-specific content like numbers and dates
# License
MIT (c) Yury Dymov