mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 07:03:36 +02:00
- 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>
69 lines
1.4 KiB
TypeScript
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';
|