How to use the piral-translate.createLocaleApi function in piral-translate

To help you get started, we’ve selected a few piral-translate 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 smapiot / piral / src / packages / piral-ext / src / create.ts View on Github external
export function createStandardApi(settings: PiralExtSettings = {}) {
  return [
    createLocaleApi(settings.locale),
    createDashboardApi(settings.dashboard),
    createMenuApi(settings.menu),
    createNotificationsApi(settings.notifications),
    createModalsApi(settings.modals),
    createFeedsApi(settings.feeds),
  ];
}

piral-translate

Plugin for providing translated messages in Piral.

MIT
Latest version published 1 day ago

Package Health Score

81 / 100
Full package analysis

Popular piral-translate functions