UNPKG

devkit-base-components

Version:

Devkit Base Components is a Vue plugin offering a collection of reusable, headless components designed to streamline your Vue.js development workflow. Built for flexibility and maintainability, this library gives you complete control over styling and beha

18 lines (17 loc) 477 B
export type LocaleValues = { dir: 'ltr' | 'rtl'; language: 'en' | 'ar'; }; export type I18nInstnce = { locale: { value: string; }; }; export type ToggleLocaleParams = { i18n: I18nInstnce; cacheHelper: { setLocale: (language: string) => Promise<void>; }; }; export declare const getTargetValues: (currentLocale: string) => LocaleValues; export declare const toggleLocale: ({ i18n, cacheHelper }: ToggleLocaleParams) => Promise<void>;