Socket
Socket
Sign inDemoInstall

@blackbox-vision/ra-language-spanish

Package Overview
Dependencies
50
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blackbox-vision/ra-language-spanish

Spanish messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services


Version published
Weekly downloads
325
decreased by-19.95%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

RA Language Spanish License: MIT

Spanish translations for React Admin.

Install

You can install this library via NPM or YARN.

NPM

npm i @blackbox-vision/ra-language-spanish

YARN

yarn add @blackbox-vision/ra-language-spanish

Use case

You need to have spanish translations in your React Admin app.

Usage

The usage is really simple:

  1. 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]);
  1. Pass your custom i18nProvider to your React Admin instance:
// 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.

FAQs

Last updated on 29 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc