svelte-i18n/src/client/index.ts

23 lines
644 B
TypeScript
Raw Normal View History

import { MessageObject } from './types'
2019-11-19 17:18:42 +01:00
// defineMessages allow us to define and extract dynamic message ids
export function defineMessages(i: Record<string, MessageObject>) {
return i
}
export { configure } from './configs'
export { $locale as locale } from './stores/locale'
2019-11-19 17:18:42 +01:00
export {
$dictionary as dictionary,
$locales as locales,
addMessages,
} from './stores/dictionary'
export { $isLoading as isLoading } from './stores/loading'
export { $format as format, $format as _, $format as t } from './stores/format'
// utilities
export {
flushQueue as waitLocale,
registerLocaleLoader as register,
} from './includes/loaderQueue'