mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +00:00
22 lines
346 B
JavaScript
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,
|
|
};
|