managarten/packages/shared-i18n/src/index.ts
Till-JS 9a29a8e1ed feat: improve language switcher integration across all web apps
- Add language selector to PillNavigation in all apps
- Update LanguageSelector components to use shared-i18n utils
- Simplify AppSlider components
- Add getLanguageDropdownItems and getCurrentLanguageLabel utils

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 00:46:13 +01:00

69 lines
1.4 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,
// PillDropdown language helpers
type LanguageDropdownItem,
getLanguageDropdownItems,
getCurrentLanguageLabel,
} 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';