import * as i0 from "@angular/core"; /** * I18N 配置檔服務 * * 提供多語系相關的配置管理,包含: * - 多語系來源 URL 及版本 * - 環境設定(App/Desktop、正式/開發環境) * - 支援的語系清單 * * @example * // 在 app.module.ts 中進行設定 * import { I18N_CONFIG, I18nConfig } from '@uofx/core'; * * const i18nConfig: I18nConfig = { * defaultLang: 'zh-TW', * hostUrl: 'https://api.example.com/i18n', * langVersion: 'v1.0.0', * isApp: false, * isI18nProdApi: true * }; * * @NgModule({ * providers: [ * { provide: I18N_CONFIG, useValue: i18nConfig } * ] * }) * export class AppModule { } * * @example * // 在 Standalone 模式的 app.config.ts 中進行設定 * import { ApplicationConfig } from '@angular/core'; * import { I18N_CONFIG, I18nConfig } from '@uofx/core'; * * export const appConfig: ApplicationConfig = { * providers: [ * { * provide: I18N_CONFIG, * useValue: { * defaultLang: 'zh-TW', * hostUrl: 'https://api.example.com/i18n', * langVersion: 'v1.0.0', * isApp: false, * isI18nProdApi: true * } as I18nConfig * } * ] * }; */ export declare class I18nConfigService { private translate; private config; /** 多語系來源 URL */ private _hostUrl; /** 多語系版本 */ private _langVersion; /** 是否為 App 環境 */ private _isApp; /** 是否使用正式環境 API */ private _isI18nProdApi; /** 支援的語系清單 */ private SUPPORT_LANGS; constructor(); /** 取得或設定多語系來源 URL */ get hostUrl(): string; set hostUrl(url: string); /** 取得或設定多語系來源版本 */ get langVersion(): string; set langVersion(version: string); /** 是否為 App 環境 */ get isApp(): boolean; /** 是否使用正式環境 API */ get isI18nProdApi(): boolean; /** 取得支援的語系清單 */ get supportLangs(): Array; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }