How to use the @botonic/core/lib/i18n.default.setLocale function in @botonic/core

To help you get started, we’ve selected a few @botonic/core 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 hubtype / botonic / packages / botonic-react / src / index.ts View on Github external
export function setLocale(req: any, locale: string) {
  req.context.__locale = locale
  i18n.setLocale(locale)
}
export { BotonicWebview } from './webview'