Skip to content

Commit

Permalink
fix(types): defineI18nRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Aug 19, 2024
1 parent 53a675d commit 621282e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/runtime/plugins/03.define.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import type { ModuleOptions } from '../../module'
import type { Translations } from '../plugins/01.plugin'
import { defineNuxtPlugin, useNuxtApp, useRuntimeConfig } from '#app'
import { useRoute, useRouter } from '#imports'

interface State extends ModuleOptions {
rootDir: string
}

// Рекурсивный тип для переводов
type TranslationObject = string | { [key: string]: TranslationObject }

// Тип для локалей
type LocalesObject = Record<string, TranslationObject>
type LocalesObject = Record<string, Translations>

export default defineNuxtPlugin((_nuxtApp) => {
const config = useRuntimeConfig()
Expand Down

0 comments on commit 621282e

Please sign in to comment.