Skip to content

Commit

Permalink
Merge pull request #148 from xicri/refactor-i18n-untyping
Browse files Browse the repository at this point in the history
Remove unnecessary type cast
  • Loading branch information
xicri authored Apr 9, 2024
2 parents 6707e73 + 5200026 commit 539f32d
Show file tree
Hide file tree
Showing 2 changed files with 4,928 additions and 3,877 deletions.
5 changes: 1 addition & 4 deletions components/hamburger-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,14 @@
</i18n>

<script lang="ts" setup>
import type { LocaleObject } from "@nuxtjs/i18n/dist/runtime/composables";
import type { Locale } from "~/types";
//
// refs
//
const i18n = useI18n<[], Locale>({
const { locales, t } = useI18n<[], Locale>({
useScope: "local",
});
const locales = <LocaleObject[]>i18n.locales.value;
const t = i18n.t;
const open = ref(false);
//
Expand Down
Loading

0 comments on commit 539f32d

Please sign in to comment.