mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
fix: export correct configuration type
This commit is contained in:
parent
37117c57cc
commit
68e8c51a63
@ -2,17 +2,9 @@ import { ConfigureOptions } from './types'
|
|||||||
import { $locale } from './stores/locale'
|
import { $locale } from './stores/locale'
|
||||||
|
|
||||||
interface Formats {
|
interface Formats {
|
||||||
number: Record<string, any>
|
number: Record<string, any>;
|
||||||
date: Record<string, any>
|
date: Record<string, any>;
|
||||||
time: Record<string, any>
|
time: Record<string, any>;
|
||||||
}
|
|
||||||
|
|
||||||
interface Options {
|
|
||||||
fallbackLocale: string
|
|
||||||
initialLocale: string
|
|
||||||
formats: Formats
|
|
||||||
loadingDelay: number
|
|
||||||
warnOnMissingMessages: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const defaultFormats: Formats = {
|
export const defaultFormats: Formats = {
|
||||||
|
@ -48,8 +48,9 @@ export interface MessagesLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ConfigureOptions {
|
export interface ConfigureOptions {
|
||||||
fallbackLocale: string
|
fallbackLocale: string;
|
||||||
initialLocale?: string
|
formats?: Partial<Formats>;
|
||||||
formats?: Partial<Formats>
|
initialLocale?: string;
|
||||||
loadingDelay?: number
|
loadingDelay?: number;
|
||||||
|
warnOnMissingMessages?: boolean;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user