UNPKG

strapi-plugin-i18n

Version:

This plugin enables to create, to read and to update content in different languages, both from the Admin Panel and from the API

21 lines (16 loc) 334 B
'use strict'; const { prop } = require('lodash/fp'); const getCoreStore = () => 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, };