Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ra-language-polish
Advanced tools
Polish messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services
Polish messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services.
npm install ra-language-polish
yarn add ra-language-polish
As per react-admin documentation
If you want to add or update translations, you'll have to provide your own i18nProvider
.
Just like for the dataProvider
and the authProvider
, you can inject the i18nProvider
to your react-admin app using the <Admin i18nProvider>
prop:
import { i18nProvider } from './i18nProvider';
const App = () => (
<Admin
dataProvider={dataProvider}
i18nProvider={i18nProvider}
>
{/* ... */}
</Admin>
);
In most cases, the i18nProvider
will contain translations for both react-admin keys and your own keys.
If you want to display the interface in another language than English by default, you have to set up an i18nProvider
that provides the translation for all the keys used by react-admin. Fortunately, the react-admin community has already written translations for more than 40 locales. Check the list of available locales to find the locale you're looking for.
For instance, to change the interface to Polish, install the ra-language-polish
npm package, then use it in a custom i18nProvider
, as follows:
// in src/i18nProvider.js
import polyglotI18nProvider from 'ra-i18n-polyglot';
import pl from 'ra-language-polish';
export const i18nProvider = polyglotI18nProvider(() => pl, 'pl');
Tip: The ra-i18n-polyglot
package allows to build an i18nProvider
based on translation messages. It relies on the Polyglot.js library.
This translation is licensed under the MIT License.
FAQs
Polish messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services
The npm package ra-language-polish receives a total of 183 weekly downloads. As such, ra-language-polish popularity was classified as not popular.
We found that ra-language-polish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.