mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 09:01:09 +02:00
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
65 lines
1.3 KiB
TypeScript
65 lines
1.3 KiB
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';
|
|
|
|
// Auth translations
|
|
export {
|
|
en as authTranslationsEn,
|
|
de as authTranslationsDe,
|
|
it as authTranslationsIt,
|
|
fr as authTranslationsFr,
|
|
es as authTranslationsEs,
|
|
type AuthTranslations,
|
|
type AuthLocale,
|
|
authTranslations,
|
|
getAuthTranslations,
|
|
getLoginTranslations,
|
|
getRegisterTranslations,
|
|
getForgotPasswordTranslations,
|
|
} from './translations/auth';
|
|
|
|
// Components
|
|
export { LanguageSelector } from './components';
|