@sanity/document-internationalization 0.0.1-beta.1

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 (91) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +30 -0
  3. package/config.dist.json +4 -0
  4. package/lib/actions/DeleteWithi18nAction.d.ts +16 -0
  5. package/lib/actions/DuplicateWithi18nAction.d.ts +8 -0
  6. package/lib/actions/PublishWithi18nAction.d.ts +9 -0
  7. package/lib/actions/index.d.ts +8 -0
  8. package/lib/actions/index.js +19549 -0
  9. package/lib/actions/index.js.map +1 -0
  10. package/lib/badges/LanguageBadge.d.ts +5 -0
  11. package/lib/badges/index.d.ts +5 -0
  12. package/lib/badges/index.js +17324 -0
  13. package/lib/badges/index.js.map +1 -0
  14. package/lib/constants/I18nDelimiter.d.ts +1 -0
  15. package/lib/constants/I18nPrefix.d.ts +1 -0
  16. package/lib/constants/IdStructure.d.ts +4 -0
  17. package/lib/constants/LanguageCultures.d.ts +4 -0
  18. package/lib/constants/ReferenceBehavior.d.ts +5 -0
  19. package/lib/constants/UiMessages.d.ts +34 -0
  20. package/lib/constants/index.d.ts +6 -0
  21. package/lib/constants/index.js +736 -0
  22. package/lib/constants/index.js.map +1 -0
  23. package/lib/structure/IDefaultDocumentNodeStructureProps.d.ts +4 -0
  24. package/lib/structure/components/Flag/Flag.d.ts +6 -0
  25. package/lib/structure/components/Flag/allEmojiFlagCodes.d.ts +1 -0
  26. package/lib/structure/components/Flag/index.d.ts +1 -0
  27. package/lib/structure/components/MaintenanceTab/MaintenanceTab.d.ts +2 -0
  28. package/lib/structure/components/MaintenanceTab/index.d.ts +1 -0
  29. package/lib/structure/components/MaintenanceTabResult/MaintenanceTabResult.d.ts +10 -0
  30. package/lib/structure/components/MaintenanceTabResult/index.d.ts +1 -0
  31. package/lib/structure/components/MaintenanceTabTypeSelector/MaintenanceTabTypeSelector.d.ts +8 -0
  32. package/lib/structure/components/MaintenanceTabTypeSelector/index.d.ts +1 -0
  33. package/lib/structure/components/TranslationLink/TranslationLink.d.ts +12 -0
  34. package/lib/structure/components/TranslationLink/index.d.ts +1 -0
  35. package/lib/structure/components/TranslationsComponentFactory/TranslationsComponentFactory.d.ts +5 -0
  36. package/lib/structure/components/TranslationsComponentFactory/index.d.ts +1 -0
  37. package/lib/structure/hooks/index.d.ts +1 -0
  38. package/lib/structure/hooks/useDocumentsInformation.d.ts +20 -0
  39. package/lib/structure/index.d.ts +13 -0
  40. package/lib/structure/index.js +20464 -0
  41. package/lib/structure/index.js.map +1 -0
  42. package/lib/structure/utils/fixBaseDocumentRefs.d.ts +2 -0
  43. package/lib/structure/utils/fixBaseLanguageMismatch.d.ts +2 -0
  44. package/lib/structure/utils/fixIdStructureMismatchDocuments.d.ts +2 -0
  45. package/lib/structure/utils/fixLanguageFields.d.ts +2 -0
  46. package/lib/structure/utils/fixOrphanedDocuments.d.ts +2 -0
  47. package/lib/structure/utils/fixReferenceBehaviorMismatch.d.ts +2 -0
  48. package/lib/structure/utils/fixTranslationRefs.d.ts +2 -0
  49. package/lib/structure/utils/index.d.ts +6 -0
  50. package/lib/types/IEditState.d.ts +5 -0
  51. package/lib/types/ILanguageObject.d.ts +6 -0
  52. package/lib/types/ILanguageQuery.d.ts +10 -0
  53. package/lib/types/IResolverProps.d.ts +9 -0
  54. package/lib/types/ITranslationRef.d.ts +6 -0
  55. package/lib/types/IType.d.ts +38 -0
  56. package/lib/types/IUseDocumentOperationResult.d.ts +11 -0
  57. package/lib/types/TFieldNamesConfig.d.ts +5 -0
  58. package/lib/types/TLanguage.d.ts +2 -0
  59. package/lib/types/TLanguagesOption.d.ts +3 -0
  60. package/lib/types/TSchema.d.ts +6 -0
  61. package/lib/types/Ti18nConfig.d.ts +10 -0
  62. package/lib/types/Ti18nDocument.d.ts +13 -0
  63. package/lib/types/Ti18nSchema.d.ts +5 -0
  64. package/lib/types/index.d.ts +14 -0
  65. package/lib/utils/baseToTop.d.ts +1 -0
  66. package/lib/utils/batch.d.ts +1 -0
  67. package/lib/utils/buildDocId.d.ts +1 -0
  68. package/lib/utils/createSanityReference.d.ts +5 -0
  69. package/lib/utils/getAllSchemas.d.ts +2 -0
  70. package/lib/utils/getBaseIdFromId.d.ts +1 -0
  71. package/lib/utils/getBaseLanguage.d.ts +2 -0
  72. package/lib/utils/getConfig.d.ts +6 -0
  73. package/lib/utils/getFlag.d.ts +2 -0
  74. package/lib/utils/getLanguageFromId.d.ts +1 -0
  75. package/lib/utils/getLanguagesFromOption.d.ts +3 -0
  76. package/lib/utils/getSanityClient.d.ts +1 -0
  77. package/lib/utils/getSchema.d.ts +2 -0
  78. package/lib/utils/getTranslationsForId.d.ts +2 -0
  79. package/lib/utils/index.d.ts +16 -0
  80. package/lib/utils/index.js +18425 -0
  81. package/lib/utils/index.js.map +1 -0
  82. package/lib/utils/makeObjectKey.d.ts +1 -0
  83. package/lib/utils/normalizeLanguageList.d.ts +6 -0
  84. package/lib/utils/serializePath.d.ts +2 -0
  85. package/lib/utils/updateIntlFieldsForDocument.d.ts +2 -0
  86. package/lib/validators/index.d.ts +1 -0
  87. package/lib/validators/index.js +17309 -0
  88. package/lib/validators/index.js.map +1 -0
  89. package/lib/validators/isSlugUnique.d.ts +2 -0
  90. package/package.json +151 -0
  91. package/sanity.json +28 -0
@@ -0,0 +1,736 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var LanguageCultures = [{
6
+ value: 'af',
7
+ title: 'Afrikaans'
8
+ }, {
9
+ value: 'af-ZA',
10
+ title: 'Afrikaans (South Africa)'
11
+ }, {
12
+ value: 'ar',
13
+ title: 'Arabic'
14
+ }, {
15
+ value: 'ar-AE',
16
+ title: 'Arabic (U.A.E.)'
17
+ }, {
18
+ value: 'ar-BH',
19
+ title: 'Arabic (Bahrain)'
20
+ }, {
21
+ value: 'ar-DZ',
22
+ title: 'Arabic (Algeria)'
23
+ }, {
24
+ value: 'ar-EG',
25
+ title: 'Arabic (Egypt)'
26
+ }, {
27
+ value: 'ar-IQ',
28
+ title: 'Arabic (Iraq)'
29
+ }, {
30
+ value: 'ar-JO',
31
+ title: 'Arabic (Jordan)'
32
+ }, {
33
+ value: 'ar-KW',
34
+ title: 'Arabic (Kuwait)'
35
+ }, {
36
+ value: 'ar-LB',
37
+ title: 'Arabic (Lebanon)'
38
+ }, {
39
+ value: 'ar-LY',
40
+ title: 'Arabic (Libya)'
41
+ }, {
42
+ value: 'ar-MA',
43
+ title: 'Arabic (Morocco)'
44
+ }, {
45
+ value: 'ar-OM',
46
+ title: 'Arabic (Oman)'
47
+ }, {
48
+ value: 'ar-QA',
49
+ title: 'Arabic (Qatar)'
50
+ }, {
51
+ value: 'ar-SA',
52
+ title: 'Arabic (Saudi Arabia)'
53
+ }, {
54
+ value: 'ar-SY',
55
+ title: 'Arabic (Syria)'
56
+ }, {
57
+ value: 'ar-TN',
58
+ title: 'Arabic (Tunisia)'
59
+ }, {
60
+ value: 'ar-YE',
61
+ title: 'Arabic (Yemen)'
62
+ }, {
63
+ value: 'az',
64
+ title: 'Azeri'
65
+ }, {
66
+ value: 'az-Cyrl-AZ',
67
+ title: 'Azeri (Cyrillic, Azerbaijan)'
68
+ }, {
69
+ value: 'az-Latn-AZ',
70
+ title: 'Azeri (Latin, Azerbaijan)'
71
+ }, {
72
+ value: 'be',
73
+ title: 'Belarusian'
74
+ }, {
75
+ value: 'be-BY',
76
+ title: 'Belarusian (Belarus)'
77
+ }, {
78
+ value: 'bg',
79
+ title: 'Bulgarian'
80
+ }, {
81
+ value: 'bg-BG',
82
+ title: 'Bulgarian (Bulgaria)'
83
+ }, {
84
+ value: 'bs-Latn-BA',
85
+ title: 'Bosnian (Bosnia and Herzegovina)'
86
+ }, {
87
+ value: 'ca',
88
+ title: 'Catalan'
89
+ }, {
90
+ value: 'ca-ES',
91
+ title: 'Catalan (Catalan)'
92
+ }, {
93
+ value: 'cs',
94
+ title: 'Czech'
95
+ }, {
96
+ value: 'cs-CZ',
97
+ title: 'Czech (Czech Republic)'
98
+ }, {
99
+ value: 'cy-GB',
100
+ title: 'Welsh (United Kingdom)'
101
+ }, {
102
+ value: 'da',
103
+ title: 'Danish'
104
+ }, {
105
+ value: 'da-DK',
106
+ title: 'Danish (Denmark)'
107
+ }, {
108
+ value: 'de',
109
+ title: 'German'
110
+ }, {
111
+ value: 'de-AT',
112
+ title: 'German (Austria)'
113
+ }, {
114
+ value: 'de-DE',
115
+ title: 'German (Germany)'
116
+ }, {
117
+ value: 'de-CH',
118
+ title: 'German (Switzerland)'
119
+ }, {
120
+ value: 'de-LI',
121
+ title: 'German (Liechtenstein)'
122
+ }, {
123
+ value: 'de-LU',
124
+ title: 'German (Luxembourg)'
125
+ }, {
126
+ value: 'dv',
127
+ title: 'Divehi'
128
+ }, {
129
+ value: 'dv-MV',
130
+ title: 'Divehi (Maldives)'
131
+ }, {
132
+ value: 'el',
133
+ title: 'Greek'
134
+ }, {
135
+ value: 'el-GR',
136
+ title: 'Greek (Greece)'
137
+ }, {
138
+ value: 'en',
139
+ title: 'English'
140
+ }, {
141
+ value: 'en-029',
142
+ title: 'English (Caribbean)'
143
+ }, {
144
+ value: 'en-AU',
145
+ title: 'English (Australia)'
146
+ }, {
147
+ value: 'en-BZ',
148
+ title: 'English (Belize)'
149
+ }, {
150
+ value: 'en-CA',
151
+ title: 'English (Canada)'
152
+ }, {
153
+ value: 'en-GB',
154
+ title: 'English (United Kingdom)'
155
+ }, {
156
+ value: 'en-IE',
157
+ title: 'English (Ireland)'
158
+ }, {
159
+ value: 'en-JM',
160
+ title: 'English (Jamaica)'
161
+ }, {
162
+ value: 'en-NZ',
163
+ title: 'English (New Zealand)'
164
+ }, {
165
+ value: 'en-PH',
166
+ title: 'English (Republic of the Philippines)'
167
+ }, {
168
+ value: 'en-TT',
169
+ title: 'English (Trinidad and Tobago)'
170
+ }, {
171
+ value: 'en-US',
172
+ title: 'English (United States)'
173
+ }, {
174
+ value: 'en-ZA',
175
+ title: 'English (South Africa)'
176
+ }, {
177
+ value: 'en-ZW',
178
+ title: 'English (Zimbabwe)'
179
+ }, {
180
+ value: 'es',
181
+ title: 'Spanish'
182
+ }, {
183
+ value: 'es-AR',
184
+ title: 'Spanish (Argentina)'
185
+ }, {
186
+ value: 'es-BO',
187
+ title: 'Spanish (Bolivia)'
188
+ }, {
189
+ value: 'es-CL',
190
+ title: 'Spanish (Chile)'
191
+ }, {
192
+ value: 'es-CO',
193
+ title: 'Spanish (Colombia)'
194
+ }, {
195
+ value: 'es-CR',
196
+ title: 'Spanish (Costa Rica)'
197
+ }, {
198
+ value: 'es-DO',
199
+ title: 'Spanish (Dominican Republic)'
200
+ }, {
201
+ value: 'es-EC',
202
+ title: 'Spanish (Ecuador)'
203
+ }, {
204
+ value: 'es-ES',
205
+ title: 'Spanish (Spain)'
206
+ }, {
207
+ value: 'es-GT',
208
+ title: 'Spanish (Guatemala)'
209
+ }, {
210
+ value: 'es-HN',
211
+ title: 'Spanish (Honduras)'
212
+ }, {
213
+ value: 'es-MX',
214
+ title: 'Spanish (Mexico)'
215
+ }, {
216
+ value: 'es-NI',
217
+ title: 'Spanish (Nicaragua)'
218
+ }, {
219
+ value: 'es-PA',
220
+ title: 'Spanish (Panama)'
221
+ }, {
222
+ value: 'es-PE',
223
+ title: 'Spanish (Peru)'
224
+ }, {
225
+ value: 'es-PR',
226
+ title: 'Spanish (Puerto Rico)'
227
+ }, {
228
+ value: 'es-PY',
229
+ title: 'Spanish (Paraguay)'
230
+ }, {
231
+ value: 'es-SV',
232
+ title: 'Spanish (El Salvador)'
233
+ }, {
234
+ value: 'es-UY',
235
+ title: 'Spanish (Uruguay)'
236
+ }, {
237
+ value: 'es-VE',
238
+ title: 'Spanish (Venezuela)'
239
+ }, {
240
+ value: 'et',
241
+ title: 'Estonian'
242
+ }, {
243
+ value: 'et-EE',
244
+ title: 'Estonian (Estonia)'
245
+ }, {
246
+ value: 'eu',
247
+ title: 'Basque'
248
+ }, {
249
+ value: 'eu-ES',
250
+ title: 'Basque (Basque)'
251
+ }, {
252
+ value: 'fa',
253
+ title: 'Persian'
254
+ }, {
255
+ value: 'fa-IR',
256
+ title: 'Persian (Iran)'
257
+ }, {
258
+ value: 'fi',
259
+ title: 'Finnish'
260
+ }, {
261
+ value: 'fi-FI',
262
+ title: 'Finnish (Finland)'
263
+ }, {
264
+ value: 'fo',
265
+ title: 'Faroese'
266
+ }, {
267
+ value: 'fo-FO',
268
+ title: 'Faroese (Faroe Islands)'
269
+ }, {
270
+ value: 'fr',
271
+ title: 'French'
272
+ }, {
273
+ value: 'fr-BE',
274
+ title: 'French (Belgium)'
275
+ }, {
276
+ value: 'fr-CA',
277
+ title: 'French (Canada)'
278
+ }, {
279
+ value: 'fr-FR',
280
+ title: 'French (France)'
281
+ }, {
282
+ value: 'fr-CH',
283
+ title: 'French (Switzerland)'
284
+ }, {
285
+ value: 'fr-LU',
286
+ title: 'French (Luxembourg)'
287
+ }, {
288
+ value: 'fr-MC',
289
+ title: 'French (Principality of Monaco)'
290
+ }, {
291
+ value: 'gl',
292
+ title: 'Galician'
293
+ }, {
294
+ value: 'gl-ES',
295
+ title: 'Galician (Galician)'
296
+ }, {
297
+ value: 'gu',
298
+ title: 'Gujarati'
299
+ }, {
300
+ value: 'gu-IN',
301
+ title: 'Gujarati (India)'
302
+ }, {
303
+ value: 'he',
304
+ title: 'Hebrew'
305
+ }, {
306
+ value: 'he-IL',
307
+ title: 'Hebrew (Israel)'
308
+ }, {
309
+ value: 'hi',
310
+ title: 'Hindi'
311
+ }, {
312
+ value: 'hi-IN',
313
+ title: 'Hindi (India)'
314
+ }, {
315
+ value: 'hr',
316
+ title: 'Croatian'
317
+ }, {
318
+ value: 'hr-BA',
319
+ title: 'Croatian (Bosnia and Herzegovina)'
320
+ }, {
321
+ value: 'hr-HR',
322
+ title: 'Croatian (Croatia)'
323
+ }, {
324
+ value: 'hu',
325
+ title: 'Hungarian'
326
+ }, {
327
+ value: 'hu-HU',
328
+ title: 'Hungarian (Hungary)'
329
+ }, {
330
+ value: 'hy',
331
+ title: 'Armenian'
332
+ }, {
333
+ value: 'hy-AM',
334
+ title: 'Armenian (Armenia)'
335
+ }, {
336
+ value: 'id',
337
+ title: 'Indonesian'
338
+ }, {
339
+ value: 'id-ID',
340
+ title: 'Indonesian (Indonesia)'
341
+ }, {
342
+ value: 'is',
343
+ title: 'Icelandic'
344
+ }, {
345
+ value: 'is-IS',
346
+ title: 'Icelandic (Iceland)'
347
+ }, {
348
+ value: 'it',
349
+ title: 'Italian'
350
+ }, {
351
+ value: 'it-CH',
352
+ title: 'Italian (Switzerland)'
353
+ }, {
354
+ value: 'it-IT',
355
+ title: 'Italian (Italy)'
356
+ }, {
357
+ value: 'ja',
358
+ title: 'Japanese'
359
+ }, {
360
+ value: 'ja-JP',
361
+ title: 'Japanese (Japan)'
362
+ }, {
363
+ value: 'ka',
364
+ title: 'Georgian'
365
+ }, {
366
+ value: 'ka-GE',
367
+ title: 'Georgian (Georgia)'
368
+ }, {
369
+ value: 'kk',
370
+ title: 'Kazakh'
371
+ }, {
372
+ value: 'kk-KZ',
373
+ title: 'Kazakh (Kazakhstan)'
374
+ }, {
375
+ value: 'kn',
376
+ title: 'Kannada'
377
+ }, {
378
+ value: 'kn-IN',
379
+ title: 'Kannada (India)'
380
+ }, {
381
+ value: 'ko',
382
+ title: 'Korean'
383
+ }, {
384
+ value: 'kok',
385
+ title: 'Konkani'
386
+ }, {
387
+ value: 'kok-IN',
388
+ title: 'Konkani (India)'
389
+ }, {
390
+ value: 'ko-KR',
391
+ title: 'Korean (Korea)'
392
+ }, {
393
+ value: 'ky',
394
+ title: 'Kyrgyz'
395
+ }, {
396
+ value: 'ky-KG',
397
+ title: 'Kyrgyz (Kyrgyzstan)'
398
+ }, {
399
+ value: 'lt',
400
+ title: 'Lithuanian'
401
+ }, {
402
+ value: 'lt-LT',
403
+ title: 'Lithuanian (Lithuania)'
404
+ }, {
405
+ value: 'lv',
406
+ title: 'Latvian'
407
+ }, {
408
+ value: 'lv-LV',
409
+ title: 'Latvian (Latvia)'
410
+ }, {
411
+ value: 'mi-NZ',
412
+ title: 'Maori (New Zealand)'
413
+ }, {
414
+ value: 'mk',
415
+ title: 'Macedonian'
416
+ }, {
417
+ value: 'mk-MK',
418
+ title: 'Macedonian (Former Yugoslav Republic of Macedonia)'
419
+ }, {
420
+ value: 'mn',
421
+ title: 'Mongolian'
422
+ }, {
423
+ value: 'mn-MN',
424
+ title: 'Mongolian (Cyrillic, Mongolia)'
425
+ }, {
426
+ value: 'mr',
427
+ title: 'Marathi'
428
+ }, {
429
+ value: 'mr-IN',
430
+ title: 'Marathi (India)'
431
+ }, {
432
+ value: 'ms',
433
+ title: 'Malay'
434
+ }, {
435
+ value: 'ms-BN',
436
+ title: 'Malay (Brunei Darussalam)'
437
+ }, {
438
+ value: 'ms-MY',
439
+ title: 'Malay (Malaysia)'
440
+ }, {
441
+ value: 'mt-MT',
442
+ title: 'Maltese (Malta)'
443
+ }, {
444
+ value: 'nb-NO',
445
+ title: 'Norwegian, Bokmal (Norway)'
446
+ }, {
447
+ value: 'nl',
448
+ title: 'Dutch'
449
+ }, {
450
+ value: 'nl-BE',
451
+ title: 'Dutch (Belgium)'
452
+ }, {
453
+ value: 'nl-NL',
454
+ title: 'Dutch (Netherlands)'
455
+ }, {
456
+ value: 'nn-NO',
457
+ title: 'Norwegian, Nynorsk (Norway)'
458
+ }, {
459
+ value: 'no',
460
+ title: 'Norwegian'
461
+ }, {
462
+ value: 'ns-ZA',
463
+ title: 'Northern Sotho (South Africa)'
464
+ }, {
465
+ value: 'pa',
466
+ title: 'Punjabi'
467
+ }, {
468
+ value: 'pa-IN',
469
+ title: 'Punjabi (India)'
470
+ }, {
471
+ value: 'pl',
472
+ title: 'Polish'
473
+ }, {
474
+ value: 'pl-PL',
475
+ title: 'Polish (Poland)'
476
+ }, {
477
+ value: 'pt',
478
+ title: 'Portuguese'
479
+ }, {
480
+ value: 'pt-BR',
481
+ title: 'Portuguese (Brazil)'
482
+ }, {
483
+ value: 'pt-PT',
484
+ title: 'Portuguese (Portugal)'
485
+ }, {
486
+ value: 'quz-BO',
487
+ title: 'Quechua (Bolivia)'
488
+ }, {
489
+ value: 'quz-EC',
490
+ title: 'Quechua (Ecuador)'
491
+ }, {
492
+ value: 'quz-PE',
493
+ title: 'Quechua (Peru)'
494
+ }, {
495
+ value: 'ro',
496
+ title: 'Romanian'
497
+ }, {
498
+ value: 'ro-RO',
499
+ title: 'Romanian (Romania)'
500
+ }, {
501
+ value: 'ru',
502
+ title: 'Russian'
503
+ }, {
504
+ value: 'ru-RU',
505
+ title: 'Russian (Russia)'
506
+ }, {
507
+ value: 'sa',
508
+ title: 'Sanskrit'
509
+ }, {
510
+ value: 'sa-IN',
511
+ title: 'Sanskrit (India)'
512
+ }, {
513
+ value: 'se-FI',
514
+ title: 'Sami (Northern) (Finland)'
515
+ }, {
516
+ value: 'se-NO',
517
+ title: 'Sami (Northern) (Norway)'
518
+ }, {
519
+ value: 'se-SE',
520
+ title: 'Sami (Northern) (Sweden)'
521
+ }, {
522
+ value: 'sk',
523
+ title: 'Slovak'
524
+ }, {
525
+ value: 'sk-SK',
526
+ title: 'Slovak (Slovakia)'
527
+ }, {
528
+ value: 'sl',
529
+ title: 'Slovenian'
530
+ }, {
531
+ value: 'sl-SI',
532
+ title: 'Slovenian (Slovenia)'
533
+ }, {
534
+ value: 'sma-NO',
535
+ title: 'Sami (Southern) (Norway)'
536
+ }, {
537
+ value: 'sma-SE',
538
+ title: 'Sami (Southern) (Sweden)'
539
+ }, {
540
+ value: 'smj-NO',
541
+ title: 'Sami (Lule) (Norway)'
542
+ }, {
543
+ value: 'smj-SE',
544
+ title: 'Sami (Lule) (Sweden)'
545
+ }, {
546
+ value: 'smn-FI',
547
+ title: 'Sami (Inari) (Finland)'
548
+ }, {
549
+ value: 'sms-FI',
550
+ title: 'Sami (Skolt) (Finland)'
551
+ }, {
552
+ value: 'sq',
553
+ title: 'Albanian'
554
+ }, {
555
+ value: 'sq-AL',
556
+ title: 'Albanian (Albania)'
557
+ }, {
558
+ value: 'sr',
559
+ title: 'Serbian'
560
+ }, {
561
+ value: 'sr-Cyrl-BA',
562
+ title: 'Serbian (Cyrillic) (Bosnia and Herzegovina)'
563
+ }, {
564
+ value: 'sr-Cyrl-CS',
565
+ title: 'Serbian (Cyrillic, Serbia)'
566
+ }, {
567
+ value: 'sr-Latn-BA',
568
+ title: 'Serbian (Latin) (Bosnia and Herzegovina)'
569
+ }, {
570
+ value: 'sr-Latn-CS',
571
+ title: 'Serbian (Latin, Serbia)'
572
+ }, {
573
+ value: 'sv',
574
+ title: 'Swedish'
575
+ }, {
576
+ value: 'sv-FI',
577
+ title: 'Swedish (Finland)'
578
+ }, {
579
+ value: 'sv-SE',
580
+ title: 'Swedish (Sweden)'
581
+ }, {
582
+ value: 'sw',
583
+ title: 'Kiswahili'
584
+ }, {
585
+ value: 'sw-KE',
586
+ title: 'Kiswahili (Kenya)'
587
+ }, {
588
+ value: 'syr',
589
+ title: 'Syriac'
590
+ }, {
591
+ value: 'syr-SY',
592
+ title: 'Syriac (Syria)'
593
+ }, {
594
+ value: 'ta',
595
+ title: 'Tamil'
596
+ }, {
597
+ value: 'ta-IN',
598
+ title: 'Tamil (India)'
599
+ }, {
600
+ value: 'te',
601
+ title: 'Telugu'
602
+ }, {
603
+ value: 'te-IN',
604
+ title: 'Telugu (India)'
605
+ }, {
606
+ value: 'th',
607
+ title: 'Thai'
608
+ }, {
609
+ value: 'th-TH',
610
+ title: 'Thai (Thailand)'
611
+ }, {
612
+ value: 'tn-ZA',
613
+ title: 'Tswana (South Africa)'
614
+ }, {
615
+ value: 'tr',
616
+ title: 'Turkish'
617
+ }, {
618
+ value: 'tr-TR',
619
+ title: 'Turkish (Turkey)'
620
+ }, {
621
+ value: 'tt',
622
+ title: 'Tatar'
623
+ }, {
624
+ value: 'tt-RU',
625
+ title: 'Tatar (Russia)'
626
+ }, {
627
+ value: 'uk',
628
+ title: 'Ukrainian'
629
+ }, {
630
+ value: 'uk-UA',
631
+ title: 'Ukrainian (Ukraine)'
632
+ }, {
633
+ value: 'ur',
634
+ title: 'Urdu'
635
+ }, {
636
+ value: 'ur-PK',
637
+ title: 'Urdu (Islamic Republic of Pakistan)'
638
+ }, {
639
+ value: 'uz',
640
+ title: 'Uzbek'
641
+ }, {
642
+ value: 'uz-Cyrl-UZ',
643
+ title: 'Uzbek (Cyrillic, Uzbekistan)'
644
+ }, {
645
+ value: 'uz-Latn-UZ',
646
+ title: 'Uzbek (Latin, Uzbekistan)'
647
+ }, {
648
+ value: 'vi',
649
+ title: 'Vietnamese'
650
+ }, {
651
+ value: 'vi-VN',
652
+ title: 'Vietnamese (Vietnam)'
653
+ }, {
654
+ value: 'xh-ZA',
655
+ title: 'Xhosa (South Africa)'
656
+ }, {
657
+ value: 'zh-CN',
658
+ title: "Chinese (People's Republic of China)"
659
+ }, {
660
+ value: 'zh-HK',
661
+ title: 'Chinese (Hong Kong S.A.R.)'
662
+ }, {
663
+ value: 'zh-CHS',
664
+ title: 'Chinese (Simplified)'
665
+ }, {
666
+ value: 'zh-CHT',
667
+ title: 'Chinese (Traditional)'
668
+ }, {
669
+ value: 'zh-MO',
670
+ title: 'Chinese (Macao S.A.R.)'
671
+ }, {
672
+ value: 'zh-SG',
673
+ title: 'Chinese (Singapore)'
674
+ }, {
675
+ value: 'zh-TW',
676
+ title: 'Chinese (Taiwan)'
677
+ }, {
678
+ value: 'zu-ZA',
679
+ title: 'Zulu (South Africa)'
680
+ }];
681
+
682
+ var I18nPrefix = 'i18n';
683
+
684
+ var I18nDelimiter = '__i18n_';
685
+
686
+ (function (ReferenceBehavior) {
687
+ ReferenceBehavior["HARD"] = "hard";
688
+ ReferenceBehavior["WEAK"] = "weak";
689
+ ReferenceBehavior["DISABLED"] = "disabled";
690
+ })(exports.ReferenceBehavior || (exports.ReferenceBehavior = {}));
691
+
692
+ (function (IdStructure) {
693
+ IdStructure["SUBPATH"] = "subpath";
694
+ IdStructure["DELIMITER"] = "delimiter";
695
+ })(exports.IdStructure || (exports.IdStructure = {}));
696
+
697
+ var UiMessages = {
698
+ publishing: 'Publishing...',
699
+ publish: 'Publish',
700
+ updatingIntlFields: 'Updating i18n fields',
701
+ intlFieldsUpdated: 'I18n fields updated',
702
+ baseDocumentCopied: 'Base document copied',
703
+ loading: 'Loading languages...',
704
+ draft: 'Draft',
705
+ missingTranslations: 'Following languages are missing some translations compared to the base language',
706
+ missing: 'Missing',
707
+ deleteAll: {
708
+ buttonTitle: 'Delete (incl. translations)',
709
+ deleting: 'Deleting...'
710
+ },
711
+ duplicateAll: {
712
+ buttonTitle: 'Duplicate (incl. translations)',
713
+ duplicating: 'Duplicating...'
714
+ },
715
+ translationsMaintenance: {
716
+ title: 'Translation Maintenance',
717
+ selectSchemaPlaceholder: 'Select schema type',
718
+ idStructureMismatch: 'document(s) with mismatched ID structures',
719
+ missingLanguageField: 'document(s) are missing the language field',
720
+ missingDocumentRefs: 'document(s) have missing translation references',
721
+ missingBaseDocumentRefs: 'document(s) have missing base document references',
722
+ orphanDocuments: 'orphaned translation document(s)',
723
+ referenceBehaviorMismatch: 'document(s) with mismatched reference behaviors',
724
+ baseLanguageMismatch: 'base document(s) with mismatched language field',
725
+ fix: 'Fix'
726
+ },
727
+ errors: {
728
+ baseDocumentNotPublished: 'It looks like you have not published your base translation yet. When using strong references it is required to publish the base document before publishing any translated entries'
729
+ }
730
+ };
731
+
732
+ exports.I18nDelimiter = I18nDelimiter;
733
+ exports.I18nPrefix = I18nPrefix;
734
+ exports.LanguageCultures = LanguageCultures;
735
+ exports.UiMessages = UiMessages;
736
+ //# sourceMappingURL=index.js.map