Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Aug 20, 2024
1 parent 1ee5597 commit 13306f4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/runtime/plugins/01.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,3 @@ declare module 'vue' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface ComponentCustomProperties extends PluginsInjections {}
}

declare global {
const $getLocale: () => string
const $getLocales: () => Locale[]
const $t: <T extends Record<string, string | number | boolean>>(
key: string,
params?: T,
defaultValue?: string
) => string | number | boolean | Translations | PluralTranslations | unknown[] | unknown | null
const $tc: (key: string, count: number, defaultValue?: string) => string
const $has: (key: string) => boolean
const $mergeTranslations: (newTranslations: Translations) => void
const $switchLocale: (locale: string) => void
const $localeRoute: (to: RouteLocationRaw, locale?: string) => RouteLocationRaw
const $loadPageTranslations: (locale: string, routeName: string) => Promise<void>
}

0 comments on commit 13306f4

Please sign in to comment.