2021-06-28 22:37:19 +02:00

22 lines
346 B
JavaScript

'use strict';
const { prop } = require('lodash/fp');
const getCoreStore = () => {
return strapi.store({
environment: '',
type: 'plugin',
name: 'i18n',
});
};
// retrieve a local service
const getService = name => {
return prop(`i18n.services.${name}`, strapi.plugins);
};
module.exports = {
getService,
getCoreStore,
};