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