Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.2 kB · 53 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/** * @streamplace/i18n — platform-agnostic i18n data, config, and utilities. * * This package contains: * - Locale manifest and metadata * - Fluent (.ftl) source files and compiled JSON translations * - Pure locale detection / fallback utilities * - Base i18next configuration factory * * It does NOT contain React hooks, providers, or platform-specific loaders. * Those live in @streamplace/components (React Native) or the web app. */
// Manifest dataexport { default as manifest } from "../locales/manifest.json";
// Locale utilitiesexport { cleanLocaleName, getFallbackChain, getLanguageInfo, getLocaleFromSystemLocale, getSupportedLocales, isLocaleSupported,} from "./locale";export type { LanguageInfo } from "./locale";
// Config factoryexport { DEFAULT_NAMESPACE, NAMESPACES, STORAGE_KEY, createI18nextConfig,} from "./config";export type { I18nextConfigOptions } from "./config";
// Bundled locale resources (for native/SSR loaders)export { enUSCommon, enUSSettings, esESCommon, esESSettings, frFRCommon, frFRSettings, ptBRCommon, ptBRSettings, roROCommon, roROSettings, zhHansCommon, zhHansSettings, zhHantCommon, zhHantSettings,} from "./resources";