import * as i0 from '@angular/core'; import { Signal, InjectionToken } from '@angular/core'; type ThyModuleType = 'datePicker' | 'layout' | 'dateRange' | 'timePicker' | 'calendar' | 'autocomplete' | 'transfer' | 'colorPicker' | 'strength' | 'guider' | 'copy' | 'nav' | 'dialog' | 'select' | 'treeSelect' | 'cascader' | 'pagination' | 'form' | 'empty' | 'image' | 'notify' | 'shared'; type ThyModuleLocaleType = ThyI18nLocale[K]; declare enum ThyLocaleType { zhHans = "zh-hans", zhHant = "zh-hant", enUs = "en-us", jaJp = "ja-jp", deDe = "de-de" } interface ThyI18nLocale { id: ThyLocaleType; layout: ThyLayoutLocale; datePicker: ThyDatePickerLocale; dateRange: ThyDateRangeLocale; timePicker: ThyTimePickerLocale; calendar: ThyCalendarLocale; autocomplete: ThyAutoCompleteLocale; transfer: ThyTransferLocale; colorPicker: ThyColorPickerLocale; strength: ThyStrengthLocale; guider: ThyGuiderLocale; copy: ThyCopyLocale; nav: ThyNavLocale; dialog: ThyDialogLocale; select: ThySelectLocale; treeSelect: ThyTreeSelectLocale; cascader: ThyCascaderLocale; pagination: ThyPaginationLocale; form: ThyFormLocale; empty: ThyEmptyLocale; image: ThyImageLocale; notify: ThyNotifyLocale; shared: ThySharedLocale; } interface ThyLayoutLocale { collapse: string; expand: string; } interface ThyDatePickerLocale { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; } interface ThyDateRangeLocale { custom: string; currentWeek: string; currentMonth: string; } interface ThyTimePickerLocale { placeholder: string; now: string; ok: string; } interface ThyCalendarLocale { today: string; yearMonthFormat: string; } interface ThyAutoCompleteLocale { empty: string; } interface ThyTransferLocale { maxLimit: string; maxLockLimit: string; unlocked: string; } interface ThyColorPickerLocale { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; } interface ThyStrengthLocale { highest: string; high: string; medium: string; low: string; } interface ThyGuiderLocale { skip: string; prev: string; next: string; finish: string; } interface ThyCopyLocale { tips: string; success: string; error: string; } interface ThyNavLocale { more: string; } interface ThyDialogLocale { title: string; ok: string; cancel: string; } interface ThySelectLocale { placeholder: string; empty: string; } interface ThyTreeSelectLocale { placeholder: string; empty: string; } interface ThyCascaderLocale { placeholder: string; empty: string; } interface ThyPaginationLocale { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; } interface ThyFormLocale { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; } interface ThyEmptyLocale { noDataText: string; } interface ThyImageLocale { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; } interface ThyNotifyLocale { success: string; warning: string; error: string; info: string; detail: string; } interface ThySharedLocale { comma: string; } declare class ThyI18nService { private locales; private defaultLocaleId; private locale; /** * 设置语言 * @param id */ setLocale(id: string): void; /** * 获取当前语言 */ getLocale(): Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const THY_I18N_LOCALE_ID: InjectionToken; declare const THY_I18N_ZH_HANS: InjectionToken; declare const THY_I18N_ZH_HANT: InjectionToken; declare const THY_I18N_EN_US: InjectionToken; declare const THY_I18N_JA_JP: InjectionToken; declare const THY_I18N_DE_DE: InjectionToken; declare function injectLocale(): Signal; declare function injectLocale(key: K): Signal>; declare const _default$4: { id: ThyLocaleType; layout: { expand: string; collapse: string; }; datePicker: { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; }; dateRange: { custom: string; currentWeek: string; currentMonth: string; }; timePicker: { placeholder: string; now: string; ok: string; }; calendar: { today: string; yearMonthFormat: string; }; autocomplete: { empty: string; }; transfer: { maxLimit: string; maxLockLimit: string; unlocked: string; }; colorPicker: { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; }; strength: { highest: string; high: string; medium: string; low: string; }; guider: { skip: string; prev: string; next: string; finish: string; }; copy: { tips: string; success: string; error: string; }; nav: { more: string; }; dialog: { title: string; ok: string; cancel: string; }; select: { placeholder: string; empty: string; }; treeSelect: { placeholder: string; empty: string; }; cascader: { placeholder: string; empty: string; }; pagination: { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; }; form: { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; }; empty: { noDataText: string; }; image: { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; }; notify: { success: string; warning: string; error: string; info: string; detail: string; }; shared: { comma: string; }; }; declare const _default$3: { id: ThyLocaleType; layout: { expand: string; collapse: string; }; datePicker: { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; }; dateRange: { custom: string; currentWeek: string; currentMonth: string; }; timePicker: { placeholder: string; now: string; ok: string; }; calendar: { today: string; yearMonthFormat: string; }; autocomplete: { empty: string; }; transfer: { maxLimit: string; maxLockLimit: string; unlocked: string; }; colorPicker: { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; }; strength: { highest: string; high: string; medium: string; low: string; }; guider: { skip: string; prev: string; next: string; finish: string; }; copy: { tips: string; success: string; error: string; }; nav: { more: string; }; dialog: { title: string; ok: string; cancel: string; }; select: { placeholder: string; empty: string; }; treeSelect: { placeholder: string; empty: string; }; cascader: { placeholder: string; empty: string; }; pagination: { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; }; form: { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; }; empty: { noDataText: string; }; image: { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; }; notify: { success: string; warning: string; error: string; info: string; detail: string; }; shared: { comma: string; }; }; declare const _default$2: { id: ThyLocaleType; layout: { expand: string; collapse: string; }; datePicker: { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; }; dateRange: { custom: string; currentWeek: string; currentMonth: string; }; timePicker: { placeholder: string; now: string; ok: string; }; calendar: { today: string; yearMonthFormat: string; }; autocomplete: { empty: string; }; transfer: { maxLimit: string; maxLockLimit: string; unlocked: string; }; colorPicker: { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; }; strength: { highest: string; high: string; medium: string; low: string; }; guider: { skip: string; prev: string; next: string; finish: string; }; copy: { tips: string; success: string; error: string; }; nav: { more: string; }; dialog: { title: string; ok: string; cancel: string; }; select: { placeholder: string; empty: string; }; treeSelect: { placeholder: string; empty: string; }; cascader: { placeholder: string; empty: string; }; pagination: { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; }; form: { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; }; empty: { noDataText: string; }; image: { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; }; notify: { success: string; warning: string; error: string; info: string; detail: string; }; shared: { comma: string; }; }; /** * Format options: * | Field type | Format | Description | Example Value | * |--------------------|-------------|--------------------------------------------|---------------------------------| * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 | * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 | * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 | * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 | * | Month | M | Numeric: 1 digit | 9, 12 | * | | MM | Numeric: 2 digits + zero padded | 09, 12 | * | | MMM | Abbreviated | Sep | * | | MMMM | Wide | September | * | | MMMMM | Narrow | S | * | Week day | E, EE & EEE | Abbreviated | Tue | * | | EEEE | Wide | Tuesday | * | | EEEEE | Narrow | T | * | | EEEEEE | Short | Tu | * | ISO Week of year | w | Numeric: minimum digits | 1... 53 | * | | ww | Numeric: 2 digits + zero padded | 01... 53 | * */ declare const _default$1: { id: ThyLocaleType; layout: { expand: string; collapse: string; }; datePicker: { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; }; dateRange: { custom: string; currentWeek: string; currentMonth: string; }; timePicker: { placeholder: string; now: string; ok: string; }; calendar: { today: string; yearMonthFormat: string; }; autocomplete: { empty: string; }; transfer: { maxLimit: string; maxLockLimit: string; unlocked: string; }; colorPicker: { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; }; strength: { highest: string; high: string; medium: string; low: string; }; guider: { skip: string; prev: string; next: string; finish: string; }; copy: { tips: string; success: string; error: string; }; nav: { more: string; }; dialog: { title: string; ok: string; cancel: string; }; select: { placeholder: string; empty: string; }; treeSelect: { placeholder: string; empty: string; }; cascader: { placeholder: string; empty: string; }; pagination: { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; }; form: { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; }; empty: { noDataText: string; }; image: { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; }; notify: { success: string; warning: string; error: string; info: string; detail: string; }; shared: { comma: string; }; }; declare const _default: { id: ThyLocaleType; layout: { expand: string; collapse: string; }; datePicker: { yearFormat: string; monthFormat: string; weekFormat: string; fullWeekFormat: string; weekThFormat: string; dateFormat: string; yearQuarterFormat: string; yearMonthFormat: string; yearText: string; quarterText: string; monthText: string; week: string; prefixWeek: string; previousYear: string; nextYear: string; previousMonth: string; nextMonth: string; today: string; tomorrow: string; nextWeek: string; lastSevenDays: string; lastThirtyDays: string; currentMonth: string; currentWeek: string; advance: string; custom: string; startDate: string; endDate: string; setTime: string; placeholder: string; ok: string; clear: string; }; dateRange: { custom: string; currentWeek: string; currentMonth: string; }; timePicker: { placeholder: string; now: string; ok: string; }; calendar: { today: string; yearMonthFormat: string; }; autocomplete: { empty: string; }; transfer: { maxLimit: string; maxLockLimit: string; unlocked: string; }; colorPicker: { defaultColor: string; noFillColor: string; recentUsedColor: string; customColor: string; none: string; }; strength: { highest: string; high: string; medium: string; low: string; }; guider: { skip: string; prev: string; next: string; finish: string; }; copy: { tips: string; success: string; error: string; }; nav: { more: string; }; dialog: { title: string; ok: string; cancel: string; }; select: { placeholder: string; empty: string; }; treeSelect: { placeholder: string; empty: string; }; cascader: { placeholder: string; empty: string; }; pagination: { page: string; order: string; total: string; totalCount: string; jumpTo: string; firstPage: string; lastPage: string; defaultUnit: string; }; form: { required: string; maxlength: string; minlength: string; uniqueCheck: string; email: string; confirm: string; pattern: string; number: string; url: string; max: string; min: string; }; empty: { noDataText: string; }; image: { zoomOut: string; zoomIn: string; originalSize: string; fitToScreen: string; fullScreen: string; spin: string; download: string; viewOriginal: string; copyLink: string; exitPreview: string; exitFullScreen: string; copySuccess: string; copyError: string; prev: string; next: string; }; notify: { success: string; warning: string; error: string; info: string; detail: string; }; shared: { comma: string; }; }; declare function normalizeLocale(localeId: string | null): ThyLocaleType; declare function getDefaultLocaleId(): ThyLocaleType; export { THY_I18N_DE_DE, THY_I18N_EN_US, THY_I18N_JA_JP, THY_I18N_LOCALE_ID, THY_I18N_ZH_HANS, THY_I18N_ZH_HANT, ThyI18nService, ThyLocaleType, _default as deDeLocale, _default$2 as enUsLocale, getDefaultLocaleId, injectLocale, _default$1 as jaJpLocale, normalizeLocale, _default$4 as zhHansLocale, _default$3 as zhHantLocale }; export type { ThyAutoCompleteLocale, ThyCalendarLocale, ThyCascaderLocale, ThyColorPickerLocale, ThyCopyLocale, ThyDatePickerLocale, ThyDateRangeLocale, ThyDialogLocale, ThyEmptyLocale, ThyFormLocale, ThyGuiderLocale, ThyI18nLocale, ThyImageLocale, ThyLayoutLocale, ThyModuleLocaleType, ThyModuleType, ThyNavLocale, ThyNotifyLocale, ThyPaginationLocale, ThySelectLocale, ThySharedLocale, ThyStrengthLocale, ThyTimePickerLocale, ThyTransferLocale, ThyTreeSelectLocale };