mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 02:07:51 +00:00
21 lines
334 B
JavaScript
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,
|
|
};
|