bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
18 lines (17 loc) • 631 B
JavaScript
import { ref } from "vue";
import { r as rtlRegistryKey } from "../../../keys-BLeKMItg.mjs";
const rtlPlugin = {
install(app, options) {
const rtlDefault = false;
const localeDefault = void 0;
const rtlInitial = typeof options?.rtl === "boolean" ? rtlDefault : options?.rtl?.rtlInitial ?? rtlDefault;
const localeInitial = typeof options?.rtl === "boolean" ? localeDefault : options?.rtl?.localeInitial ?? localeDefault;
const isRtl = ref(rtlInitial);
const locale = ref(localeInitial);
app.provide(rtlRegistryKey, { isRtl, locale });
}
};
export {
rtlPlugin
};
//# sourceMappingURL=index.mjs.map