@burdenoff/microfe-i18n 2026.1129.2 → 2026.1129.3

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.
Files changed (36) hide show
  1. package/dist/generated/global-operations.d.ts +292 -0
  2. package/dist/generated/global-operations.js +143 -15
  3. package/dist/generated/global-types.js +3 -1
  4. package/dist/i18n/I18nRoutes.d.ts +4 -2
  5. package/dist/i18n/I18nRoutes.js +48 -47
  6. package/dist/i18n/v2/LanguageDialog.d.ts +17 -0
  7. package/dist/i18n/v2/LanguageDialog.js +193 -0
  8. package/dist/i18n/v2/LanguagesPage.js +81 -53
  9. package/dist/i18n/v2/ReviewTab.d.ts +3 -1
  10. package/dist/i18n/v2/ReviewTab.js +28 -27
  11. package/dist/i18n/v2/TabRedirect.d.ts +8 -0
  12. package/dist/i18n/v2/TabRedirect.js +26 -9
  13. package/dist/i18n/v2/language/FormatsTab.d.ts +6 -0
  14. package/dist/i18n/v2/language/FormatsTab.js +93 -0
  15. package/dist/i18n/v2/language/LanguagePage.d.ts +3 -0
  16. package/dist/i18n/v2/language/LanguagePage.js +245 -0
  17. package/dist/i18n/v2/language/TranslateDialog.d.ts +18 -0
  18. package/dist/i18n/v2/language/TranslateDialog.js +101 -0
  19. package/dist/i18n/v2/language/WordsTab.d.ts +11 -0
  20. package/dist/i18n/v2/language/WordsTab.js +190 -0
  21. package/dist/i18n/v2/language/useLanguage.d.ts +23 -0
  22. package/dist/i18n/v2/language/useLanguage.js +22 -0
  23. package/dist/i18n/v2/language/useWords.d.ts +31 -0
  24. package/dist/i18n/v2/language/useWords.js +51 -0
  25. package/dist/i18n/v2/languageModel.d.ts +61 -0
  26. package/dist/i18n/v2/languageModel.js +120 -0
  27. package/dist/i18n/v2/links.d.ts +4 -1
  28. package/dist/i18n/v2/links.js +11 -10
  29. package/dist/i18n/v2/useAddLanguage.d.ts +10 -0
  30. package/dist/i18n/v2/useAddLanguage.js +30 -0
  31. package/dist/i18n/v2/useDebouncedValue.d.ts +1 -0
  32. package/dist/i18n/v2/useDebouncedValue.js +10 -0
  33. package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +49 -0
  34. package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +21 -0
  35. package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +12 -0
  36. package/package.json +1 -1
@@ -11,6 +11,24 @@ 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;
@@ -30,7 +48,34 @@ export type TranslationFilterInput = {
30
48
  status?: TranslationStatus | null | undefined;
31
49
  tenantId?: string | null | undefined;
32
50
  };
51
+ export type TranslationKeyFilterInput = {
52
+ namespaceId?: string | null | undefined;
53
+ productId?: string | null | undefined;
54
+ search?: string | null | undefined;
55
+ status?: TranslationKeyStatus | null | undefined;
56
+ tags?: Array<string> | null | undefined;
57
+ };
58
+ export type TranslationKeyStatus = 'ACTIVE' | 'DELETED' | 'DEPRECATED';
33
59
  export type TranslationStatus = 'APPROVED' | 'DRAFT' | 'PENDING_REVIEW' | 'PUBLISHED';
60
+ export type UpdateLanguageInput = {
61
+ dateFormat?: string | null | undefined;
62
+ direction?: LanguageDirection | null | undefined;
63
+ fallbackCode?: string | null | undefined;
64
+ metadata?: Record<string, unknown> | null | undefined;
65
+ name?: string | null | undefined;
66
+ nativeName?: string | null | undefined;
67
+ pluralRules?: Record<string, unknown> | null | undefined;
68
+ region?: string | null | undefined;
69
+ status?: LanguageStatus | null | undefined;
70
+ timeFormat?: string | null | undefined;
71
+ };
72
+ export type UpdateTranslationInput = {
73
+ metadata?: Record<string, unknown> | null | undefined;
74
+ notes?: string | null | undefined;
75
+ pluralForms?: Record<string, unknown> | null | undefined;
76
+ status?: TranslationStatus | null | undefined;
77
+ value?: string | null | undefined;
78
+ };
34
79
  export type GetI18nCoverageQueryVariables = Exact<{
35
80
  productId: string;
36
81
  }>;
@@ -44,6 +89,54 @@ export type GetI18nCoverageQuery = {
44
89
  pendingReviewKeys: number;
45
90
  }>;
46
91
  };
92
+ export type GetI18nLanguageQueryVariables = Exact<{
93
+ code: string;
94
+ }>;
95
+ export type GetI18nLanguageQuery = {
96
+ languageByCode: {
97
+ id: string;
98
+ code: string;
99
+ name: string;
100
+ nativeName: string;
101
+ direction: Types.LanguageDirection;
102
+ status: Types.LanguageStatus;
103
+ isDefault: boolean;
104
+ region: string | null;
105
+ dateFormat: string;
106
+ timeFormat: string;
107
+ updatedAt: string;
108
+ } | null;
109
+ };
110
+ export type CreateI18nLanguageMutationVariables = Exact<{
111
+ input: Types.CreateLanguageInput;
112
+ }>;
113
+ export type CreateI18nLanguageMutation = {
114
+ createLanguage: {
115
+ id: string;
116
+ code: string;
117
+ name: string;
118
+ nativeName: string;
119
+ direction: Types.LanguageDirection;
120
+ status: Types.LanguageStatus;
121
+ };
122
+ };
123
+ export type UpdateI18nLanguageMutationVariables = Exact<{
124
+ id: string | number;
125
+ input: Types.UpdateLanguageInput;
126
+ }>;
127
+ export type UpdateI18nLanguageMutation = {
128
+ updateLanguage: {
129
+ id: string;
130
+ code: string;
131
+ name: string;
132
+ nativeName: string;
133
+ direction: Types.LanguageDirection;
134
+ status: Types.LanguageStatus;
135
+ dateFormat: string;
136
+ timeFormat: string;
137
+ updatedAt: string;
138
+ };
139
+ };
47
140
  export type GetI18nLanguagesQueryVariables = Exact<{
48
141
  filter?: Types.LanguageFilterInput | null | undefined;
49
142
  limit?: number | null | undefined;
@@ -139,6 +232,54 @@ export type PublishI18nTranslationMutation = {
139
232
  publishedAt: string | null;
140
233
  };
141
234
  };
235
+ export type GetI18nWordsQueryVariables = Exact<{
236
+ filter?: Types.TranslationKeyFilterInput | null | undefined;
237
+ limit?: number | null | undefined;
238
+ offset?: number | null | undefined;
239
+ }>;
240
+ export type GetI18nWordsQuery = {
241
+ translationKeys: {
242
+ total: number;
243
+ hasMore: boolean;
244
+ items: Array<{
245
+ id: string;
246
+ defaultValue: string | null;
247
+ description: string | null;
248
+ characterLimit: number | null;
249
+ namespace: {
250
+ id: string;
251
+ displayName: string;
252
+ } | null;
253
+ translations: Array<{
254
+ id: string;
255
+ languageCode: string;
256
+ value: string;
257
+ status: Types.TranslationStatus;
258
+ }>;
259
+ }>;
260
+ };
261
+ };
262
+ export type CreateI18nTranslationsMutationVariables = Exact<{
263
+ translations: Array<Types.BulkTranslationInput> | Types.BulkTranslationInput;
264
+ }>;
265
+ export type CreateI18nTranslationsMutation = {
266
+ bulkCreateTranslations: {
267
+ success: boolean;
268
+ successCount: number;
269
+ failureCount: number;
270
+ };
271
+ };
272
+ export type UpdateI18nTranslationMutationVariables = Exact<{
273
+ id: string | number;
274
+ input: Types.UpdateTranslationInput;
275
+ }>;
276
+ export type UpdateI18nTranslationMutation = {
277
+ updateTranslation: {
278
+ id: string;
279
+ value: string;
280
+ status: Types.TranslationStatus;
281
+ };
282
+ };
142
283
  export declare const GetI18nCoverageDocument: Apollo.DocumentNode;
143
284
  /**
144
285
  * __useGetI18nCoverageQuery__
@@ -169,6 +310,83 @@ export type GetI18nCoverageQueryHookResult = ReturnType<typeof useGetI18nCoverag
169
310
  export type GetI18nCoverageLazyQueryHookResult = ReturnType<typeof useGetI18nCoverageLazyQuery>;
170
311
  export type GetI18nCoverageSuspenseQueryHookResult = ReturnType<typeof useGetI18nCoverageSuspenseQuery>;
171
312
  export type GetI18nCoverageQueryResult = Apollo.QueryResult<Types.GetI18nCoverageQuery, Types.GetI18nCoverageQueryVariables>;
313
+ export declare const GetI18nLanguageDocument: Apollo.DocumentNode;
314
+ /**
315
+ * __useGetI18nLanguageQuery__
316
+ *
317
+ * To run a query within a React component, call `useGetI18nLanguageQuery` and pass it any options that fit your needs.
318
+ * When your component renders, `useGetI18nLanguageQuery` returns an object from Apollo Client that contains loading, error, and data properties
319
+ * you can use to render your UI.
320
+ *
321
+ * @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;
322
+ *
323
+ * @example
324
+ * const { data, loading, error } = useGetI18nLanguageQuery({
325
+ * variables: {
326
+ * code: // value for 'code'
327
+ * },
328
+ * });
329
+ */
330
+ export declare function useGetI18nLanguageQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables> & ({
331
+ variables: Types.GetI18nLanguageQueryVariables;
332
+ skip?: boolean;
333
+ } | {
334
+ skip: boolean;
335
+ })): ApolloReactHooks.useQuery.Result<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables, "empty" | "complete" | "streaming", Types.GetI18nLanguageQueryVariables, undefined>;
336
+ export declare function useGetI18nLanguageLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables, "empty" | "complete" | "streaming", undefined>;
337
+ export declare function useGetI18nLanguageSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>;
338
+ export declare function useGetI18nLanguageSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nLanguageQuery | undefined, Types.GetI18nLanguageQueryVariables>;
339
+ export type GetI18nLanguageQueryHookResult = ReturnType<typeof useGetI18nLanguageQuery>;
340
+ export type GetI18nLanguageLazyQueryHookResult = ReturnType<typeof useGetI18nLanguageLazyQuery>;
341
+ export type GetI18nLanguageSuspenseQueryHookResult = ReturnType<typeof useGetI18nLanguageSuspenseQuery>;
342
+ export type GetI18nLanguageQueryResult = Apollo.QueryResult<Types.GetI18nLanguageQuery, Types.GetI18nLanguageQueryVariables>;
343
+ export declare const CreateI18nLanguageDocument: Apollo.DocumentNode;
344
+ export type CreateI18nLanguageMutationFn = Apollo.MutationFunction<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>;
345
+ /**
346
+ * __useCreateI18nLanguageMutation__
347
+ *
348
+ * To run a mutation, you first call `useCreateI18nLanguageMutation` within a React component and pass it any options that fit your needs.
349
+ * When your component renders, `useCreateI18nLanguageMutation` returns a tuple that includes:
350
+ * - A mutate function that you can call at any time to execute the mutation
351
+ * - An object with fields that represent the current status of the mutation's execution
352
+ *
353
+ * @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;
354
+ *
355
+ * @example
356
+ * const [createI18nLanguageMutation, { data, loading, error }] = useCreateI18nLanguageMutation({
357
+ * variables: {
358
+ * input: // value for 'input'
359
+ * },
360
+ * });
361
+ */
362
+ export declare function useCreateI18nLanguageMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CreateI18nLanguageMutation, any, Apollo.ApolloCache, undefined>;
363
+ export type CreateI18nLanguageMutationHookResult = ReturnType<typeof useCreateI18nLanguageMutation>;
364
+ export type CreateI18nLanguageMutationResult = Apollo.MutationResult<Types.CreateI18nLanguageMutation>;
365
+ export type CreateI18nLanguageMutationOptions = Apollo.BaseMutationOptions<Types.CreateI18nLanguageMutation, Types.CreateI18nLanguageMutationVariables>;
366
+ export declare const UpdateI18nLanguageDocument: Apollo.DocumentNode;
367
+ export type UpdateI18nLanguageMutationFn = Apollo.MutationFunction<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>;
368
+ /**
369
+ * __useUpdateI18nLanguageMutation__
370
+ *
371
+ * To run a mutation, you first call `useUpdateI18nLanguageMutation` within a React component and pass it any options that fit your needs.
372
+ * When your component renders, `useUpdateI18nLanguageMutation` returns a tuple that includes:
373
+ * - A mutate function that you can call at any time to execute the mutation
374
+ * - An object with fields that represent the current status of the mutation's execution
375
+ *
376
+ * @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;
377
+ *
378
+ * @example
379
+ * const [updateI18nLanguageMutation, { data, loading, error }] = useUpdateI18nLanguageMutation({
380
+ * variables: {
381
+ * id: // value for 'id'
382
+ * input: // value for 'input'
383
+ * },
384
+ * });
385
+ */
386
+ export declare function useUpdateI18nLanguageMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateI18nLanguageMutation, any, Apollo.ApolloCache, undefined>;
387
+ export type UpdateI18nLanguageMutationHookResult = ReturnType<typeof useUpdateI18nLanguageMutation>;
388
+ export type UpdateI18nLanguageMutationResult = Apollo.MutationResult<Types.UpdateI18nLanguageMutation>;
389
+ export type UpdateI18nLanguageMutationOptions = Apollo.BaseMutationOptions<Types.UpdateI18nLanguageMutation, Types.UpdateI18nLanguageMutationVariables>;
172
390
  export declare const GetI18nLanguagesDocument: Apollo.DocumentNode;
173
391
  /**
174
392
  * __useGetI18nLanguagesQuery__
@@ -296,4 +514,78 @@ export declare function usePublishI18nTranslationMutation(baseOptions?: ApolloRe
296
514
  export type PublishI18nTranslationMutationHookResult = ReturnType<typeof usePublishI18nTranslationMutation>;
297
515
  export type PublishI18nTranslationMutationResult = Apollo.MutationResult<Types.PublishI18nTranslationMutation>;
298
516
  export type PublishI18nTranslationMutationOptions = Apollo.BaseMutationOptions<Types.PublishI18nTranslationMutation, Types.PublishI18nTranslationMutationVariables>;
517
+ export declare const GetI18nWordsDocument: Apollo.DocumentNode;
518
+ /**
519
+ * __useGetI18nWordsQuery__
520
+ *
521
+ * To run a query within a React component, call `useGetI18nWordsQuery` and pass it any options that fit your needs.
522
+ * When your component renders, `useGetI18nWordsQuery` returns an object from Apollo Client that contains loading, error, and data properties
523
+ * you can use to render your UI.
524
+ *
525
+ * @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;
526
+ *
527
+ * @example
528
+ * const { data, loading, error } = useGetI18nWordsQuery({
529
+ * variables: {
530
+ * filter: // value for 'filter'
531
+ * limit: // value for 'limit'
532
+ * offset: // value for 'offset'
533
+ * },
534
+ * });
535
+ */
536
+ export declare function useGetI18nWordsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables, "empty" | "complete" | "streaming", Types.GetI18nWordsQueryVariables, undefined>;
537
+ export declare function useGetI18nWordsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables, "empty" | "complete" | "streaming", undefined>;
538
+ export declare function useGetI18nWordsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>;
539
+ export declare function useGetI18nWordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetI18nWordsQuery | undefined, Types.GetI18nWordsQueryVariables>;
540
+ export type GetI18nWordsQueryHookResult = ReturnType<typeof useGetI18nWordsQuery>;
541
+ export type GetI18nWordsLazyQueryHookResult = ReturnType<typeof useGetI18nWordsLazyQuery>;
542
+ export type GetI18nWordsSuspenseQueryHookResult = ReturnType<typeof useGetI18nWordsSuspenseQuery>;
543
+ export type GetI18nWordsQueryResult = Apollo.QueryResult<Types.GetI18nWordsQuery, Types.GetI18nWordsQueryVariables>;
544
+ export declare const CreateI18nTranslationsDocument: Apollo.DocumentNode;
545
+ export type CreateI18nTranslationsMutationFn = Apollo.MutationFunction<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>;
546
+ /**
547
+ * __useCreateI18nTranslationsMutation__
548
+ *
549
+ * To run a mutation, you first call `useCreateI18nTranslationsMutation` within a React component and pass it any options that fit your needs.
550
+ * When your component renders, `useCreateI18nTranslationsMutation` returns a tuple that includes:
551
+ * - A mutate function that you can call at any time to execute the mutation
552
+ * - An object with fields that represent the current status of the mutation's execution
553
+ *
554
+ * @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;
555
+ *
556
+ * @example
557
+ * const [createI18nTranslationsMutation, { data, loading, error }] = useCreateI18nTranslationsMutation({
558
+ * variables: {
559
+ * translations: // value for 'translations'
560
+ * },
561
+ * });
562
+ */
563
+ export declare function useCreateI18nTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.CreateI18nTranslationsMutation, any, Apollo.ApolloCache, undefined>;
564
+ export type CreateI18nTranslationsMutationHookResult = ReturnType<typeof useCreateI18nTranslationsMutation>;
565
+ export type CreateI18nTranslationsMutationResult = Apollo.MutationResult<Types.CreateI18nTranslationsMutation>;
566
+ export type CreateI18nTranslationsMutationOptions = Apollo.BaseMutationOptions<Types.CreateI18nTranslationsMutation, Types.CreateI18nTranslationsMutationVariables>;
567
+ export declare const UpdateI18nTranslationDocument: Apollo.DocumentNode;
568
+ export type UpdateI18nTranslationMutationFn = Apollo.MutationFunction<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>;
569
+ /**
570
+ * __useUpdateI18nTranslationMutation__
571
+ *
572
+ * To run a mutation, you first call `useUpdateI18nTranslationMutation` within a React component and pass it any options that fit your needs.
573
+ * When your component renders, `useUpdateI18nTranslationMutation` returns a tuple that includes:
574
+ * - A mutate function that you can call at any time to execute the mutation
575
+ * - An object with fields that represent the current status of the mutation's execution
576
+ *
577
+ * @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;
578
+ *
579
+ * @example
580
+ * const [updateI18nTranslationMutation, { data, loading, error }] = useUpdateI18nTranslationMutation({
581
+ * variables: {
582
+ * id: // value for 'id'
583
+ * input: // value for 'input'
584
+ * },
585
+ * });
586
+ */
587
+ export declare function useUpdateI18nTranslationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.UpdateI18nTranslationMutation, any, Apollo.ApolloCache, undefined>;
588
+ export type UpdateI18nTranslationMutationHookResult = ReturnType<typeof useUpdateI18nTranslationMutation>;
589
+ export type UpdateI18nTranslationMutationResult = Apollo.MutationResult<Types.UpdateI18nTranslationMutation>;
590
+ export type UpdateI18nTranslationMutationOptions = Apollo.BaseMutationOptions<Types.UpdateI18nTranslationMutation, Types.UpdateI18nTranslationMutationVariables>;
299
591
  export {};
@@ -14,6 +14,71 @@ var r = {}, i = n`
14
14
  }
15
15
  }
16
16
  `, a = n`
17
+ query GetI18nLanguage($code: String!) {
18
+ languageByCode(code: $code) {
19
+ id
20
+ code
21
+ name
22
+ nativeName
23
+ direction
24
+ status
25
+ isDefault
26
+ region
27
+ dateFormat
28
+ timeFormat
29
+ updatedAt
30
+ }
31
+ }
32
+ `;
33
+ function o(e) {
34
+ let n = {
35
+ ...r,
36
+ ...e
37
+ };
38
+ return t(a, n);
39
+ }
40
+ var s = n`
41
+ mutation CreateI18nLanguage($input: CreateLanguageInput!) {
42
+ createLanguage(input: $input) {
43
+ id
44
+ code
45
+ name
46
+ nativeName
47
+ direction
48
+ status
49
+ }
50
+ }
51
+ `;
52
+ function c(t) {
53
+ let n = {
54
+ ...r,
55
+ ...t
56
+ };
57
+ return e(s, n);
58
+ }
59
+ var l = n`
60
+ mutation UpdateI18nLanguage($id: ID!, $input: UpdateLanguageInput!) {
61
+ updateLanguage(id: $id, input: $input) {
62
+ id
63
+ code
64
+ name
65
+ nativeName
66
+ direction
67
+ status
68
+ dateFormat
69
+ timeFormat
70
+ updatedAt
71
+ }
72
+ }
73
+ `;
74
+ function u(t) {
75
+ let n = {
76
+ ...r,
77
+ ...t
78
+ };
79
+ return e(l, n);
80
+ }
81
+ var d = n`
17
82
  query GetI18nLanguages($filter: LanguageFilterInput, $limit: Int = 100, $offset: Int = 0) {
18
83
  languages(filter: $filter, limit: $limit, offset: $offset) {
19
84
  items {
@@ -35,14 +100,14 @@ var r = {}, i = n`
35
100
  }
36
101
  }
37
102
  `;
38
- function o(e) {
103
+ function f(e) {
39
104
  let n = {
40
105
  ...r,
41
106
  ...e
42
107
  };
43
- return t(a, n);
108
+ return t(d, n);
44
109
  }
45
- var s = n`
110
+ var p = n`
46
111
  query GetI18nProducts($filter: I18nProductFilterInput, $limit: Int = 100, $offset: Int = 0) {
47
112
  i18nProducts(filter: $filter, limit: $limit, offset: $offset) {
48
113
  items {
@@ -57,14 +122,14 @@ var s = n`
57
122
  }
58
123
  }
59
124
  `;
60
- function c(e) {
125
+ function m(e) {
61
126
  let n = {
62
127
  ...r,
63
128
  ...e
64
129
  };
65
- return t(s, n);
130
+ return t(p, n);
66
131
  }
67
- var l = n`
132
+ var h = n`
68
133
  query GetI18nTranslationsByStatus($filter: TranslationFilterInput, $limit: Int = 50, $offset: Int = 0) {
69
134
  translations(filter: $filter, limit: $limit, offset: $offset) {
70
135
  items {
@@ -93,14 +158,14 @@ var l = n`
93
158
  }
94
159
  }
95
160
  `;
96
- function u(e) {
161
+ function g(e) {
97
162
  let n = {
98
163
  ...r,
99
164
  ...e
100
165
  };
101
- return t(l, n);
166
+ return t(h, n);
102
167
  }
103
- var d = n`
168
+ var _ = n`
104
169
  mutation ApproveI18nTranslation($id: ID!) {
105
170
  approveTranslation(id: $id) {
106
171
  id
@@ -109,14 +174,14 @@ var d = n`
109
174
  }
110
175
  }
111
176
  `;
112
- function f(t) {
177
+ function v(t) {
113
178
  let n = {
114
179
  ...r,
115
180
  ...t
116
181
  };
117
- return e(d, n);
182
+ return e(_, n);
118
183
  }
119
- var p = n`
184
+ var y = n`
120
185
  mutation PublishI18nTranslation($id: ID!) {
121
186
  publishTranslation(id: $id) {
122
187
  id
@@ -125,11 +190,74 @@ var p = n`
125
190
  }
126
191
  }
127
192
  `;
128
- function m(t) {
193
+ function b(t) {
194
+ let n = {
195
+ ...r,
196
+ ...t
197
+ };
198
+ return e(y, n);
199
+ }
200
+ var x = n`
201
+ query GetI18nWords($filter: TranslationKeyFilterInput, $limit: Int = 50, $offset: Int = 0) {
202
+ translationKeys(filter: $filter, limit: $limit, offset: $offset) {
203
+ items {
204
+ id
205
+ defaultValue
206
+ description
207
+ characterLimit
208
+ namespace {
209
+ id
210
+ displayName
211
+ }
212
+ translations {
213
+ id
214
+ languageCode
215
+ value
216
+ status
217
+ }
218
+ }
219
+ total
220
+ hasMore
221
+ }
222
+ }
223
+ `;
224
+ function S(e) {
225
+ let n = {
226
+ ...r,
227
+ ...e
228
+ };
229
+ return t(x, n);
230
+ }
231
+ var C = n`
232
+ mutation CreateI18nTranslations($translations: [BulkTranslationInput!]!) {
233
+ bulkCreateTranslations(translations: $translations) {
234
+ success
235
+ successCount
236
+ failureCount
237
+ }
238
+ }
239
+ `;
240
+ function w(t) {
241
+ let n = {
242
+ ...r,
243
+ ...t
244
+ };
245
+ return e(C, n);
246
+ }
247
+ var T = n`
248
+ mutation UpdateI18nTranslation($id: ID!, $input: UpdateTranslationInput!) {
249
+ updateTranslation(id: $id, input: $input) {
250
+ id
251
+ value
252
+ status
253
+ }
254
+ }
255
+ `;
256
+ function E(t) {
129
257
  let n = {
130
258
  ...r,
131
259
  ...t
132
260
  };
133
- return e(p, n);
261
+ return e(T, n);
134
262
  }
135
- export { d as ApproveI18nTranslationDocument, i as GetI18nCoverageDocument, a as GetI18nLanguagesDocument, s as GetI18nProductsDocument, l as GetI18nTranslationsByStatusDocument, p as PublishI18nTranslationDocument, f as useApproveI18nTranslationMutation, o as useGetI18nLanguagesQuery, c as useGetI18nProductsQuery, u as useGetI18nTranslationsByStatusQuery, m as usePublishI18nTranslationMutation };
263
+ export { _ as ApproveI18nTranslationDocument, s as CreateI18nLanguageDocument, C as CreateI18nTranslationsDocument, i as GetI18nCoverageDocument, a as GetI18nLanguageDocument, d as GetI18nLanguagesDocument, p as GetI18nProductsDocument, h as GetI18nTranslationsByStatusDocument, x as GetI18nWordsDocument, y as PublishI18nTranslationDocument, l as UpdateI18nLanguageDocument, T as UpdateI18nTranslationDocument, v as useApproveI18nTranslationMutation, c as useCreateI18nLanguageMutation, w as useCreateI18nTranslationsMutation, o as useGetI18nLanguageQuery, f as useGetI18nLanguagesQuery, m as useGetI18nProductsQuery, g as useGetI18nTranslationsByStatusQuery, S as useGetI18nWordsQuery, b as usePublishI18nTranslationMutation, u as useUpdateI18nLanguageMutation, E as useUpdateI18nTranslationMutation };
@@ -6,6 +6,8 @@ var e = /* @__PURE__ */ function(e) {
6
6
  }({}), n = /* @__PURE__ */ function(e) {
7
7
  return e.Active = "ACTIVE", e.Deprecated = "DEPRECATED", e.Draft = "DRAFT", e;
8
8
  }({}), r = /* @__PURE__ */ function(e) {
9
+ return e.Active = "ACTIVE", e.Deleted = "DELETED", e.Deprecated = "DEPRECATED", e;
10
+ }({}), i = /* @__PURE__ */ function(e) {
9
11
  return e.Approved = "APPROVED", e.Draft = "DRAFT", e.PendingReview = "PENDING_REVIEW", e.Published = "PUBLISHED", e;
10
12
  }({});
11
- export { e as I18nProductStatus, t as LanguageDirection, n as LanguageStatus, r as TranslationStatus };
13
+ export { e as I18nProductStatus, t as LanguageDirection, n as LanguageStatus, r as TranslationKeyStatus, i 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). The language settings, the editor, Import and Export stay today's
37
- * pages until C5b. With the opt-in off, today's table, element for element.
36
+ * hidden). A language's address (and `locales/<code>`) opens its own page,
37
+ * and `languages/new` opens Add language over Languages (C5b). The editor,
38
+ * Import and Export stay today's pages until C5c. With the opt-in off,
39
+ * today's table, element for element.
38
40
  */
39
41
  export declare function I18nRouteTable({ basePath, v2, }: {
40
42
  basePath: string;