mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 11:17:42 +00:00
26 lines
469 B
JavaScript
26 lines
469 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,
|
|
};
|