mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
46 lines
920 B
TypeScript
46 lines
920 B
TypeScript
/**
|
|
* Shared i18n for Manacore monorepo
|
|
*
|
|
* This package provides common i18n utilities, language definitions,
|
|
* and translations that can be shared across all projects.
|
|
*/
|
|
|
|
// Language definitions
|
|
export {
|
|
type LanguageCode,
|
|
type LanguageInfo,
|
|
LANGUAGES,
|
|
getLanguageCodes,
|
|
getLanguageInfo,
|
|
isLanguageSupported,
|
|
isRTL,
|
|
getLanguageDisplayName,
|
|
LOCALE_GROUPS,
|
|
getLanguagesByGroup,
|
|
} from './languages';
|
|
|
|
// Utilities
|
|
export {
|
|
detectBrowserLocale,
|
|
getStoredLocale,
|
|
storeLocale,
|
|
getInitialLocale,
|
|
normalizeLocale,
|
|
getBaseLanguage,
|
|
matchesLanguage,
|
|
findBestMatch,
|
|
formatLocalizedNumber,
|
|
formatLocalizedDate,
|
|
formatRelativeTime,
|
|
getPluralCategory,
|
|
interpolate,
|
|
} from './utils';
|
|
|
|
// Common translations
|
|
export {
|
|
en as commonTranslationsEn,
|
|
de as commonTranslationsDe,
|
|
type CommonTranslations,
|
|
getCommonTranslations,
|
|
mergeWithCommon,
|
|
} from './translations/common';
|