13 lines
208 B
JavaScript
Raw Normal View History

2021-01-26 10:56:33 +01:00
'use strict';
const { prop } = require('lodash/fp');
// retrieve a local service
const getService = name => {
return prop(`i18n.services.${name}`, strapi.plugins);
};
module.exports = {
getService,
};