How to use the @webiny/api-i18n/plugins function in @webiny/api-i18n

To help you get started, we’ve selected a few @webiny/api-i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / examples / functions / code / api-service-i18n / src / handler.js View on Github external
export const handler = async (event: Object, context: Object) => {
    if (!apolloHandler) {
        const config = await createConfig();
        const plugins = new PluginsContainer([
            /*securityPlugins,*/ i18nPlugins(config)
        ]);
        const { handler } = await createHandler({ plugins, config });
        apolloHandler = handler;
    }

    return apolloHandler(event, context);
};

@webiny/api-i18n

The API for the Webiny I18N app.

MIT
Latest version published 13 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages