Gazebo_simulation-Frontend/node_modules/ra-language-english/README.md

32 lines
810 B
Markdown
Raw Permalink Normal View History

2020-12-21 11:29:31 -04:00
# English Messages for React-Admin
English messages for [react-admin](https://github.com/marmelab/react-admin), the frontend framework for building admin applications on top of REST/GraphQL services.
[![react-admin-demo](https://marmelab.com/react-admin/img/react-admin-demo-still.png)](https://vimeo.com/268958716)
## Installation
```sh
npm install --save ra-language-english
```
## Usage
```js
import englishMessages from 'ra-language-english';
import polyglotI18nProvider from 'ra-i18n-polyglot';
const messages = {
'en': englishMessages,
};
const i18nProvider = polyglotI18nProvider(locale => messages[locale]);
<Admin locale="en" i18nProvider={i18nProvider}>
...
</Admin>
```
## License
This translation is licensed under the MIT License, and sponsored by [marmelab](http://marmelab.com).