Skip to content

itaibaruch/ra-language-hebrew-il

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hebrew Translations for React-Admin

Hebrew translations for React-Admin, the frontend framework for building admin applications on top of REST/GraphQL services.

react-admin-demo

TODO

update to latest version https://github.com/marmelab/react-admin/blob/master/packages/ra-language-english/src/index.ts

Installation

npm install --save ra-language-hebrew-il

Usage

import HebrewMessages from 'ra-language-hebrew-il';

const messages = {
  he: HebrewMessages,
};

const i18nProvider = (locale) => messages[locale];

<Admin locale='he' i18nProvider={i18nProvider}>
  ...
</Admin>;

RTL

Material UI is already supprting RTL, so we can add its support to react admin using these 2 steps:

  1. Change dir property to rtl in your root elements (like body). You can also connect this property to redux.
  2. Define a theme and set direction to rtl.
import { createMuiTheme } from '@material-ui/core/styles';

const theme = createMuiTheme({
  direction: 'rtl',
});

const App = () => <Admin theme={theme}>// ...</Admin>;

public/index.html

<body>
  <noscript> You need to enable JavaScript to run this app. </noscript>
  <div id="root" dir="rtl"></div>
</body>

License

This translation is licensed under the MIT License.

About

Hebrew translations for react-admin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 66.5%
  • TypeScript 33.5%