igniteui-webcomponents
Version:
Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.
14 lines (13 loc) • 1.24 kB
TypeScript
import type { IResourceStrings } from 'igniteui-i18n-core';
import type { IgcCalendarResourceStrings } from './EN/calendar.resources.js';
import type { IgcChatResourceStrings } from './EN/chat.resources.js';
import type { IgcDatePickerResourceStrings } from './EN/date-picker.resources.js';
import type { IgcDateRangePickerResourceStrings } from './EN/date-range-picker.resources.js';
/** Names of components currently handling a mix of old and new resource strings. */
export type I18nResourceMapNames = 'calendar' | 'date-picker' | 'date-range-picker' | 'chat';
export declare const calendarResourcesMap: Map<keyof IgcCalendarResourceStrings, string | undefined>;
export declare const chatResourcesMap: Map<keyof IgcChatResourceStrings, string>;
export declare const dateRangePickerResourcesMap: Map<keyof IgcDateRangePickerResourceStrings, string | undefined>;
export declare const datePickerResourcesMap: Map<keyof IgcDatePickerResourceStrings, string | undefined>;
export declare function convertToIgcResource<T extends object>(resource: IResourceStrings, resourceMapName: I18nResourceMapNames): T;
export declare function convertToCoreResource<T extends object>(resource: T, resourceMapName: I18nResourceMapNames): IResourceStrings;