UNPKG

@sixbell-telco/sdk

Version:

A collection of reusable components designed for use in Sixbell Telco Angular projects

51 lines (50 loc) 1.89 kB
/** * Translation Constants and Injection Tokens * Centralized configuration values and DI tokens following Single Responsibility Principle */ import { LanguageDefinition, TranslationConfig } from './models/translation'; /** * Default base language - always available unless explicitly excluded * This is the foundational language that comes with the SDK */ export declare const DEFAULT_BASE_LANGUAGE: "en"; /** * List of default languages available out of the box */ export declare const DEFAULT_LANGUAGES_LIST: readonly ["en", "es", "pt"]; /** * Type-safe default language codes for IDE IntelliSense */ export declare const DEFAULT_LANGUAGE_CODES: readonly ["en", "es", "pt"]; /** * Type representing valid default language codes */ export type DefaultLanguageCode = (typeof DEFAULT_LANGUAGE_CODES)[number]; /** * LocalStorage namespace to prevent collisions with other apps */ export declare const TRANSLATION_STORAGE_NAMESPACE: "translation:"; /** * LocalStorage key for persisting selected language */ export declare const TRANSLATION_STORAGE_LANGUAGE_KEY: "selectedLanguage"; /** * Default translation file paths */ export declare const DEFAULT_TRANSLATION_PATHS: readonly ["/assets/i18n/"]; /** * HTML attribute name for setting the active language on document element */ export declare const LANGUAGE_ATTRIBUTE_NAME: "lang"; /** * Translation-specific IndexedDB database name for resource caching */ export declare const TRANSLATION_INDEXED_DB_NAME: "sixbell-translation"; /** * Schema version for runtime translation configuration payloads. * Bump this when the JSON structure changes in a breaking way. */ export declare const TRANSLATION_SCHEMA_VERSION: "2"; export declare const DEFAULT_LANGUAGES: readonly LanguageDefinition[]; export declare const DEFAULT_LANGUAGE_CODE: "en"; export declare const FALLBACK_RUNTIME_TRANSLATION_CONFIG: TranslationConfig;