@burdenoff/microfe-i18n 2026.1129.2 → 2026.1129.4
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.
- package/dist/generated/global-operations.d.ts +337 -0
- package/dist/generated/global-operations.js +155 -15
- package/dist/generated/global-types.js +7 -3
- package/dist/i18n/I18nRoutes.d.ts +4 -2
- package/dist/i18n/I18nRoutes.js +55 -47
- package/dist/i18n/v2/ExportDialog.d.ts +9 -0
- package/dist/i18n/v2/ExportDialog.js +107 -0
- package/dist/i18n/v2/LanguageDialog.d.ts +17 -0
- package/dist/i18n/v2/LanguageDialog.js +193 -0
- package/dist/i18n/v2/LanguagesDialogs.d.ts +7 -0
- package/dist/i18n/v2/LanguagesDialogs.js +43 -0
- package/dist/i18n/v2/LanguagesPage.js +62 -53
- package/dist/i18n/v2/LanguagesTab.js +1 -1
- package/dist/i18n/v2/ReviewTab.d.ts +3 -1
- package/dist/i18n/v2/ReviewTab.js +28 -27
- package/dist/i18n/v2/TabRedirect.d.ts +12 -0
- package/dist/i18n/v2/TabRedirect.js +25 -9
- package/dist/i18n/v2/language/FormatsTab.d.ts +6 -0
- package/dist/i18n/v2/language/FormatsTab.js +93 -0
- package/dist/i18n/v2/language/LanguagePage.d.ts +3 -0
- package/dist/i18n/v2/language/LanguagePage.js +256 -0
- package/dist/i18n/v2/language/TranslateDialog.d.ts +18 -0
- package/dist/i18n/v2/language/TranslateDialog.js +101 -0
- package/dist/i18n/v2/language/WordsTab.d.ts +11 -0
- package/dist/i18n/v2/language/WordsTab.js +190 -0
- package/dist/i18n/v2/language/useLanguage.d.ts +23 -0
- package/dist/i18n/v2/language/useLanguage.js +22 -0
- package/dist/i18n/v2/language/useWords.d.ts +31 -0
- package/dist/i18n/v2/language/useWords.js +51 -0
- package/dist/i18n/v2/languageModel.d.ts +66 -0
- package/dist/i18n/v2/languageModel.js +124 -0
- package/dist/i18n/v2/links.d.ts +10 -2
- package/dist/i18n/v2/links.js +11 -10
- package/dist/i18n/v2/useAddLanguage.d.ts +10 -0
- package/dist/i18n/v2/useAddLanguage.js +30 -0
- package/dist/i18n/v2/useDebouncedValue.d.ts +1 -0
- package/dist/i18n/v2/useDebouncedValue.js +10 -0
- package/dist/i18n/v2/useExportTranslations.d.ts +8 -0
- package/dist/i18n/v2/useExportTranslations.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +49 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +12 -0
- package/package.json +1 -1
|
@@ -11,11 +11,30 @@ export type Incremental<T> = T | {
|
|
|
11
11
|
import * as Types from './global-types';
|
|
12
12
|
import * as Apollo from '@apollo/client';
|
|
13
13
|
import * as ApolloReactHooks from '@apollo/client/react';
|
|
14
|
+
export type BulkTranslationInput = {
|
|
15
|
+
keyId: string;
|
|
16
|
+
languageCode: string;
|
|
17
|
+
pluralForms?: Record<string, unknown> | null | undefined;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
export type CreateLanguageInput = {
|
|
21
|
+
code: string;
|
|
22
|
+
dateFormat?: string | null | undefined;
|
|
23
|
+
direction?: LanguageDirection | null | undefined;
|
|
24
|
+
fallbackCode?: string | null | undefined;
|
|
25
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
26
|
+
name: string;
|
|
27
|
+
nativeName: string;
|
|
28
|
+
pluralRules?: Record<string, unknown> | null | undefined;
|
|
29
|
+
region?: string | null | undefined;
|
|
30
|
+
timeFormat?: string | null | undefined;
|
|
31
|
+
};
|
|
14
32
|
export type I18nProductFilterInput = {
|
|
15
33
|
search?: string | null | undefined;
|
|
16
34
|
status?: I18nProductStatus | null | undefined;
|
|
17
35
|
};
|
|
18
36
|
export type I18nProductStatus = 'ACTIVE' | 'ARCHIVED' | 'DEPRECATED';
|
|
37
|
+
export type ImportJobFormat = 'CSV' | 'JSON' | 'PO' | 'XLIFF' | 'XLSX';
|
|
19
38
|
export type LanguageDirection = 'LTR' | 'RTL';
|
|
20
39
|
export type LanguageFilterInput = {
|
|
21
40
|
direction?: LanguageDirection | null | undefined;
|
|
@@ -30,7 +49,34 @@ export type TranslationFilterInput = {
|
|
|
30
49
|
status?: TranslationStatus | null | undefined;
|
|
31
50
|
tenantId?: string | null | undefined;
|
|
32
51
|
};
|
|
52
|
+
export type TranslationKeyFilterInput = {
|
|
53
|
+
namespaceId?: string | null | undefined;
|
|
54
|
+
productId?: string | null | undefined;
|
|
55
|
+
search?: string | null | undefined;
|
|
56
|
+
status?: TranslationKeyStatus | null | undefined;
|
|
57
|
+
tags?: Array<string> | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
export type TranslationKeyStatus = 'ACTIVE' | 'DELETED' | 'DEPRECATED';
|
|
33
60
|
export type TranslationStatus = 'APPROVED' | 'DRAFT' | 'PENDING_REVIEW' | 'PUBLISHED';
|
|
61
|
+
export type UpdateLanguageInput = {
|
|
62
|
+
dateFormat?: string | null | undefined;
|
|
63
|
+
direction?: LanguageDirection | null | undefined;
|
|
64
|
+
fallbackCode?: string | null | undefined;
|
|
65
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
66
|
+
name?: string | null | undefined;
|
|
67
|
+
nativeName?: string | null | undefined;
|
|
68
|
+
pluralRules?: Record<string, unknown> | null | undefined;
|
|
69
|
+
region?: string | null | undefined;
|
|
70
|
+
status?: LanguageStatus | null | undefined;
|
|
71
|
+
timeFormat?: string | null | undefined;
|
|
72
|
+
};
|
|
73
|
+
export type UpdateTranslationInput = {
|
|
74
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
75
|
+
notes?: string | null | undefined;
|
|
76
|
+
pluralForms?: Record<string, unknown> | null | undefined;
|
|
77
|
+
status?: TranslationStatus | null | undefined;
|
|
78
|
+
value?: string | null | undefined;
|
|
79
|
+
};
|
|
34
80
|
export type GetI18nCoverageQueryVariables = Exact<{
|
|
35
81
|
productId: string;
|
|
36
82
|
}>;
|
|
@@ -44,6 +90,66 @@ export type GetI18nCoverageQuery = {
|
|
|
44
90
|
pendingReviewKeys: number;
|
|
45
91
|
}>;
|
|
46
92
|
};
|
|
93
|
+
export type ExportI18nTranslationsQueryVariables = Exact<{
|
|
94
|
+
format: Types.ImportJobFormat;
|
|
95
|
+
productId: string;
|
|
96
|
+
languageCode?: string | null | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
export type ExportI18nTranslationsQuery = {
|
|
99
|
+
exportTranslations: {
|
|
100
|
+
content: string;
|
|
101
|
+
format: string;
|
|
102
|
+
version: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export type GetI18nLanguageQueryVariables = Exact<{
|
|
106
|
+
code: string;
|
|
107
|
+
}>;
|
|
108
|
+
export type GetI18nLanguageQuery = {
|
|
109
|
+
languageByCode: {
|
|
110
|
+
id: string;
|
|
111
|
+
code: string;
|
|
112
|
+
name: string;
|
|
113
|
+
nativeName: string;
|
|
114
|
+
direction: Types.LanguageDirection;
|
|
115
|
+
status: Types.LanguageStatus;
|
|
116
|
+
isDefault: boolean;
|
|
117
|
+
region: string | null;
|
|
118
|
+
dateFormat: string;
|
|
119
|
+
timeFormat: string;
|
|
120
|
+
updatedAt: string;
|
|
121
|
+
} | null;
|
|
122
|
+
};
|
|
123
|
+
export type CreateI18nLanguageMutationVariables = Exact<{
|
|
124
|
+
input: Types.CreateLanguageInput;
|
|
125
|
+
}>;
|
|
126
|
+
export type CreateI18nLanguageMutation = {
|
|
127
|
+
createLanguage: {
|
|
128
|
+
id: string;
|
|
129
|
+
code: string;
|
|
130
|
+
name: string;
|
|
131
|
+
nativeName: string;
|
|
132
|
+
direction: Types.LanguageDirection;
|
|
133
|
+
status: Types.LanguageStatus;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export type UpdateI18nLanguageMutationVariables = Exact<{
|
|
137
|
+
id: string | number;
|
|
138
|
+
input: Types.UpdateLanguageInput;
|
|
139
|
+
}>;
|
|
140
|
+
export type UpdateI18nLanguageMutation = {
|
|
141
|
+
updateLanguage: {
|
|
142
|
+
id: string;
|
|
143
|
+
code: string;
|
|
144
|
+
name: string;
|
|
145
|
+
nativeName: string;
|
|
146
|
+
direction: Types.LanguageDirection;
|
|
147
|
+
status: Types.LanguageStatus;
|
|
148
|
+
dateFormat: string;
|
|
149
|
+
timeFormat: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
47
153
|
export type GetI18nLanguagesQueryVariables = Exact<{
|
|
48
154
|
filter?: Types.LanguageFilterInput | null | undefined;
|
|
49
155
|
limit?: number | null | undefined;
|
|
@@ -139,6 +245,54 @@ export type PublishI18nTranslationMutation = {
|
|
|
139
245
|
publishedAt: string | null;
|
|
140
246
|
};
|
|
141
247
|
};
|
|
248
|
+
export type GetI18nWordsQueryVariables = Exact<{
|
|
249
|
+
filter?: Types.TranslationKeyFilterInput | null | undefined;
|
|
250
|
+
limit?: number | null | undefined;
|
|
251
|
+
offset?: number | null | undefined;
|
|
252
|
+
}>;
|
|
253
|
+
export type GetI18nWordsQuery = {
|
|
254
|
+
translationKeys: {
|
|
255
|
+
total: number;
|
|
256
|
+
hasMore: boolean;
|
|
257
|
+
items: Array<{
|
|
258
|
+
id: string;
|
|
259
|
+
defaultValue: string | null;
|
|
260
|
+
description: string | null;
|
|
261
|
+
characterLimit: number | null;
|
|
262
|
+
namespace: {
|
|
263
|
+
id: string;
|
|
264
|
+
displayName: string;
|
|
265
|
+
} | null;
|
|
266
|
+
translations: Array<{
|
|
267
|
+
id: string;
|
|
268
|
+
languageCode: string;
|
|
269
|
+
value: string;
|
|
270
|
+
status: Types.TranslationStatus;
|
|
271
|
+
}>;
|
|
272
|
+
}>;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
export type CreateI18nTranslationsMutationVariables = Exact<{
|
|
276
|
+
translations: Array<Types.BulkTranslationInput> | Types.BulkTranslationInput;
|
|
277
|
+
}>;
|
|
278
|
+
export type CreateI18nTranslationsMutation = {
|
|
279
|
+
bulkCreateTranslations: {
|
|
280
|
+
success: boolean;
|
|
281
|
+
successCount: number;
|
|
282
|
+
failureCount: number;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
export type UpdateI18nTranslationMutationVariables = Exact<{
|
|
286
|
+
id: string | number;
|
|
287
|
+
input: Types.UpdateTranslationInput;
|
|
288
|
+
}>;
|
|
289
|
+
export type UpdateI18nTranslationMutation = {
|
|
290
|
+
updateTranslation: {
|
|
291
|
+
id: string;
|
|
292
|
+
value: string;
|
|
293
|
+
status: Types.TranslationStatus;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
142
296
|
export declare const GetI18nCoverageDocument: Apollo.DocumentNode;
|
|
143
297
|
/**
|
|
144
298
|
* __useGetI18nCoverageQuery__
|
|
@@ -169,6 +323,115 @@ export type GetI18nCoverageQueryHookResult = ReturnType<typeof useGetI18nCoverag
|
|
|
169
323
|
export type GetI18nCoverageLazyQueryHookResult = ReturnType<typeof useGetI18nCoverageLazyQuery>;
|
|
170
324
|
export type GetI18nCoverageSuspenseQueryHookResult = ReturnType<typeof useGetI18nCoverageSuspenseQuery>;
|
|
171
325
|
export type GetI18nCoverageQueryResult = Apollo.QueryResult<Types.GetI18nCoverageQuery, Types.GetI18nCoverageQueryVariables>;
|
|
326
|
+
export declare const ExportI18nTranslationsDocument: Apollo.DocumentNode;
|
|
327
|
+
/**
|
|
328
|
+
* __useExportI18nTranslationsQuery__
|
|
329
|
+
*
|
|
330
|
+
* To run a query within a React component, call `useExportI18nTranslationsQuery` and pass it any options that fit your needs.
|
|
331
|
+
* When your component renders, `useExportI18nTranslationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
332
|
+
* you can use to render your UI.
|
|
333
|
+
*
|
|
334
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* const { data, loading, error } = useExportI18nTranslationsQuery({
|
|
338
|
+
* variables: {
|
|
339
|
+
* format: // value for 'format'
|
|
340
|
+
* productId: // value for 'productId'
|
|
341
|
+
* languageCode: // value for 'languageCode'
|
|
342
|
+
* },
|
|
343
|
+
* });
|
|
344
|
+
*/
|
|
345
|
+
export declare function useExportI18nTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables> & ({
|
|
346
|
+
variables: Types.ExportI18nTranslationsQueryVariables;
|
|
347
|
+
skip?: boolean;
|
|
348
|
+
} | {
|
|
349
|
+
skip: boolean;
|
|
350
|
+
})): ApolloReactHooks.useQuery.Result<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables, "empty" | "complete" | "streaming", Types.ExportI18nTranslationsQueryVariables, undefined>;
|
|
351
|
+
export declare function useExportI18nTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
352
|
+
export declare function useExportI18nTranslationsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables>;
|
|
353
|
+
export declare function useExportI18nTranslationsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportI18nTranslationsQuery | undefined, Types.ExportI18nTranslationsQueryVariables>;
|
|
354
|
+
export type ExportI18nTranslationsQueryHookResult = ReturnType<typeof useExportI18nTranslationsQuery>;
|
|
355
|
+
export type ExportI18nTranslationsLazyQueryHookResult = ReturnType<typeof useExportI18nTranslationsLazyQuery>;
|
|
356
|
+
export type ExportI18nTranslationsSuspenseQueryHookResult = ReturnType<typeof useExportI18nTranslationsSuspenseQuery>;
|
|
357
|
+
export type ExportI18nTranslationsQueryResult = Apollo.QueryResult<Types.ExportI18nTranslationsQuery, Types.ExportI18nTranslationsQueryVariables>;
|
|
358
|
+
export declare const GetI18nLanguageDocument: Apollo.DocumentNode;
|
|
359
|
+
/**
|
|
360
|
+
* __useGetI18nLanguageQuery__
|
|
361
|
+
*
|
|
362
|
+
* To run a query within a React component, call `useGetI18nLanguageQuery` and pass it any options that fit your needs.
|
|
363
|
+
* When your component renders, `useGetI18nLanguageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
364
|
+
* you can use to render your UI.
|
|
365
|
+
*
|
|
366
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* const { data, loading, error } = useGetI18nLanguageQuery({
|
|
370
|
+
* variables: {
|
|
371
|
+
* code: // value for 'code'
|
|
372
|
+
* },
|
|
373
|
+
* });
|
|
374
|
+
*/
|
|
375
|
+
export declare function useGetI18nLanguageQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables> & ({
|
|
376
|
+
variables: Types.GetI18nLanguageQueryVariables;
|
|
377
|
+
skip?: boolean;
|
|
378
|
+
} | {
|
|
379
|
+
skip: boolean;
|
|
380
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables, "empty" | "complete" | "streaming", Types.GetI18nLanguageQueryVariables, undefined>;
|
|
381
|
+
export declare function useGetI18nLanguageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
382
|
+
export declare function useGetI18nLanguageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>;
|
|
383
|
+
export declare function useGetI18nLanguageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nLanguageQuery | undefined, Types.GetI18nLanguageQueryVariables>;
|
|
384
|
+
export type GetI18nLanguageQueryHookResult = ReturnType<typeof useGetI18nLanguageQuery>;
|
|
385
|
+
export type GetI18nLanguageLazyQueryHookResult = ReturnType<typeof useGetI18nLanguageLazyQuery>;
|
|
386
|
+
export type GetI18nLanguageSuspenseQueryHookResult = ReturnType<typeof useGetI18nLanguageSuspenseQuery>;
|
|
387
|
+
export type GetI18nLanguageQueryResult = Apollo.QueryResult<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>;
|
|
388
|
+
export declare const CreateI18nLanguageDocument: Apollo.DocumentNode;
|
|
389
|
+
export type CreateI18nLanguageMutationFn = Apollo.MutationFunction<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>;
|
|
390
|
+
/**
|
|
391
|
+
* __useCreateI18nLanguageMutation__
|
|
392
|
+
*
|
|
393
|
+
* To run a mutation, you first call `useCreateI18nLanguageMutation` within a React component and pass it any options that fit your needs.
|
|
394
|
+
* When your component renders, `useCreateI18nLanguageMutation` returns a tuple that includes:
|
|
395
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
396
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
397
|
+
*
|
|
398
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* const [createI18nLanguageMutation, { data, loading, error }] = useCreateI18nLanguageMutation({
|
|
402
|
+
* variables: {
|
|
403
|
+
* input: // value for 'input'
|
|
404
|
+
* },
|
|
405
|
+
* });
|
|
406
|
+
*/
|
|
407
|
+
export declare function useCreateI18nLanguageMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CreateI18nLanguageMutation, any, Apollo.ApolloCache, undefined>;
|
|
408
|
+
export type CreateI18nLanguageMutationHookResult = ReturnType<typeof useCreateI18nLanguageMutation>;
|
|
409
|
+
export type CreateI18nLanguageMutationResult = Apollo.MutationResult<Types.CreateI18nLanguageMutation>;
|
|
410
|
+
export type CreateI18nLanguageMutationOptions = Apollo.BaseMutationOptions<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>;
|
|
411
|
+
export declare const UpdateI18nLanguageDocument: Apollo.DocumentNode;
|
|
412
|
+
export type UpdateI18nLanguageMutationFn = Apollo.MutationFunction<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>;
|
|
413
|
+
/**
|
|
414
|
+
* __useUpdateI18nLanguageMutation__
|
|
415
|
+
*
|
|
416
|
+
* To run a mutation, you first call `useUpdateI18nLanguageMutation` within a React component and pass it any options that fit your needs.
|
|
417
|
+
* When your component renders, `useUpdateI18nLanguageMutation` returns a tuple that includes:
|
|
418
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
419
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
420
|
+
*
|
|
421
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* const [updateI18nLanguageMutation, { data, loading, error }] = useUpdateI18nLanguageMutation({
|
|
425
|
+
* variables: {
|
|
426
|
+
* id: // value for 'id'
|
|
427
|
+
* input: // value for 'input'
|
|
428
|
+
* },
|
|
429
|
+
* });
|
|
430
|
+
*/
|
|
431
|
+
export declare function useUpdateI18nLanguageMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateI18nLanguageMutation, any, Apollo.ApolloCache, undefined>;
|
|
432
|
+
export type UpdateI18nLanguageMutationHookResult = ReturnType<typeof useUpdateI18nLanguageMutation>;
|
|
433
|
+
export type UpdateI18nLanguageMutationResult = Apollo.MutationResult<Types.UpdateI18nLanguageMutation>;
|
|
434
|
+
export type UpdateI18nLanguageMutationOptions = Apollo.BaseMutationOptions<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>;
|
|
172
435
|
export declare const GetI18nLanguagesDocument: Apollo.DocumentNode;
|
|
173
436
|
/**
|
|
174
437
|
* __useGetI18nLanguagesQuery__
|
|
@@ -296,4 +559,78 @@ export declare function usePublishI18nTranslationMutation(baseOptions?: ApolloRe
|
|
|
296
559
|
export type PublishI18nTranslationMutationHookResult = ReturnType<typeof usePublishI18nTranslationMutation>;
|
|
297
560
|
export type PublishI18nTranslationMutationResult = Apollo.MutationResult<Types.PublishI18nTranslationMutation>;
|
|
298
561
|
export type PublishI18nTranslationMutationOptions = Apollo.BaseMutationOptions<Types.PublishI18nTranslationMutation, Types.PublishI18nTranslationMutationVariables>;
|
|
562
|
+
export declare const GetI18nWordsDocument: Apollo.DocumentNode;
|
|
563
|
+
/**
|
|
564
|
+
* __useGetI18nWordsQuery__
|
|
565
|
+
*
|
|
566
|
+
* To run a query within a React component, call `useGetI18nWordsQuery` and pass it any options that fit your needs.
|
|
567
|
+
* When your component renders, `useGetI18nWordsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
568
|
+
* you can use to render your UI.
|
|
569
|
+
*
|
|
570
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
571
|
+
*
|
|
572
|
+
* @example
|
|
573
|
+
* const { data, loading, error } = useGetI18nWordsQuery({
|
|
574
|
+
* variables: {
|
|
575
|
+
* filter: // value for 'filter'
|
|
576
|
+
* limit: // value for 'limit'
|
|
577
|
+
* offset: // value for 'offset'
|
|
578
|
+
* },
|
|
579
|
+
* });
|
|
580
|
+
*/
|
|
581
|
+
export declare function useGetI18nWordsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables, "empty" | "complete" | "streaming", Types.GetI18nWordsQueryVariables, undefined>;
|
|
582
|
+
export declare function useGetI18nWordsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
583
|
+
export declare function useGetI18nWordsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>;
|
|
584
|
+
export declare function useGetI18nWordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nWordsQuery | undefined, Types.GetI18nWordsQueryVariables>;
|
|
585
|
+
export type GetI18nWordsQueryHookResult = ReturnType<typeof useGetI18nWordsQuery>;
|
|
586
|
+
export type GetI18nWordsLazyQueryHookResult = ReturnType<typeof useGetI18nWordsLazyQuery>;
|
|
587
|
+
export type GetI18nWordsSuspenseQueryHookResult = ReturnType<typeof useGetI18nWordsSuspenseQuery>;
|
|
588
|
+
export type GetI18nWordsQueryResult = Apollo.QueryResult<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>;
|
|
589
|
+
export declare const CreateI18nTranslationsDocument: Apollo.DocumentNode;
|
|
590
|
+
export type CreateI18nTranslationsMutationFn = Apollo.MutationFunction<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>;
|
|
591
|
+
/**
|
|
592
|
+
* __useCreateI18nTranslationsMutation__
|
|
593
|
+
*
|
|
594
|
+
* To run a mutation, you first call `useCreateI18nTranslationsMutation` within a React component and pass it any options that fit your needs.
|
|
595
|
+
* When your component renders, `useCreateI18nTranslationsMutation` returns a tuple that includes:
|
|
596
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
597
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
598
|
+
*
|
|
599
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
600
|
+
*
|
|
601
|
+
* @example
|
|
602
|
+
* const [createI18nTranslationsMutation, { data, loading, error }] = useCreateI18nTranslationsMutation({
|
|
603
|
+
* variables: {
|
|
604
|
+
* translations: // value for 'translations'
|
|
605
|
+
* },
|
|
606
|
+
* });
|
|
607
|
+
*/
|
|
608
|
+
export declare function useCreateI18nTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CreateI18nTranslationsMutation, any, Apollo.ApolloCache, undefined>;
|
|
609
|
+
export type CreateI18nTranslationsMutationHookResult = ReturnType<typeof useCreateI18nTranslationsMutation>;
|
|
610
|
+
export type CreateI18nTranslationsMutationResult = Apollo.MutationResult<Types.CreateI18nTranslationsMutation>;
|
|
611
|
+
export type CreateI18nTranslationsMutationOptions = Apollo.BaseMutationOptions<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>;
|
|
612
|
+
export declare const UpdateI18nTranslationDocument: Apollo.DocumentNode;
|
|
613
|
+
export type UpdateI18nTranslationMutationFn = Apollo.MutationFunction<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>;
|
|
614
|
+
/**
|
|
615
|
+
* __useUpdateI18nTranslationMutation__
|
|
616
|
+
*
|
|
617
|
+
* To run a mutation, you first call `useUpdateI18nTranslationMutation` within a React component and pass it any options that fit your needs.
|
|
618
|
+
* When your component renders, `useUpdateI18nTranslationMutation` returns a tuple that includes:
|
|
619
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
620
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
621
|
+
*
|
|
622
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* const [updateI18nTranslationMutation, { data, loading, error }] = useUpdateI18nTranslationMutation({
|
|
626
|
+
* variables: {
|
|
627
|
+
* id: // value for 'id'
|
|
628
|
+
* input: // value for 'input'
|
|
629
|
+
* },
|
|
630
|
+
* });
|
|
631
|
+
*/
|
|
632
|
+
export declare function useUpdateI18nTranslationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateI18nTranslationMutation, any, Apollo.ApolloCache, undefined>;
|
|
633
|
+
export type UpdateI18nTranslationMutationHookResult = ReturnType<typeof useUpdateI18nTranslationMutation>;
|
|
634
|
+
export type UpdateI18nTranslationMutationResult = Apollo.MutationResult<Types.UpdateI18nTranslationMutation>;
|
|
635
|
+
export type UpdateI18nTranslationMutationOptions = Apollo.BaseMutationOptions<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>;
|
|
299
636
|
export {};
|
|
@@ -14,6 +14,83 @@ var r = {}, i = n`
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
`, a = n`
|
|
17
|
+
query ExportI18nTranslations($format: ImportJobFormat!, $productId: String!, $languageCode: String) {
|
|
18
|
+
exportTranslations(
|
|
19
|
+
format: $format
|
|
20
|
+
productId: $productId
|
|
21
|
+
languageCode: $languageCode
|
|
22
|
+
) {
|
|
23
|
+
content
|
|
24
|
+
format
|
|
25
|
+
version
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`, o = n`
|
|
29
|
+
query GetI18nLanguage($code: String!) {
|
|
30
|
+
languageByCode(code: $code) {
|
|
31
|
+
id
|
|
32
|
+
code
|
|
33
|
+
name
|
|
34
|
+
nativeName
|
|
35
|
+
direction
|
|
36
|
+
status
|
|
37
|
+
isDefault
|
|
38
|
+
region
|
|
39
|
+
dateFormat
|
|
40
|
+
timeFormat
|
|
41
|
+
updatedAt
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
function s(e) {
|
|
46
|
+
let n = {
|
|
47
|
+
...r,
|
|
48
|
+
...e
|
|
49
|
+
};
|
|
50
|
+
return t(o, n);
|
|
51
|
+
}
|
|
52
|
+
var c = n`
|
|
53
|
+
mutation CreateI18nLanguage($input: CreateLanguageInput!) {
|
|
54
|
+
createLanguage(input: $input) {
|
|
55
|
+
id
|
|
56
|
+
code
|
|
57
|
+
name
|
|
58
|
+
nativeName
|
|
59
|
+
direction
|
|
60
|
+
status
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
function l(t) {
|
|
65
|
+
let n = {
|
|
66
|
+
...r,
|
|
67
|
+
...t
|
|
68
|
+
};
|
|
69
|
+
return e(c, n);
|
|
70
|
+
}
|
|
71
|
+
var u = n`
|
|
72
|
+
mutation UpdateI18nLanguage($id: ID!, $input: UpdateLanguageInput!) {
|
|
73
|
+
updateLanguage(id: $id, input: $input) {
|
|
74
|
+
id
|
|
75
|
+
code
|
|
76
|
+
name
|
|
77
|
+
nativeName
|
|
78
|
+
direction
|
|
79
|
+
status
|
|
80
|
+
dateFormat
|
|
81
|
+
timeFormat
|
|
82
|
+
updatedAt
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`;
|
|
86
|
+
function d(t) {
|
|
87
|
+
let n = {
|
|
88
|
+
...r,
|
|
89
|
+
...t
|
|
90
|
+
};
|
|
91
|
+
return e(u, n);
|
|
92
|
+
}
|
|
93
|
+
var f = n`
|
|
17
94
|
query GetI18nLanguages($filter: LanguageFilterInput, $limit: Int = 100, $offset: Int = 0) {
|
|
18
95
|
languages(filter: $filter, limit: $limit, offset: $offset) {
|
|
19
96
|
items {
|
|
@@ -35,14 +112,14 @@ var r = {}, i = n`
|
|
|
35
112
|
}
|
|
36
113
|
}
|
|
37
114
|
`;
|
|
38
|
-
function
|
|
115
|
+
function p(e) {
|
|
39
116
|
let n = {
|
|
40
117
|
...r,
|
|
41
118
|
...e
|
|
42
119
|
};
|
|
43
|
-
return t(
|
|
120
|
+
return t(f, n);
|
|
44
121
|
}
|
|
45
|
-
var
|
|
122
|
+
var m = n`
|
|
46
123
|
query GetI18nProducts($filter: I18nProductFilterInput, $limit: Int = 100, $offset: Int = 0) {
|
|
47
124
|
i18nProducts(filter: $filter, limit: $limit, offset: $offset) {
|
|
48
125
|
items {
|
|
@@ -57,14 +134,14 @@ var s = n`
|
|
|
57
134
|
}
|
|
58
135
|
}
|
|
59
136
|
`;
|
|
60
|
-
function
|
|
137
|
+
function h(e) {
|
|
61
138
|
let n = {
|
|
62
139
|
...r,
|
|
63
140
|
...e
|
|
64
141
|
};
|
|
65
|
-
return t(
|
|
142
|
+
return t(m, n);
|
|
66
143
|
}
|
|
67
|
-
var
|
|
144
|
+
var g = n`
|
|
68
145
|
query GetI18nTranslationsByStatus($filter: TranslationFilterInput, $limit: Int = 50, $offset: Int = 0) {
|
|
69
146
|
translations(filter: $filter, limit: $limit, offset: $offset) {
|
|
70
147
|
items {
|
|
@@ -93,14 +170,14 @@ var l = n`
|
|
|
93
170
|
}
|
|
94
171
|
}
|
|
95
172
|
`;
|
|
96
|
-
function
|
|
173
|
+
function _(e) {
|
|
97
174
|
let n = {
|
|
98
175
|
...r,
|
|
99
176
|
...e
|
|
100
177
|
};
|
|
101
|
-
return t(
|
|
178
|
+
return t(g, n);
|
|
102
179
|
}
|
|
103
|
-
var
|
|
180
|
+
var v = n`
|
|
104
181
|
mutation ApproveI18nTranslation($id: ID!) {
|
|
105
182
|
approveTranslation(id: $id) {
|
|
106
183
|
id
|
|
@@ -109,14 +186,14 @@ var d = n`
|
|
|
109
186
|
}
|
|
110
187
|
}
|
|
111
188
|
`;
|
|
112
|
-
function
|
|
189
|
+
function y(t) {
|
|
113
190
|
let n = {
|
|
114
191
|
...r,
|
|
115
192
|
...t
|
|
116
193
|
};
|
|
117
|
-
return e(
|
|
194
|
+
return e(v, n);
|
|
118
195
|
}
|
|
119
|
-
var
|
|
196
|
+
var b = n`
|
|
120
197
|
mutation PublishI18nTranslation($id: ID!) {
|
|
121
198
|
publishTranslation(id: $id) {
|
|
122
199
|
id
|
|
@@ -125,11 +202,74 @@ var p = n`
|
|
|
125
202
|
}
|
|
126
203
|
}
|
|
127
204
|
`;
|
|
128
|
-
function
|
|
205
|
+
function x(t) {
|
|
206
|
+
let n = {
|
|
207
|
+
...r,
|
|
208
|
+
...t
|
|
209
|
+
};
|
|
210
|
+
return e(b, n);
|
|
211
|
+
}
|
|
212
|
+
var S = n`
|
|
213
|
+
query GetI18nWords($filter: TranslationKeyFilterInput, $limit: Int = 50, $offset: Int = 0) {
|
|
214
|
+
translationKeys(filter: $filter, limit: $limit, offset: $offset) {
|
|
215
|
+
items {
|
|
216
|
+
id
|
|
217
|
+
defaultValue
|
|
218
|
+
description
|
|
219
|
+
characterLimit
|
|
220
|
+
namespace {
|
|
221
|
+
id
|
|
222
|
+
displayName
|
|
223
|
+
}
|
|
224
|
+
translations {
|
|
225
|
+
id
|
|
226
|
+
languageCode
|
|
227
|
+
value
|
|
228
|
+
status
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
total
|
|
232
|
+
hasMore
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`;
|
|
236
|
+
function C(e) {
|
|
237
|
+
let n = {
|
|
238
|
+
...r,
|
|
239
|
+
...e
|
|
240
|
+
};
|
|
241
|
+
return t(S, n);
|
|
242
|
+
}
|
|
243
|
+
var w = n`
|
|
244
|
+
mutation CreateI18nTranslations($translations: [BulkTranslationInput!]!) {
|
|
245
|
+
bulkCreateTranslations(translations: $translations) {
|
|
246
|
+
success
|
|
247
|
+
successCount
|
|
248
|
+
failureCount
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
`;
|
|
252
|
+
function T(t) {
|
|
253
|
+
let n = {
|
|
254
|
+
...r,
|
|
255
|
+
...t
|
|
256
|
+
};
|
|
257
|
+
return e(w, n);
|
|
258
|
+
}
|
|
259
|
+
var E = n`
|
|
260
|
+
mutation UpdateI18nTranslation($id: ID!, $input: UpdateTranslationInput!) {
|
|
261
|
+
updateTranslation(id: $id, input: $input) {
|
|
262
|
+
id
|
|
263
|
+
value
|
|
264
|
+
status
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`;
|
|
268
|
+
function D(t) {
|
|
129
269
|
let n = {
|
|
130
270
|
...r,
|
|
131
271
|
...t
|
|
132
272
|
};
|
|
133
|
-
return e(
|
|
273
|
+
return e(E, n);
|
|
134
274
|
}
|
|
135
|
-
export {
|
|
275
|
+
export { v as ApproveI18nTranslationDocument, c as CreateI18nLanguageDocument, w as CreateI18nTranslationsDocument, a as ExportI18nTranslationsDocument, i as GetI18nCoverageDocument, o as GetI18nLanguageDocument, f as GetI18nLanguagesDocument, m as GetI18nProductsDocument, g as GetI18nTranslationsByStatusDocument, S as GetI18nWordsDocument, b as PublishI18nTranslationDocument, u as UpdateI18nLanguageDocument, E as UpdateI18nTranslationDocument, y as useApproveI18nTranslationMutation, l as useCreateI18nLanguageMutation, T as useCreateI18nTranslationsMutation, s as useGetI18nLanguageQuery, p as useGetI18nLanguagesQuery, h as useGetI18nProductsQuery, _ as useGetI18nTranslationsByStatusQuery, C as useGetI18nWordsQuery, x as usePublishI18nTranslationMutation, d as useUpdateI18nLanguageMutation, D as useUpdateI18nTranslationMutation };
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.Active = "ACTIVE", e.Archived = "ARCHIVED", e.Deprecated = "DEPRECATED", e;
|
|
4
4
|
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
-
return e.
|
|
5
|
+
return e.Csv = "CSV", e.Json = "JSON", e.Po = "PO", e.Xliff = "XLIFF", e.Xlsx = "XLSX", e;
|
|
6
6
|
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
-
return e.
|
|
7
|
+
return e.Ltr = "LTR", e.Rtl = "RTL", e;
|
|
8
8
|
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.Active = "ACTIVE", e.Deprecated = "DEPRECATED", e.Draft = "DRAFT", e;
|
|
10
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e.Active = "ACTIVE", e.Deleted = "DELETED", e.Deprecated = "DEPRECATED", e;
|
|
12
|
+
}({}), a = /* @__PURE__ */ function(e) {
|
|
9
13
|
return e.Approved = "APPROVED", e.Draft = "DRAFT", e.PendingReview = "PENDING_REVIEW", e.Published = "PUBLISHED", e;
|
|
10
14
|
}({});
|
|
11
|
-
export { e as I18nProductStatus, t as
|
|
15
|
+
export { e as I18nProductStatus, t as ImportJobFormat, n as LanguageDirection, r as LanguageStatus, i as TranslationKeyStatus, a as TranslationStatus };
|
|
@@ -33,8 +33,10 @@ export declare function I18nRoutes({ basePath }: {
|
|
|
33
33
|
* The route table. With fe-libs' `accountPagesV2` opt-in (BOFF-16785, C5)
|
|
34
34
|
* Languages is one page with tabs: Products, Progress, the review queue and
|
|
35
35
|
* Locales open its tabs (the review queue opens Languages while the queue is
|
|
36
|
-
* hidden).
|
|
37
|
-
*
|
|
36
|
+
* hidden). A language's address (and `locales/<code>`) opens its own page,
|
|
37
|
+
* and `languages/new` opens Add language over Languages (C5b); `export` opens
|
|
38
|
+
* Export over Languages (C5c). The editor and Import stay today's pages. With
|
|
39
|
+
* the opt-in off, today's table, element for element.
|
|
38
40
|
*/
|
|
39
41
|
export declare function I18nRouteTable({ basePath, v2, }: {
|
|
40
42
|
basePath: string;
|