2019-11-24 03:38:15 +01:00
|
|
|
import { MessageObject } from './types'
|
2019-11-19 17:18:42 +01:00
|
|
|
|
|
|
|
// defineMessages allow us to define and extract dynamic message ids
|
2019-11-22 02:11:31 +01:00
|
|
|
export function defineMessages(i: Record<string, MessageObject>) {
|
|
|
|
return i
|
|
|
|
}
|
|
|
|
|
2019-11-26 03:04:10 +01:00
|
|
|
export { configure } from './configs'
|
|
|
|
export { $locale as locale } from './stores/locale'
|
2019-11-19 17:18:42 +01:00
|
|
|
export {
|
2019-11-19 21:12:15 +01:00
|
|
|
$dictionary as dictionary,
|
2019-11-20 05:32:30 +01:00
|
|
|
$locales as locales,
|
2019-11-22 02:12:56 +01:00
|
|
|
addMessages,
|
2019-11-20 20:31:55 +01:00
|
|
|
} from './stores/dictionary'
|
2019-11-22 02:11:31 +01:00
|
|
|
export { $isLoading as isLoading } from './stores/loading'
|
2019-11-20 20:31:55 +01:00
|
|
|
export { $format as format, $format as _, $format as t } from './stores/format'
|
|
|
|
|
|
|
|
// utilities
|
|
|
|
export {
|
|
|
|
flushQueue as waitLocale,
|
2019-11-20 06:05:34 +01:00
|
|
|
registerLocaleLoader as register,
|
2019-11-20 20:31:55 +01:00
|
|
|
} from './includes/loaderQueue'
|