@dslab/ra-language-italian
v1.0.2
Published
[![Version](https://img.shields.io/npm/v/@dslab/ra-italian-language.svg)](https://www.npmjs.com/package/@dslab/ra-italian-language) [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/smartcommunitylab/rea
Downloads
27
Readme
React-Admin Italian language
Italian language i18n for React-Admin
Install
yarn install @dslab/ra-italian-language
Usage
Import the language file and create a polyglotI18nProvider.
import polyglotI18nProvider from 'ra-i18n-polyglot';
import englishMessages from 'ra-language-english';
import italianMessages from '@dslab/ra-language-italian';
export const i18nProvider = polyglotI18nProvider(
locale => (locale === 'it' ? italianMessages : englishMessages),
'en', // default locale
[
{ locale: 'en', name: 'English' },
{ locale: 'it', name: 'Italiano' },
]
);
To personalize or integrate the translation extend as needed.
import italianMessages from '@dslab/ra-language-italian';
const messages = {
...italianMessages,
custom: {
example: 'Esempio',
},
};
export default messages;
Author
SmartCommunityLab
- Website: http://www.smartcommunitylab.it/
- Github: @smartcommunitylab
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2023 SmartCommunityLab. This project is MIT licensed.