mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 05:39:36 +00:00
25 lines
464 B
JavaScript
25 lines
464 B
JavaScript
/**
|
|
* i18n.js
|
|
*
|
|
* This will setup the i18n language files and locale data for your plugin.
|
|
*
|
|
*/
|
|
|
|
import { defineMessages } from 'react-intl';
|
|
|
|
import enTranslationMessages from './translations/en.json';
|
|
import frTranslationMessages from './translations/fr.json';
|
|
|
|
const translationMessages = {
|
|
en: enTranslationMessages,
|
|
fr: frTranslationMessages,
|
|
};
|
|
|
|
const define = messages => {
|
|
defineMessages(messages);
|
|
};
|
|
|
|
|
|
|
|
export { translationMessages, define };
|