2021-02-09 15:49:42 +01:00

21 lines
334 B
JavaScript

'use strict';
const { prop } = require('lodash/fp');
const getCoreStore = () =>
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,
};