4.11.3 • Published 2 years ago
@blackbox-vision/ra-language-spanish v4.11.3
RA Language Spanish 
Spanish translations for React Admin.
Install
You can install this library via NPM or YARN.
NPM
npm i @blackbox-vision/ra-language-spanishYARN
yarn add @blackbox-vision/ra-language-spanishUse case
You need to have spanish translations in your React Admin app.
Usage
The usage is really simple:
- Define your i18nProvider:
// i18nProvider.ts
import polyglotI18nProvider from "ra-i18n-polyglot";
import spanishMessages from "@blackbox-vision/ra-language-spanish";
const messages = {
  es: spanishMessages,
};
export const i18nProvider = polyglotI18nProvider((locale) => messages[locale]);- Pass your custom i18nProviderto yourReact Admininstance:
// App.tsx
import React from "react";
import { Admin, Resource } from "react-admin";
import jsonServerProvider from "ra-data-json-server";
export const App = () => {
  const dataProvider = jsonServerProvider(
    "https://jsonplaceholder.typicode.com"
  );
  return (
    <Admin locale="es" i18nProvider={i18nProvider} dataProvider={dataProvider}>
      <Resource name="users" list={ListGuesser} />
    </Admin>
  );
};
App.displayName = "App";Issues
Please, open an issue following one of the issues templates. We will do our best to fix them.
Contributing
If you want to contribute to this project see contributing for more information.
License
Distributed under the MIT license. See LICENSE for more information.
4.11.3
2 years ago
4.11.2
2 years ago
4.11.1
2 years ago
4.4.0
3 years ago
3.19.10
4 years ago
3.16.2
4 years ago
3.16.1
4 years ago
3.12.2
5 years ago
3.12.1
5 years ago
3.11.2
5 years ago
3.8.6
5 years ago
3.8.5
5 years ago
3.8.4
5 years ago
3.5.0
5 years ago
3.4.0
6 years ago
3.2.0
6 years ago
3.1.0
6 years ago
3.0.0-beta.2
6 years ago
3.0.0
6 years ago
3.0.0-beta.1
6 years ago
3.0.0-beta.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago