Skip to content
Clone
main
27 lines 631 B
// Public API of the shared/i18n segment.
// Consumers import from '@app/i18n', never from deeper files.
export {
DASH,
formatBytes,
formatDate,
formatDateTime,
formatRelative,
formatTime,
parseDateValue,
shortSha,
} from './format'
export {
applyAccountLocale,
bootLocale,
DEFAULT_LOCALE,
getLocale,
LOCALES,
type Locale,
localeLabel,
normalizeLocale,
setLocale,
useLocale,
} from './locale'
export { isMessageKey, type MessageKey, type MessageParams, t, tCount, translate, translateCount } from './translate'
export { type I18n, type TranslateCountFn, type TranslateFn, useT } from './use-t'