mirror of
https://github.com/strapi/strapi.git
synced 2025-07-21 07:57:45 +00:00
20 lines
296 B
JavaScript
20 lines
296 B
JavaScript
'use strict';
|
|
|
|
const getCoreStore = () => {
|
|
return strapi.store({
|
|
environment: '',
|
|
type: 'plugin',
|
|
name: 'i18n',
|
|
});
|
|
};
|
|
|
|
// retrieve a local service
|
|
const getService = name => {
|
|
return strapi.plugin('i18n').service(name);
|
|
};
|
|
|
|
module.exports = {
|
|
getService,
|
|
getCoreStore,
|
|
};
|