Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Takanori Oishi authored Nov 20, 2019
1 parent 61d0469 commit bbe13ea
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import japaneseMessages from '@bicstone/ra-language-japanese';
import polyglotI18nProvider from 'ra-i18n-polyglot';

const messages = {
'ja': japaneseMessages,
ja: japaneseMessages
};
const i18nProvider = polyglotI18nProvider(locale => messages[locale]);

Expand All @@ -36,7 +36,7 @@ const i18nProvider = polyglotI18nProvider(locale => messages[locale]);
import japaneseMessages from '@bicstone/ra-language-japanese';

const messages = {
'ja': japaneseMessages,
ja: japaneseMessages
};
const i18nProvider = locale => messages[locale];

Expand All @@ -45,6 +45,30 @@ const i18nProvider = locale => messages[locale];
</Admin>
```

### Override

```jsx
const messages = {
ja: {
...messageJapanese,
ra: {
notification: {
http_error: "サーバーエラーが発生しました"
}
},
resources:{
users: {
name: "ユーザー",
fields: {
email: "メールアドレス",
password: "パスワード"
}
}
}
}
};
```

## License

This translation is licensed under the MIT License.

0 comments on commit bbe13ea

Please # to comment.