Skip to content

Commit

Permalink
fixed vueless init file
Browse files Browse the repository at this point in the history
  • Loading branch information
hridniev committed Apr 28, 2024
1 parent f5ce96c commit 56ea5c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions index.js

This file was deleted.

16 changes: 16 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { createLocale, LocaleSymbol } from "./composable.locale";

export { default as createVueI18nAdapter } from "./adatper.locale/vue-i18n";
export { default as defaultEnLocale } from "./adatper.locale/locales/en";

export function createVueless(options = {}) {
const locale = createLocale(options.locale);

const install = (app) => {
app.provide(LocaleSymbol, locale);
};

return {
install,
};
}

0 comments on commit 56ea5c8

Please sign in to comment.