@ws-ui/localization-editor 1.11.7-rc5 → 1.11.12-rc10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ export declare const ERRORS: {
2
+ DROP_EVENT_ERROR: string;
3
+ DROP_VALID_FILE: string;
4
+ };
5
+ export declare const DEFAULT_LOCALE_KEYS: string[];
6
+ /** Extract unique isocodes (locale codes) from parsed export JSON. */
7
+ export declare const getIsocodesFromJson: (parsed: {
8
+ webforms?: Record<string, Record<string, {
9
+ props?: Array<Record<string, unknown>>;
10
+ }>>;
11
+ i18n?: Record<string, Record<string, unknown>>;
12
+ }) => string[];
13
+ export declare const filterContentByIsocodes: (content: {
14
+ webforms?: Record<string, any>;
15
+ i18n?: Record<string, Record<string, unknown>>;
16
+ }, isocodes: string[]) => typeof content;
17
+ /** Extract isocodes from CSV content (header row, columns after index 1). */
18
+ export declare const getIsocodesFromCsv: (fileContent: string) => string[];
19
+ /**
20
+ * Validate CSV content for export-i18n format.
21
+ * Expects: header row with keys, resolverName, and locale columns; data rows with key in col 0 (webforms.* or i18n.*).
22
+ */
23
+ export declare const validateCsvExportI18nFormat: (fileContent: string) => {
24
+ valid: true;
25
+ } | {
26
+ valid: false;
27
+ message: string;
28
+ };
29
+ export declare const validateExportI18nFormat: (data: unknown, schema: object) => {
30
+ valid: true;
31
+ } | {
32
+ valid: false;
33
+ message: string;
34
+ };
@@ -8,6 +8,7 @@ interface ILangague {
8
8
  onSelect: (isocode: string, shouldAdd: boolean) => void;
9
9
  onRemove: (isocode: string) => void;
10
10
  onEdit: (last: any, after: any) => void;
11
+ 'data-cy'?: string;
11
12
  }
12
13
  declare const Language: FC<ILangague>;
13
14
  export default Language;