From 958d4aef402b82f00c9ed83cfa4799a95f281c39 Mon Sep 17 00:00:00 2001 From: "Fawzi E. Abdulfattah" Date: Fri, 15 Jan 2021 11:03:15 +0200 Subject: [PATCH] use directions type instead of string --- types/nuxt-i18n.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/nuxt-i18n.d.ts b/types/nuxt-i18n.d.ts index 982b28f41..5a092cad9 100644 --- a/types/nuxt-i18n.d.ts +++ b/types/nuxt-i18n.d.ts @@ -8,6 +8,7 @@ import { Context as NuxtContext } from '@nuxt/types' declare namespace NuxtVueI18n { type Locale = VueI18n.Locale type Strategies = 'no_prefix' | 'prefix_except_default' | 'prefix' | 'prefix_and_default' + type Directions = 'ltr' | 'rtl' | 'auto' namespace Options { // e.g.: @@ -22,7 +23,7 @@ declare namespace NuxtVueI18n { iso?: string // can be undefined: https://goo.gl/ryc5pF file?: string - dir?: string + dir?: Directions isCatchallLocale?: boolean // Allow custom properties, e.g. "name": https://goo.gl/wrcb2G [key: string]: any