mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 10:18:28 +00:00
13 lines
208 B
JavaScript
13 lines
208 B
JavaScript
'use strict';
|
|
|
|
const { prop } = require('lodash/fp');
|
|
|
|
// retrieve a local service
|
|
const getService = name => {
|
|
return prop(`i18n.services.${name}`, strapi.plugins);
|
|
};
|
|
|
|
module.exports = {
|
|
getService,
|
|
};
|