Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Typescript - adding missing translations #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
*.lock
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# German Translations for react-admin

German translations for [react-admin](https://github.com/marmelab/react-admin), the frontend framework for building admin applications on top of REST services.
German translations 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

Expand All @@ -11,16 +12,18 @@ npm install --save ra-language-german

## Usage

```js
import germanMessages from 'ra-language-german';
```jsx
import { Admin } from 'react-admin';
import englishMessages from 'ra-language-english';
import polyglotI18nProvider from 'ra-i18n-polyglot';

const messages = {
'de': germanMessages,
'en': englishMessages,
};
const i18nProvider = locale => messages[locale];
const i18nProvider = polyglotI18nProvider(locale => messages[locale]);

<Admin locale="de" i18nProvider={i18nProvider}>
...
<Admin locale="en" i18nProvider={i18nProvider}>
...
</Admin>
```

Expand Down
4 changes: 4 additions & 0 deletions dist/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { TranslationMessages } from 'ra-core';
declare const germanMessages: TranslationMessages;
export default germanMessages;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/cjs/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

179 changes: 179 additions & 0 deletions dist/cjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { TranslationMessages } from 'ra-core';
declare const germanMessages: TranslationMessages;
export default germanMessages;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/esm/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 54 additions & 5 deletions index.js → dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading