Skip to content

Commit 866fc72

Browse files
committed
docs: updated i18n.md
1 parent 80addaa commit 866fc72

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ I prefer to keep this setup trim but feel free to sprinkle some more pixie dust
2525

2626
## Documentation
2727

28-
[Style Guide - JS Standard](docs/js-standard.md)
29-
[Internationalization (i18n)](docs/i18n.md)
30-
[Docker files](docs/docker.md)
28+
* [Style Guide - JS Standard](docs/js-standard.md)
29+
* [Internationalization (i18n)](docs/i18n.md)
30+
* [Docker files](docs/docker.md)
3131

3232
## Questions & Issues
3333

docs/i18n.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
React-Setup uses [React-Intl](https://github.com/yahoo/react-intl) for internationalization.
44

5-
Each component has a 'messages.js' file which contains i18n strings to use in the component.
5+
Each component has a `messages.js` file which contains i18n strings to use in the component.
66

7-
Running '$ npm run build-msg' will invoke babel-plugin-react-intl to go through all 'messages.js' files and generate 'messages.json' files under /dist.
7+
Running `$ npm run build-msg` will invoke babel-plugin-react-intl to go through all `messages.js` files and generate `messages.json` files under `/dist`.
88

9-
/server/libs/i18n.js has a helper function called 'getLocaleMessages' which returns an object with all translated strings from 'messages.json' files. This object then gets injected to the index page (see: index-page.js) as a global variable so components can use them at runtime.
9+
`/server/libs/i18n.js` has a helper function called `getLocaleMessages` which returns an object with all translated strings from `messages.json` files.
10+
This object then gets injected to the index page (see: `index-page.js`) as a global variable so components can use them at runtime.

0 commit comments

Comments
 (0)