Skip to content

Commit

Permalink
Add translation file example
Browse files Browse the repository at this point in the history
  • Loading branch information
lnmunhoz committed Mar 31, 2020
1 parent 83d9244 commit 9cf4967
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Keep in mind this project is experimental, It assumes that you have a very speci
yarn add -D i18n-codegen
```

### Assumptions

In this early stage, this package assume you have your translations in a JSON file using nested format.

#### Example `en_US.json`

```json
{
"home": {
"title": "Title",
"subtitle": "Subtitle"
}
}
```

### Create a config file `i18nrc.js` in the root of the project.

```js
Expand Down

0 comments on commit 9cf4967

Please sign in to comment.