59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
import { DataTableRecord } from '../../../shared/components/data-table/data-table.types';
|
|
|
|
export interface LocalizedTextKeyRequest {
|
|
tenantId?: string | null;
|
|
entityType?: string | null;
|
|
entityId?: string | null;
|
|
fieldName?: string | null;
|
|
languageId?: string | null;
|
|
}
|
|
|
|
export interface LocalizedTextDto {
|
|
id?: string;
|
|
tenantId?: string | null;
|
|
entityType?: string;
|
|
entityId?: string | null;
|
|
fieldName?: string;
|
|
languageId?: string;
|
|
languageCode?: string;
|
|
translatedValue: string;
|
|
isOverride?: boolean;
|
|
tenantName?: string | null;
|
|
}
|
|
|
|
export interface UpsertLocalizedTextRequest {
|
|
translatedValue: string;
|
|
}
|
|
|
|
export interface TranslationMatrixRow extends DataTableRecord {
|
|
id: string;
|
|
serialNumber?: number;
|
|
key: string;
|
|
module: string;
|
|
tenantId: string | null;
|
|
entityType: string;
|
|
entityId: string | null;
|
|
overrideStatus: string;
|
|
tenantName?: string | null;
|
|
translations: Record<string, string>;
|
|
originalTranslations: Record<string, string>;
|
|
dirtyFlags: Record<string, boolean>;
|
|
}
|
|
|
|
export interface TranslationFilter {
|
|
searchKey: string;
|
|
module: string;
|
|
languageId: string;
|
|
tenantId?: string;
|
|
}
|
|
|
|
export interface CreateTranslationFormValue {
|
|
key: string;
|
|
module: string;
|
|
enUs: string;
|
|
arSa: string;
|
|
hiIn: string;
|
|
tenantId?: string | null;
|
|
tenantName?: string | null;
|
|
}
|