@diplodoc/cli-tests 0.0.0-rc-anchor-lint-check-202506201214 → 0.0.0-rc-fix-translate-openapi-includer-202507171205

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.
@@ -1,5 +1,944 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
+ exports[`Translate command > build translated md files and remove no-translate directives > filelist 1`] = `
4
+ "[
5
+ "index.md",
6
+ "no-translate.md",
7
+ "openapi/index.md",
8
+ "openapi/test-controller/getWithPayloadResponse.md",
9
+ "openapi/test-controller/index.md",
10
+ "toc.yaml"
11
+ ]"
12
+ `;
13
+
14
+ exports[`Translate command > build translated md files and remove no-translate directives 1`] = `
15
+ "---
16
+ metadata:
17
+ - name: generator
18
+ content: Diplodoc Platform vDIPLODOC-VERSION
19
+ ---
20
+ ## Index header
21
+
22
+ adsfasdfasdfasdfasdf
23
+
24
+ lorem
25
+
26
+ asdfasdfasdf"
27
+ `;
28
+
29
+ exports[`Translate command > build translated md files and remove no-translate directives 2`] = `
30
+ "---
31
+ metadata:
32
+ - name: generator
33
+ content: Diplodoc Platform vDIPLODOC-VERSION
34
+ ---
35
+ # No-translate directive
36
+
37
+ ## Block directive
38
+ ### No-translate header
39
+
40
+ :::html-block
41
+ testsetsets
42
+ :::
43
+
44
+ ::: any-other-directive
45
+ content test
46
+ :::
47
+
48
+ Should not be translated.
49
+ Can use **markup** inside.
50
+
51
+
52
+ ::: some-other-directive
53
+ content here
54
+ :::
55
+ content here
56
+ ::: some-other-directive
57
+ nested content
58
+ :::
59
+
60
+ ## Leaf directive
61
+
62
+ ## /usr/local/bin/application
63
+ **C:/Program Files/Application/config.ini**
64
+ ~/Documents/project/src/main.rs
65
+
66
+
67
+ - GET /api/v1/users — get all users
68
+ - POST /api/v1/auth/login — authorization
69
+ - PUT /api/v1/users/{id} — update users data
70
+
71
+ ## Simple case leaf
72
+ Install using command.
73
+ The default port is unless specified. Next sentence.
74
+ Set NODE_ENV=production for production builds.
75
+
76
+ ## Simple case inline
77
+ Install using npm install @company/package command.
78
+ The default port is 8080 unless specified.
79
+ Set NODE_ENV=production for production builds.
80
+
81
+ ## Few inline directives
82
+ Use **GET /api/v1/users** to list users and POST /api/v1/users to create.
83
+
84
+ ## Empty inline directive
85
+ This is text with empty directive.
86
+
87
+
88
+ "
89
+ `;
90
+
91
+ exports[`Translate command > build translated md files and remove no-translate directives 3`] = `
92
+ "---
93
+ metadata:
94
+ - name: generator
95
+ content: Diplodoc Platform vDIPLODOC-VERSION
96
+ ---
97
+ # OpenAPI definition
98
+
99
+ ##version: v0##
100
+
101
+ ## Sections
102
+
103
+ - [test-controller](test-controller/index.md)
104
+
105
+
106
+ ## Specification
107
+
108
+ {% cut "Open API" %}
109
+
110
+
111
+ \`\`\`text translate=no
112
+ {
113
+ "openapi": "3.0.1",
114
+ "info": {
115
+ "title": "OpenAPI definition",
116
+ "version": "v0"
117
+ },
118
+ "servers": [
119
+ {
120
+ "url": "http://localhost:8080",
121
+ "description": "Generated server url"
122
+ }
123
+ ],
124
+ "paths": {
125
+ "/test": {
126
+ "get": {
127
+ "tags": [
128
+ "test-controller"
129
+ ],
130
+ "summary": "Simple get operation. тест новой верстки 3",
131
+ "description": "Defines a simple get skip this operation with no inputs and a complex",
132
+ "operationId": "getWithPayloadResponse",
133
+ "responses": {
134
+ "200": {
135
+ "description": "200!!!!",
136
+ "content": {
137
+ "application/json": {
138
+ "schema": {
139
+ "type": "object",
140
+ "properties": {
141
+ "A": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ },
153
+ "components": {
154
+ "schemas": {
155
+ "RecurceTop": {
156
+ "type": "object",
157
+ "properties": {
158
+ "A": {
159
+ "type": "string"
160
+ }
161
+ }
162
+ },
163
+ "RecurceMiddle": {
164
+ "type": "object",
165
+ "properties": {
166
+ "B": {
167
+ "type": "array",
168
+ "items": {
169
+ "type": "object",
170
+ "properties": {
171
+ "A": {
172
+ "type": "string"
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ \`\`\`
183
+
184
+
185
+ {% endcut %}
186
+
187
+ <!-- markdownlint-disable-file -->"
188
+ `;
189
+
190
+ exports[`Translate command > build translated md files and remove no-translate directives 4`] = `
191
+ "---
192
+ metadata:
193
+ - name: generator
194
+ content: Diplodoc Platform vDIPLODOC-VERSION
195
+ ---
196
+ <div class="openapi">
197
+
198
+ # Simple get operation. тест новой верстки 3
199
+
200
+ Defines a simple get skip this operation with no inputs and a complex
201
+
202
+ ## Request
203
+
204
+ <div class="openapi__requests">
205
+
206
+ <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
207
+
208
+ <div class="openapi__request">
209
+
210
+ GET {.openapi__method}
211
+ \`\`\`text translate=no
212
+ http://localhost:8080/test
213
+ \`\`\`
214
+
215
+
216
+
217
+ </div>
218
+
219
+ Generated server url
220
+
221
+ </div>
222
+
223
+ </div>
224
+
225
+ ## Responses
226
+
227
+ <div class="openapi__response__code__200">
228
+
229
+ ## 200 OK
230
+
231
+ 200!!!!
232
+
233
+ <div class="openapi-entity">
234
+
235
+ ### Body
236
+
237
+ {% cut "application/json" %}
238
+
239
+
240
+ \`\`\`json translate=no
241
+ {
242
+ "A": "string"
243
+ }
244
+ \`\`\`
245
+
246
+
247
+ {% endcut %}
248
+
249
+
250
+ #|||
251
+ **Name**
252
+ |
253
+ **Description**
254
+ ||
255
+
256
+ ||
257
+ A {.openapi-table-parameter-name}
258
+ |
259
+ **Type:** string
260
+ |||#
261
+
262
+ </div>
263
+
264
+ </div>
265
+ <!-- markdownlint-disable-file -->
266
+
267
+ </div>
268
+
269
+
270
+
271
+ [*Deprecated]: No longer supported, please use an alternative and newer version."
272
+ `;
273
+
274
+ exports[`Translate command > build translated md files and remove no-translate directives 5`] = `
275
+ "---
276
+ metadata:
277
+ - name: generator
278
+ content: Diplodoc Platform vDIPLODOC-VERSION
279
+ ---
280
+ # test-controller
281
+
282
+ ## Endpoints
283
+
284
+ - [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
285
+
286
+ <!-- markdownlint-disable-file -->"
287
+ `;
288
+
289
+ exports[`Translate command > build translated md files and remove no-translate directives 6`] = `
290
+ "title: Test123
291
+ href: index.md
292
+ items:
293
+ - name: Не переводить
294
+ href: no-translate.md
295
+ - name: openapi
296
+ items:
297
+ - name: Overview
298
+ href: openapi/index.md
299
+ - name: test-controller
300
+ items:
301
+ - name: Overview
302
+ href: openapi/test-controller/index.md
303
+ - href: openapi/test-controller/getWithPayloadResponse.md
304
+ name: Simple get operation. тест новой верстки 3
305
+ path: toc.yaml
306
+ "
307
+ `;
308
+
309
+ exports[`Translate command > build translated static files and remove no-translate directives > filelist 1`] = `
310
+ "[
311
+ "index.md",
312
+ "no-translate.md",
313
+ "openapi/index.md",
314
+ "openapi/test-controller/getWithPayloadResponse.md",
315
+ "openapi/test-controller/index.md",
316
+ "toc.yaml"
317
+ ]"
318
+ `;
319
+
320
+ exports[`Translate command > build translated static files and remove no-translate directives 1`] = `
321
+ "---
322
+ metadata:
323
+ - name: generator
324
+ content: Diplodoc Platform vDIPLODOC-VERSION
325
+ ---
326
+ ## Index header
327
+
328
+ adsfasdfasdfasdfasdf
329
+
330
+ lorem
331
+
332
+ asdfasdfasdf"
333
+ `;
334
+
335
+ exports[`Translate command > build translated static files and remove no-translate directives 2`] = `
336
+ "---
337
+ metadata:
338
+ - name: generator
339
+ content: Diplodoc Platform vDIPLODOC-VERSION
340
+ ---
341
+ # No-translate directive
342
+
343
+ ## Block directive
344
+ ### No-translate header
345
+
346
+ :::html-block
347
+ testsetsets
348
+ :::
349
+
350
+ ::: any-other-directive
351
+ content test
352
+ :::
353
+
354
+ Should not be translated.
355
+ Can use **markup** inside.
356
+
357
+
358
+ ::: some-other-directive
359
+ content here
360
+ :::
361
+ content here
362
+ ::: some-other-directive
363
+ nested content
364
+ :::
365
+
366
+ ## Leaf directive
367
+
368
+ ## /usr/local/bin/application
369
+ **C:/Program Files/Application/config.ini**
370
+ ~/Documents/project/src/main.rs
371
+
372
+
373
+ - GET /api/v1/users — get all users
374
+ - POST /api/v1/auth/login — authorization
375
+ - PUT /api/v1/users/{id} — update users data
376
+
377
+ ## Simple case leaf
378
+ Install using command.
379
+ The default port is unless specified. Next sentence.
380
+ Set NODE_ENV=production for production builds.
381
+
382
+ ## Simple case inline
383
+ Install using npm install @company/package command.
384
+ The default port is 8080 unless specified.
385
+ Set NODE_ENV=production for production builds.
386
+
387
+ ## Few inline directives
388
+ Use **GET /api/v1/users** to list users and POST /api/v1/users to create.
389
+
390
+ ## Empty inline directive
391
+ This is text with empty directive.
392
+
393
+
394
+ "
395
+ `;
396
+
397
+ exports[`Translate command > build translated static files and remove no-translate directives 3`] = `
398
+ "---
399
+ metadata:
400
+ - name: generator
401
+ content: Diplodoc Platform vDIPLODOC-VERSION
402
+ ---
403
+ # OpenAPI definition
404
+
405
+ ##version: v0##
406
+
407
+ ## Sections
408
+
409
+ - [test-controller](test-controller/index.md)
410
+
411
+
412
+ ## Specification
413
+
414
+ {% cut "Open API" %}
415
+
416
+
417
+ \`\`\`text translate=no
418
+ {
419
+ "openapi": "3.0.1",
420
+ "info": {
421
+ "title": "OpenAPI definition",
422
+ "version": "v0"
423
+ },
424
+ "servers": [
425
+ {
426
+ "url": "http://localhost:8080",
427
+ "description": "Generated server url"
428
+ }
429
+ ],
430
+ "paths": {
431
+ "/test": {
432
+ "get": {
433
+ "tags": [
434
+ "test-controller"
435
+ ],
436
+ "summary": "Simple get operation. тест новой верстки 3",
437
+ "description": "Defines a simple get skip this operation with no inputs and a complex",
438
+ "operationId": "getWithPayloadResponse",
439
+ "responses": {
440
+ "200": {
441
+ "description": "200!!!!",
442
+ "content": {
443
+ "application/json": {
444
+ "schema": {
445
+ "type": "object",
446
+ "properties": {
447
+ "A": {
448
+ "type": "string"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ },
459
+ "components": {
460
+ "schemas": {
461
+ "RecurceTop": {
462
+ "type": "object",
463
+ "properties": {
464
+ "A": {
465
+ "type": "string"
466
+ }
467
+ }
468
+ },
469
+ "RecurceMiddle": {
470
+ "type": "object",
471
+ "properties": {
472
+ "B": {
473
+ "type": "array",
474
+ "items": {
475
+ "type": "object",
476
+ "properties": {
477
+ "A": {
478
+ "type": "string"
479
+ }
480
+ }
481
+ }
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+ \`\`\`
489
+
490
+
491
+ {% endcut %}
492
+
493
+ <!-- markdownlint-disable-file -->"
494
+ `;
495
+
496
+ exports[`Translate command > build translated static files and remove no-translate directives 4`] = `
497
+ "---
498
+ metadata:
499
+ - name: generator
500
+ content: Diplodoc Platform vDIPLODOC-VERSION
501
+ ---
502
+ <div class="openapi">
503
+
504
+ # Simple get operation. тест новой верстки 3
505
+
506
+ Defines a simple get skip this operation with no inputs and a complex
507
+
508
+ ## Request
509
+
510
+ <div class="openapi__requests">
511
+
512
+ <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
513
+
514
+ <div class="openapi__request">
515
+
516
+ GET {.openapi__method}
517
+ \`\`\`text translate=no
518
+ http://localhost:8080/test
519
+ \`\`\`
520
+
521
+
522
+
523
+ </div>
524
+
525
+ Generated server url
526
+
527
+ </div>
528
+
529
+ </div>
530
+
531
+ ## Responses
532
+
533
+ <div class="openapi__response__code__200">
534
+
535
+ ## 200 OK
536
+
537
+ 200!!!!
538
+
539
+ <div class="openapi-entity">
540
+
541
+ ### Body
542
+
543
+ {% cut "application/json" %}
544
+
545
+
546
+ \`\`\`json translate=no
547
+ {
548
+ "A": "string"
549
+ }
550
+ \`\`\`
551
+
552
+
553
+ {% endcut %}
554
+
555
+
556
+ #|||
557
+ **Name**
558
+ |
559
+ **Description**
560
+ ||
561
+
562
+ ||
563
+ A {.openapi-table-parameter-name}
564
+ |
565
+ **Type:** string
566
+ |||#
567
+
568
+ </div>
569
+
570
+ </div>
571
+ <!-- markdownlint-disable-file -->
572
+
573
+ </div>
574
+
575
+
576
+
577
+ [*Deprecated]: No longer supported, please use an alternative and newer version."
578
+ `;
579
+
580
+ exports[`Translate command > build translated static files and remove no-translate directives 5`] = `
581
+ "---
582
+ metadata:
583
+ - name: generator
584
+ content: Diplodoc Platform vDIPLODOC-VERSION
585
+ ---
586
+ # test-controller
587
+
588
+ ## Endpoints
589
+
590
+ - [Simple get operation. тест новой верстки 3](getWithPayloadResponse.md)
591
+
592
+ <!-- markdownlint-disable-file -->"
593
+ `;
594
+
595
+ exports[`Translate command > build translated static files and remove no-translate directives 6`] = `
596
+ "title: Test123
597
+ href: index.md
598
+ items:
599
+ - name: Не переводить
600
+ href: no-translate.md
601
+ - name: openapi
602
+ items:
603
+ - name: Overview
604
+ href: openapi/index.md
605
+ - name: test-controller
606
+ items:
607
+ - name: Overview
608
+ href: openapi/test-controller/index.md
609
+ - href: openapi/test-controller/getWithPayloadResponse.md
610
+ name: Simple get operation. тест новой верстки 3
611
+ path: toc.yaml
612
+ "
613
+ `;
614
+
615
+ exports[`Translate command > extract openapi spec files > filelist 1`] = `
616
+ "[
617
+ "openapi-spec.yaml.skl",
618
+ "openapi-spec.yaml.xliff",
619
+ "toc.yaml.skl",
620
+ "toc.yaml.xliff"
621
+ ]"
622
+ `;
623
+
624
+ exports[`Translate command > extract openapi spec files 1`] = `
625
+ "openapi: 3.0.1
626
+ info:
627
+ title: '%%%0%%%'
628
+ version: v0
629
+ servers:
630
+ - url: http://localhost:8080
631
+ description: '%%%1%%%'
632
+ paths:
633
+ /test:
634
+ get:
635
+ tags:
636
+ - test-controller
637
+ summary: '%%%2%%%'
638
+ description: '%%%3%%%'
639
+ operationId: getWithPayloadResponse
640
+ responses:
641
+ '200':
642
+ description: '%%%4%%%'
643
+ content:
644
+ application/json:
645
+ schema:
646
+ $ref: '#/components/schemas/RecurceTop'
647
+ components:
648
+ schemas:
649
+ RecurceTop:
650
+ type: object
651
+ properties:
652
+ A:
653
+ type: string
654
+ description: |
655
+ %%%5%%%
656
+ - %%%6%%%
657
+ - %%%7%%%
658
+ - %%%8%%%
659
+ RecurceMiddle:
660
+ type: object
661
+ properties:
662
+ B:
663
+ type: array
664
+ items:
665
+ $ref: '#/components/schemas/RecurceTop'
666
+ "
667
+ `;
668
+
669
+ exports[`Translate command > extract openapi spec files 2`] = `
670
+ "<?xml version="1.0" encoding="UTF-8"?>
671
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
672
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
673
+ <header>
674
+ <skeleton>
675
+ <external-file href="file.skl"></external-file>
676
+ </skeleton>
677
+ </header>
678
+ <body>
679
+ <trans-unit id="0">
680
+ <source xml:space="preserve">OpenAPI definition</source>
681
+ </trans-unit>
682
+ <trans-unit id="1">
683
+ <source xml:space="preserve">Generated server url</source>
684
+ </trans-unit>
685
+ <trans-unit id="2">
686
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
687
+ </trans-unit>
688
+ <trans-unit id="3">
689
+ <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
690
+ </trans-unit>
691
+ <trans-unit id="4">
692
+ <source xml:space="preserve">200!!!!</source>
693
+ </trans-unit>
694
+ <trans-unit id="5">
695
+ <source xml:space="preserve">Статус загрузки:</source>
696
+ </trans-unit>
697
+ <trans-unit id="6">
698
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-1"/>UPLOADED<x ctype="code_close" equiv-text="\`" id="x-2"/> — загрузка завершена.</source>
699
+ </trans-unit>
700
+ <trans-unit id="7">
701
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-3"/>IN_PROGRESS<x ctype="code_close" equiv-text="\`" id="x-4"/> — загрузка находится в процессе обработки.</source>
702
+ </trans-unit>
703
+ <trans-unit id="8">
704
+ <source xml:space="preserve"><x ctype="code_open" equiv-text="\`" id="x-5"/>PROCESSED<x ctype="code_close" equiv-text="\`" id="x-6"/> — загрузка успешно обработана.</source>
705
+ </trans-unit>
706
+ </body>
707
+ </file>
708
+ </xliff>"
709
+ `;
710
+
711
+ exports[`Translate command > extract openapi spec files 3`] = `
712
+ "items:
713
+ - name: '%%%0%%%'
714
+ include:
715
+ path: openapi
716
+ includers:
717
+ - name: openapi
718
+ input: openapi-spec.yaml
719
+ "
720
+ `;
721
+
722
+ exports[`Translate command > extract openapi spec files 4`] = `
723
+ "<?xml version="1.0" encoding="UTF-8"?>
724
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
725
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
726
+ <header>
727
+ <skeleton>
728
+ <external-file href="file.skl"></external-file>
729
+ </skeleton>
730
+ </header>
731
+ <body>
732
+ <trans-unit id="0">
733
+ <source xml:space="preserve">openapi</source>
734
+ </trans-unit>
735
+ </body>
736
+ </file>
737
+ </xliff>"
738
+ `;
739
+
740
+ exports[`Translate command > extract openapi spec files 5`] = `
741
+ "<div class="openapi">
742
+
743
+ # %%%0%%%
744
+
745
+ %%%1%%%
746
+
747
+ ## %%%2%%%
748
+
749
+ <div class="openapi__requests">
750
+
751
+ <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">
752
+
753
+ <div class="openapi__request">
754
+
755
+ %%%3%%% {.openapi__method}
756
+ \`\`\`text translate=no
757
+ http://localhost:8080/test
758
+ \`\`\`
759
+
760
+
761
+
762
+ </div>
763
+
764
+ %%%4%%%
765
+
766
+ </div>
767
+
768
+ </div>
769
+
770
+ ## %%%5%%%
771
+
772
+ <div class="openapi__response__code__200">
773
+
774
+ ## %%%6%%%
775
+
776
+ %%%7%%%
777
+
778
+ <div class="openapi-entity">
779
+
780
+ ### %%%8%%%
781
+
782
+ {% cut "%%%9%%%" %}
783
+
784
+
785
+ \`\`\`json translate=no
786
+ {
787
+ "A": "string"
788
+ }
789
+ \`\`\`
790
+
791
+
792
+ {% endcut %}
793
+
794
+
795
+ #|||
796
+ %%%10%%%
797
+ |
798
+ %%%11%%%
799
+ ||
800
+
801
+ ||
802
+ %%%12%%% {.openapi-table-parameter-name}
803
+ |
804
+ %%%13%%%
805
+ |||#
806
+
807
+ </div>
808
+
809
+ </div>
810
+ <!-- markdownlint-disable-file -->
811
+
812
+ </div>
813
+
814
+
815
+
816
+ [*Deprecated]: %%%14%%%"
817
+ `;
818
+
819
+ exports[`Translate command > extract openapi spec files 6`] = `
820
+ "<?xml version="1.0" encoding="UTF-8"?>
821
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
822
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
823
+ <header>
824
+ <skeleton>
825
+ <external-file href="file.skl"></external-file>
826
+ </skeleton>
827
+ </header>
828
+ <body>
829
+ <trans-unit id="0">
830
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
831
+ </trans-unit>
832
+ <trans-unit id="1">
833
+ <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
834
+ </trans-unit>
835
+ <trans-unit id="2">
836
+ <source xml:space="preserve">Request</source>
837
+ </trans-unit>
838
+ <trans-unit id="3">
839
+ <source xml:space="preserve">GET</source>
840
+ </trans-unit>
841
+ <trans-unit id="4">
842
+ <source xml:space="preserve">Generated server url</source>
843
+ </trans-unit>
844
+ <trans-unit id="5">
845
+ <source xml:space="preserve">Responses</source>
846
+ </trans-unit>
847
+ <trans-unit id="6">
848
+ <source xml:space="preserve">200 OK</source>
849
+ </trans-unit>
850
+ <trans-unit id="7">
851
+ <source xml:space="preserve">200!!!!</source>
852
+ </trans-unit>
853
+ <trans-unit id="8">
854
+ <source xml:space="preserve">Body</source>
855
+ </trans-unit>
856
+ <trans-unit id="9">
857
+ <source xml:space="preserve">application/json</source>
858
+ </trans-unit>
859
+ <trans-unit id="10">
860
+ <source xml:space="preserve"><g ctype="bold" equiv-text="**{{text}}**" id="g-4" x-begin="**" x-end="**">Name</g></source>
861
+ </trans-unit>
862
+ <trans-unit id="11">
863
+ <source xml:space="preserve"><g ctype="bold" equiv-text="**{{text}}**" id="g-5" x-begin="**" x-end="**">Description</g></source>
864
+ </trans-unit>
865
+ <trans-unit id="12">
866
+ <source xml:space="preserve">A</source>
867
+ </trans-unit>
868
+ <trans-unit id="13">
869
+ <source xml:space="preserve"><g ctype="bold" equiv-text="**{{text}}**" id="g-6" x-begin="**" x-end="**">Type:</g> string</source>
870
+ </trans-unit>
871
+ <trans-unit id="14">
872
+ <source xml:space="preserve">No longer supported, please use an alternative and newer version.</source>
873
+ </trans-unit>
874
+ </body>
875
+ </file>
876
+ </xliff>"
877
+ `;
878
+
879
+ exports[`Translate command > extract openapi spec files 7`] = `
880
+ "# %%%0%%%
881
+
882
+ ## %%%1%%%
883
+
884
+ - %%%2%%%
885
+
886
+ <!-- markdownlint-disable-file -->"
887
+ `;
888
+
889
+ exports[`Translate command > extract openapi spec files 8`] = `
890
+ "<?xml version="1.0" encoding="UTF-8"?>
891
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
892
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
893
+ <header>
894
+ <skeleton>
895
+ <external-file href="file.skl"></external-file>
896
+ </skeleton>
897
+ </header>
898
+ <body>
899
+ <trans-unit id="0">
900
+ <source xml:space="preserve">test-controller</source>
901
+ </trans-unit>
902
+ <trans-unit id="1">
903
+ <source xml:space="preserve">Endpoints</source>
904
+ </trans-unit>
905
+ <trans-unit id="2">
906
+ <source xml:space="preserve"><g ctype="link" equiv-text="[{{text}}](getWithPayloadResponse.md)" id="g-3" x-begin="[" x-end="](getWithPayloadResponse.md)">Simple get operation. тест новой верстки 3</g></source>
907
+ </trans-unit>
908
+ </body>
909
+ </file>
910
+ </xliff>"
911
+ `;
912
+
913
+ exports[`Translate command > extract openapi spec files 9`] = `
914
+ "items:
915
+ - name: '%%%0%%%'
916
+ include:
917
+ path: openapi
918
+ includers:
919
+ - name: openapi
920
+ input: openapi-spec.yaml
921
+ "
922
+ `;
923
+
924
+ exports[`Translate command > extract openapi spec files 10`] = `
925
+ "<?xml version="1.0" encoding="UTF-8"?>
926
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
927
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
928
+ <header>
929
+ <skeleton>
930
+ <external-file href="file.skl"></external-file>
931
+ </skeleton>
932
+ </header>
933
+ <body>
934
+ <trans-unit id="0">
935
+ <source xml:space="preserve">openapi</source>
936
+ </trans-unit>
937
+ </body>
938
+ </file>
939
+ </xliff>"
940
+ `;
941
+
3
942
  exports[`Translate command > extract yaml scheme files > en/index.yaml.skl 1`] = `
4
943
  "blocks:
5
944
  - type: content-layout-block
@@ -35,7 +974,623 @@ exports[`Translate command > extract yaml scheme files > en/index.yaml.skl 1`] =
35
974
  "
36
975
  `;
37
976
 
38
- exports[`Translate command > extract yaml scheme files > en/index.yaml.xliff 1`] = `
977
+ exports[`Translate command > extract yaml scheme files > en/index.yaml.xliff 1`] = `
978
+ "<?xml version="1.0" encoding="UTF-8"?>
979
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
980
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
981
+ <header>
982
+ <skeleton>
983
+ <external-file href="file.skl"></external-file>
984
+ </skeleton>
985
+ </header>
986
+ <body>
987
+ <trans-unit id="0">
988
+ <source xml:space="preserve">Введение</source>
989
+ </trans-unit>
990
+ <trans-unit id="1">
991
+ <source xml:space="preserve">API сервиса: - Управлять счетчиками, их настройками и правами доступа, не используя веб-интерфейс.</source>
992
+ </trans-unit>
993
+ <trans-unit id="2">
994
+ <source xml:space="preserve">Получать информацию о посещаемости сайта и другие данные.</source>
995
+ </trans-unit>
996
+ <trans-unit id="3">
997
+ <source xml:space="preserve">Формировать отчеты, в том числе с помощью сегментации и параметризации.</source>
998
+ </trans-unit>
999
+ <trans-unit id="4">
1000
+ <source xml:space="preserve">Виды API</source>
1001
+ </trans-unit>
1002
+ <trans-unit id="5">
1003
+ <source xml:space="preserve">API управления</source>
1004
+ </trans-unit>
1005
+ <trans-unit id="6">
1006
+ <source xml:space="preserve">Управление счетчиками, целями, фильтрами и другими объектами Сервиса (например, создать счетчик, отредактировать его настройки, создать цель, выдать права доступа).</source>
1007
+ </trans-unit>
1008
+ <trans-unit id="7">
1009
+ <source xml:space="preserve">API управления</source>
1010
+ </trans-unit>
1011
+ </body>
1012
+ </file>
1013
+ </xliff>"
1014
+ `;
1015
+
1016
+ exports[`Translate command > extract yaml scheme files > en/index-direct.yaml.skl 1`] = `
1017
+ "meta:
1018
+ title: '%%%0%%%'
1019
+ description: '%%%1%%%'
1020
+ fullScreen: true
1021
+ blocks:
1022
+ - type: header-block
1023
+ title: <div class="u-breadcrumbs"></div>
1024
+ breadcrumbs:
1025
+ items:
1026
+ - text: '%%%2%%%'
1027
+ url: https://site.ru/support/
1028
+ - text: '%%%3%%%'
1029
+ url: https://site.ru/support/adv/
1030
+ - type: filter-block
1031
+ centered: false
1032
+ title:
1033
+ text: '%%%4%%%'
1034
+ tags:
1035
+ - id: one
1036
+ label: '%%%5%%%'
1037
+ - id: two
1038
+ label: '%%%6%%%'
1039
+ colSizes:
1040
+ all: 12
1041
+ xl: 4
1042
+ sm: 6
1043
+ md: 4
1044
+ items:
1045
+ - tags:
1046
+ - one
1047
+ card:
1048
+ type: image-card
1049
+ image: https://site.ru/img/orig
1050
+ title: '%%%7%%%'
1051
+ text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
1052
+ margins: m
1053
+ border: shadow
1054
+ url: unified-performance-campaign/about.md
1055
+ urlTitle: '%%%10%%%'
1056
+ - tags:
1057
+ - one
1058
+ card:
1059
+ type: image-card
1060
+ image: https://site.ru/img2/orig
1061
+ title: '%%%11%%%'
1062
+ text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
1063
+ margins: m
1064
+ border: shadow
1065
+ url: campaign-master/product-campaign.md
1066
+ urlTitle: '%%%14%%%'
1067
+ - tags:
1068
+ - one
1069
+ card:
1070
+ type: image-card
1071
+ image: https://site.ru/img2/orig
1072
+ title: '%%%15%%%'
1073
+ text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
1074
+ margins: m
1075
+ border: shadow
1076
+ url: efficiency/telegram-ads.md
1077
+ urlTitle: '%%%18%%%'
1078
+ - tags:
1079
+ - one
1080
+ card:
1081
+ type: background-card
1082
+ title: '%%%19%%%'
1083
+ text: ''
1084
+ backgroundColor: '#F3F6FC'
1085
+ border: line
1086
+ links:
1087
+ - text: '%%%20%%%'
1088
+ url: statistics.md
1089
+ arrow: true
1090
+ theme: normal
1091
+ - text: '%%%21%%%'
1092
+ url: feeds/about.md
1093
+ arrow: true
1094
+ theme: normal
1095
+ - tags:
1096
+ - one
1097
+ card:
1098
+ type: background-card
1099
+ title: '%%%22%%%'
1100
+ text: ''
1101
+ backgroundColor: '#F3F6FC'
1102
+ border: line
1103
+ links:
1104
+ - text: '%%%23%%%'
1105
+ url: moderation/adv-rules.md
1106
+ arrow: true
1107
+ theme: normal
1108
+ - text: '%%%24%%%'
1109
+ url: technologies-and-services/technologies-and-services.md
1110
+ arrow: true
1111
+ theme: normal
1112
+ - text: '%%%25%%%'
1113
+ url: troubleshooting/other.md
1114
+ arrow: true
1115
+ theme: normal
1116
+ - tags:
1117
+ - one
1118
+ card:
1119
+ type: background-card
1120
+ title: '%%%26%%%'
1121
+ text: ''
1122
+ backgroundColor: '#F3F6FC'
1123
+ border: line
1124
+ links:
1125
+ - text: '%%%27%%%'
1126
+ url: glossary.md
1127
+ arrow: true
1128
+ theme: normal
1129
+ - tags:
1130
+ - two
1131
+ card:
1132
+ type: image-card
1133
+ image: https://site.ru/img4/orig
1134
+ title: '%%%28%%%'
1135
+ text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
1136
+ margins: m
1137
+ border: shadow
1138
+ url: products-automatic/about.md
1139
+ urlTitle: '%%%31%%%'
1140
+ animated: false
1141
+ "
1142
+ `;
1143
+
1144
+ exports[`Translate command > extract yaml scheme files > en/index-direct.yaml.xliff 1`] = `
1145
+ "<?xml version="1.0" encoding="UTF-8"?>
1146
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1147
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1148
+ <header>
1149
+ <skeleton>
1150
+ <external-file href="file.skl"></external-file>
1151
+ </skeleton>
1152
+ </header>
1153
+ <body>
1154
+ <trans-unit id="0">
1155
+ <source xml:space="preserve">Справка Сервиса</source>
1156
+ </trans-unit>
1157
+ <trans-unit id="1">
1158
+ <source xml:space="preserve">В Справке Сервиса собрали всю необходимую информацию.</source>
1159
+ </trans-unit>
1160
+ <trans-unit id="2">
1161
+ <source xml:space="preserve">Справка</source>
1162
+ </trans-unit>
1163
+ <trans-unit id="3">
1164
+ <source xml:space="preserve">Реклама</source>
1165
+ </trans-unit>
1166
+ <trans-unit id="4">
1167
+ <source xml:space="preserve">Сервис</source>
1168
+ </trans-unit>
1169
+ <trans-unit id="5">
1170
+ <source xml:space="preserve">Для специалистов</source>
1171
+ </trans-unit>
1172
+ <trans-unit id="6">
1173
+ <source xml:space="preserve">Для предпринимателей</source>
1174
+ </trans-unit>
1175
+ <trans-unit id="7">
1176
+ <source xml:space="preserve">Единая перфоманс-кампания</source>
1177
+ </trans-unit>
1178
+ <trans-unit id="8">
1179
+ <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
1180
+ </trans-unit>
1181
+ <trans-unit id="9">
1182
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1183
+ </trans-unit>
1184
+ <trans-unit id="10">
1185
+ <source xml:space="preserve">Подробнее</source>
1186
+ </trans-unit>
1187
+ <trans-unit id="11">
1188
+ <source xml:space="preserve">Товарная кампания</source>
1189
+ </trans-unit>
1190
+ <trans-unit id="12">
1191
+ <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
1192
+ </trans-unit>
1193
+ <trans-unit id="13">
1194
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1195
+ </trans-unit>
1196
+ <trans-unit id="14">
1197
+ <source xml:space="preserve">Подробнее</source>
1198
+ </trans-unit>
1199
+ <trans-unit id="15">
1200
+ <source xml:space="preserve">Реклама в Telegram</source>
1201
+ </trans-unit>
1202
+ <trans-unit id="16">
1203
+ <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
1204
+ </trans-unit>
1205
+ <trans-unit id="17">
1206
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1207
+ </trans-unit>
1208
+ <trans-unit id="18">
1209
+ <source xml:space="preserve">Подробнее</source>
1210
+ </trans-unit>
1211
+ <trans-unit id="19">
1212
+ <source xml:space="preserve">Часто ищут</source>
1213
+ </trans-unit>
1214
+ <trans-unit id="20">
1215
+ <source xml:space="preserve">Статистика</source>
1216
+ </trans-unit>
1217
+ <trans-unit id="21">
1218
+ <source xml:space="preserve">Управление фидами</source>
1219
+ </trans-unit>
1220
+ <trans-unit id="22">
1221
+ <source xml:space="preserve">Сервисные функции</source>
1222
+ </trans-unit>
1223
+ <trans-unit id="23">
1224
+ <source xml:space="preserve">Правила и модерация</source>
1225
+ </trans-unit>
1226
+ <trans-unit id="24">
1227
+ <source xml:space="preserve">Технологии и сервисы</source>
1228
+ </trans-unit>
1229
+ <trans-unit id="25">
1230
+ <source xml:space="preserve">Поддержка 24/7</source>
1231
+ </trans-unit>
1232
+ <trans-unit id="26">
1233
+ <source xml:space="preserve">Полезные ссылки</source>
1234
+ </trans-unit>
1235
+ <trans-unit id="27">
1236
+ <source xml:space="preserve">Глоссарий</source>
1237
+ </trans-unit>
1238
+ <trans-unit id="28">
1239
+ <source xml:space="preserve">Простой старт</source>
1240
+ </trans-unit>
1241
+ <trans-unit id="29">
1242
+ <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
1243
+ </trans-unit>
1244
+ <trans-unit id="30">
1245
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1246
+ </trans-unit>
1247
+ <trans-unit id="31">
1248
+ <source xml:space="preserve">Подробнее</source>
1249
+ </trans-unit>
1250
+ </body>
1251
+ </file>
1252
+ </xliff>"
1253
+ `;
1254
+
1255
+ exports[`Translate command > extract yaml scheme files > en/toc.yaml.skl 1`] = `
1256
+ "title: '%%%0%%%'
1257
+ href: index.yaml
1258
+ items:
1259
+ - name: '%%%4%%%'
1260
+ - href: index-direct.yaml
1261
+ navigation:
1262
+ header:
1263
+ leftItems:
1264
+ - text: '%%%2%%%'
1265
+ type: dropdown
1266
+ items:
1267
+ - text: '%%%3%%%'
1268
+ type: link
1269
+ href: menu/item
1270
+ logo:
1271
+ light:
1272
+ icon: https://icon.link/logo.svg
1273
+ url: https://site.ru
1274
+ urlTitle: '%%%1%%%'
1275
+ "
1276
+ `;
1277
+
1278
+ exports[`Translate command > extract yaml scheme files > en/toc.yaml.xliff 1`] = `
1279
+ "<?xml version="1.0" encoding="UTF-8"?>
1280
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1281
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1282
+ <header>
1283
+ <skeleton>
1284
+ <external-file href="file.skl"></external-file>
1285
+ </skeleton>
1286
+ </header>
1287
+ <body>
1288
+ <trans-unit id="0">
1289
+ <source xml:space="preserve">Заголовок</source>
1290
+ </trans-unit>
1291
+ <trans-unit id="1">
1292
+ <source xml:space="preserve">На сайт сервиса</source>
1293
+ </trans-unit>
1294
+ <trans-unit id="2">
1295
+ <source xml:space="preserve">Инструменты</source>
1296
+ </trans-unit>
1297
+ <trans-unit id="3">
1298
+ <source xml:space="preserve">Пункт меню</source>
1299
+ </trans-unit>
1300
+ <trans-unit id="4">
1301
+ <source xml:space="preserve">Дочерняя страница</source>
1302
+ </trans-unit>
1303
+ </body>
1304
+ </file>
1305
+ </xliff>"
1306
+ `;
1307
+
1308
+ exports[`Translate command > extract yaml scheme files > filelist 1`] = `
1309
+ "[
1310
+ "en/index-direct.yaml.skl",
1311
+ "en/index-direct.yaml.xliff",
1312
+ "en/index.yaml.skl",
1313
+ "en/index.yaml.xliff",
1314
+ "en/toc.yaml.skl",
1315
+ "en/toc.yaml.xliff"
1316
+ ]"
1317
+ `;
1318
+
1319
+ exports[`Translate command > extract yaml scheme files 1`] = `
1320
+ "meta:
1321
+ title: '%%%0%%%'
1322
+ description: '%%%1%%%'
1323
+ fullScreen: true
1324
+ blocks:
1325
+ - type: header-block
1326
+ title: <div class="u-breadcrumbs"></div>
1327
+ breadcrumbs:
1328
+ items:
1329
+ - text: '%%%2%%%'
1330
+ url: https://site.ru/support/
1331
+ - text: '%%%3%%%'
1332
+ url: https://site.ru/support/adv/
1333
+ - type: filter-block
1334
+ centered: false
1335
+ title:
1336
+ text: '%%%4%%%'
1337
+ tags:
1338
+ - id: one
1339
+ label: '%%%5%%%'
1340
+ - id: two
1341
+ label: '%%%6%%%'
1342
+ colSizes:
1343
+ all: 12
1344
+ xl: 4
1345
+ sm: 6
1346
+ md: 4
1347
+ items:
1348
+ - tags:
1349
+ - one
1350
+ card:
1351
+ type: image-card
1352
+ image: https://site.ru/img/orig
1353
+ title: '%%%7%%%'
1354
+ text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
1355
+ margins: m
1356
+ border: shadow
1357
+ url: unified-performance-campaign/about.md
1358
+ urlTitle: '%%%10%%%'
1359
+ - tags:
1360
+ - one
1361
+ card:
1362
+ type: image-card
1363
+ image: https://site.ru/img2/orig
1364
+ title: '%%%11%%%'
1365
+ text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
1366
+ margins: m
1367
+ border: shadow
1368
+ url: campaign-master/product-campaign.md
1369
+ urlTitle: '%%%14%%%'
1370
+ - tags:
1371
+ - one
1372
+ card:
1373
+ type: image-card
1374
+ image: https://site.ru/img2/orig
1375
+ title: '%%%15%%%'
1376
+ text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
1377
+ margins: m
1378
+ border: shadow
1379
+ url: efficiency/telegram-ads.md
1380
+ urlTitle: '%%%18%%%'
1381
+ - tags:
1382
+ - one
1383
+ card:
1384
+ type: background-card
1385
+ title: '%%%19%%%'
1386
+ text: ''
1387
+ backgroundColor: '#F3F6FC'
1388
+ border: line
1389
+ links:
1390
+ - text: '%%%20%%%'
1391
+ url: statistics.md
1392
+ arrow: true
1393
+ theme: normal
1394
+ - text: '%%%21%%%'
1395
+ url: feeds/about.md
1396
+ arrow: true
1397
+ theme: normal
1398
+ - tags:
1399
+ - one
1400
+ card:
1401
+ type: background-card
1402
+ title: '%%%22%%%'
1403
+ text: ''
1404
+ backgroundColor: '#F3F6FC'
1405
+ border: line
1406
+ links:
1407
+ - text: '%%%23%%%'
1408
+ url: moderation/adv-rules.md
1409
+ arrow: true
1410
+ theme: normal
1411
+ - text: '%%%24%%%'
1412
+ url: technologies-and-services/technologies-and-services.md
1413
+ arrow: true
1414
+ theme: normal
1415
+ - text: '%%%25%%%'
1416
+ url: troubleshooting/other.md
1417
+ arrow: true
1418
+ theme: normal
1419
+ - tags:
1420
+ - one
1421
+ card:
1422
+ type: background-card
1423
+ title: '%%%26%%%'
1424
+ text: ''
1425
+ backgroundColor: '#F3F6FC'
1426
+ border: line
1427
+ links:
1428
+ - text: '%%%27%%%'
1429
+ url: glossary.md
1430
+ arrow: true
1431
+ theme: normal
1432
+ - tags:
1433
+ - two
1434
+ card:
1435
+ type: image-card
1436
+ image: https://site.ru/img4/orig
1437
+ title: '%%%28%%%'
1438
+ text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
1439
+ margins: m
1440
+ border: shadow
1441
+ url: products-automatic/about.md
1442
+ urlTitle: '%%%31%%%'
1443
+ animated: false
1444
+ "
1445
+ `;
1446
+
1447
+ exports[`Translate command > extract yaml scheme files 2`] = `
1448
+ "<?xml version="1.0" encoding="UTF-8"?>
1449
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1450
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1451
+ <header>
1452
+ <skeleton>
1453
+ <external-file href="file.skl"></external-file>
1454
+ </skeleton>
1455
+ </header>
1456
+ <body>
1457
+ <trans-unit id="0">
1458
+ <source xml:space="preserve">Справка Сервиса</source>
1459
+ </trans-unit>
1460
+ <trans-unit id="1">
1461
+ <source xml:space="preserve">В Справке Сервиса собрали всю необходимую информацию.</source>
1462
+ </trans-unit>
1463
+ <trans-unit id="2">
1464
+ <source xml:space="preserve">Справка</source>
1465
+ </trans-unit>
1466
+ <trans-unit id="3">
1467
+ <source xml:space="preserve">Реклама</source>
1468
+ </trans-unit>
1469
+ <trans-unit id="4">
1470
+ <source xml:space="preserve">Сервис</source>
1471
+ </trans-unit>
1472
+ <trans-unit id="5">
1473
+ <source xml:space="preserve">Для специалистов</source>
1474
+ </trans-unit>
1475
+ <trans-unit id="6">
1476
+ <source xml:space="preserve">Для предпринимателей</source>
1477
+ </trans-unit>
1478
+ <trans-unit id="7">
1479
+ <source xml:space="preserve">Единая перфоманс-кампания</source>
1480
+ </trans-unit>
1481
+ <trans-unit id="8">
1482
+ <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
1483
+ </trans-unit>
1484
+ <trans-unit id="9">
1485
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1486
+ </trans-unit>
1487
+ <trans-unit id="10">
1488
+ <source xml:space="preserve">Подробнее</source>
1489
+ </trans-unit>
1490
+ <trans-unit id="11">
1491
+ <source xml:space="preserve">Товарная кампания</source>
1492
+ </trans-unit>
1493
+ <trans-unit id="12">
1494
+ <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
1495
+ </trans-unit>
1496
+ <trans-unit id="13">
1497
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1498
+ </trans-unit>
1499
+ <trans-unit id="14">
1500
+ <source xml:space="preserve">Подробнее</source>
1501
+ </trans-unit>
1502
+ <trans-unit id="15">
1503
+ <source xml:space="preserve">Реклама в Telegram</source>
1504
+ </trans-unit>
1505
+ <trans-unit id="16">
1506
+ <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
1507
+ </trans-unit>
1508
+ <trans-unit id="17">
1509
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1510
+ </trans-unit>
1511
+ <trans-unit id="18">
1512
+ <source xml:space="preserve">Подробнее</source>
1513
+ </trans-unit>
1514
+ <trans-unit id="19">
1515
+ <source xml:space="preserve">Часто ищут</source>
1516
+ </trans-unit>
1517
+ <trans-unit id="20">
1518
+ <source xml:space="preserve">Статистика</source>
1519
+ </trans-unit>
1520
+ <trans-unit id="21">
1521
+ <source xml:space="preserve">Управление фидами</source>
1522
+ </trans-unit>
1523
+ <trans-unit id="22">
1524
+ <source xml:space="preserve">Сервисные функции</source>
1525
+ </trans-unit>
1526
+ <trans-unit id="23">
1527
+ <source xml:space="preserve">Правила и модерация</source>
1528
+ </trans-unit>
1529
+ <trans-unit id="24">
1530
+ <source xml:space="preserve">Технологии и сервисы</source>
1531
+ </trans-unit>
1532
+ <trans-unit id="25">
1533
+ <source xml:space="preserve">Поддержка 24/7</source>
1534
+ </trans-unit>
1535
+ <trans-unit id="26">
1536
+ <source xml:space="preserve">Полезные ссылки</source>
1537
+ </trans-unit>
1538
+ <trans-unit id="27">
1539
+ <source xml:space="preserve">Глоссарий</source>
1540
+ </trans-unit>
1541
+ <trans-unit id="28">
1542
+ <source xml:space="preserve">Простой старт</source>
1543
+ </trans-unit>
1544
+ <trans-unit id="29">
1545
+ <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
1546
+ </trans-unit>
1547
+ <trans-unit id="30">
1548
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1549
+ </trans-unit>
1550
+ <trans-unit id="31">
1551
+ <source xml:space="preserve">Подробнее</source>
1552
+ </trans-unit>
1553
+ </body>
1554
+ </file>
1555
+ </xliff>"
1556
+ `;
1557
+
1558
+ exports[`Translate command > extract yaml scheme files 3`] = `
1559
+ "blocks:
1560
+ - type: content-layout-block
1561
+ textWidth: l
1562
+ textContent:
1563
+ title: '%%%0%%%'
1564
+ text: |2-
1565
+ %%%1%%%
1566
+ - %%%2%%%
1567
+ - %%%3%%%
1568
+
1569
+ - type: card-layout-block
1570
+ colSizes:
1571
+ all: 12
1572
+ lg: 4
1573
+ md: 6
1574
+ sm: 12
1575
+ xl: 4
1576
+ indent:
1577
+ bottom: xs
1578
+ title: '%%%4%%%'
1579
+ animated: false
1580
+ children:
1581
+ - type: basic-card
1582
+ title: '%%%5%%%'
1583
+ text: '%%%6%%%'
1584
+ urlTitle: '%%%7%%%'
1585
+ border: shadow
1586
+ controlPosition: content
1587
+ url: management/index
1588
+ target: ''
1589
+ animated: false
1590
+ "
1591
+ `;
1592
+
1593
+ exports[`Translate command > extract yaml scheme files 4`] = `
39
1594
  "<?xml version="1.0" encoding="UTF-8"?>
40
1595
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
41
1596
  <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
@@ -74,138 +1629,199 @@ exports[`Translate command > extract yaml scheme files > en/index.yaml.xliff 1`]
74
1629
  </xliff>"
75
1630
  `;
76
1631
 
77
- exports[`Translate command > extract yaml scheme files > en/index-direct.yaml.skl 1`] = `
78
- "meta:
79
- title: '%%%0%%%'
80
- description: '%%%1%%%'
81
- fullScreen: true
82
- blocks:
83
- - type: header-block
84
- title: <div class="u-breadcrumbs"></div>
85
- breadcrumbs:
86
- items:
87
- - text: '%%%2%%%'
88
- url: https://site.ru/support/
89
- - text: '%%%3%%%'
90
- url: https://site.ru/support/adv/
91
- - type: filter-block
92
- centered: false
93
- title:
94
- text: '%%%4%%%'
95
- tags:
96
- - id: one
97
- label: '%%%5%%%'
98
- - id: two
99
- label: '%%%6%%%'
100
- colSizes:
101
- all: 12
102
- xl: 4
103
- sm: 6
104
- md: 4
105
- items:
106
- - tags:
107
- - one
108
- card:
109
- type: image-card
110
- image: https://site.ru/img/orig
111
- title: '%%%7%%%'
112
- text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
113
- margins: m
114
- border: shadow
115
- url: unified-performance-campaign/about.md
116
- urlTitle: '%%%10%%%'
117
- - tags:
118
- - one
119
- card:
120
- type: image-card
121
- image: https://site.ru/img2/orig
122
- title: '%%%11%%%'
123
- text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
124
- margins: m
125
- border: shadow
126
- url: campaign-master/product-campaign.md
127
- urlTitle: '%%%14%%%'
128
- - tags:
129
- - one
130
- card:
131
- type: image-card
132
- image: https://site.ru/img2/orig
133
- title: '%%%15%%%'
134
- text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
135
- margins: m
136
- border: shadow
137
- url: efficiency/telegram-ads.md
138
- urlTitle: '%%%18%%%'
139
- - tags:
140
- - one
141
- card:
142
- type: background-card
143
- title: '%%%19%%%'
144
- text: ''
145
- backgroundColor: '#F3F6FC'
146
- border: line
147
- links:
148
- - text: '%%%20%%%'
149
- url: statistics.md
150
- arrow: true
151
- theme: normal
152
- - text: '%%%21%%%'
153
- url: feeds/about.md
154
- arrow: true
155
- theme: normal
156
- - tags:
157
- - one
158
- card:
159
- type: background-card
160
- title: '%%%22%%%'
161
- text: ''
162
- backgroundColor: '#F3F6FC'
163
- border: line
164
- links:
165
- - text: '%%%23%%%'
166
- url: moderation/adv-rules.md
167
- arrow: true
168
- theme: normal
169
- - text: '%%%24%%%'
170
- url: technologies-and-services/technologies-and-services.md
171
- arrow: true
172
- theme: normal
173
- - text: '%%%25%%%'
174
- url: troubleshooting/other.md
175
- arrow: true
176
- theme: normal
177
- - tags:
178
- - one
179
- card:
180
- type: background-card
181
- title: '%%%26%%%'
182
- text: ''
183
- backgroundColor: '#F3F6FC'
184
- border: line
185
- links:
186
- - text: '%%%27%%%'
187
- url: glossary.md
188
- arrow: true
189
- theme: normal
190
- - tags:
191
- - two
192
- card:
193
- type: image-card
194
- image: https://site.ru/img4/orig
195
- title: '%%%28%%%'
196
- text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
197
- margins: m
198
- border: shadow
199
- url: products-automatic/about.md
200
- urlTitle: '%%%31%%%'
201
- animated: false
1632
+ exports[`Translate command > extract yaml scheme files 5`] = `
1633
+ "title: '%%%0%%%'
1634
+ href: index.yaml
1635
+ items:
1636
+ - name: '%%%4%%%'
1637
+ - href: index-direct.yaml
1638
+ navigation:
1639
+ header:
1640
+ leftItems:
1641
+ - text: '%%%2%%%'
1642
+ type: dropdown
1643
+ items:
1644
+ - text: '%%%3%%%'
1645
+ type: link
1646
+ href: menu/item
1647
+ logo:
1648
+ light:
1649
+ icon: https://icon.link/logo.svg
1650
+ url: https://site.ru
1651
+ urlTitle: '%%%1%%%'
1652
+ "
1653
+ `;
1654
+
1655
+ exports[`Translate command > extract yaml scheme files 6`] = `
1656
+ "<?xml version="1.0" encoding="UTF-8"?>
1657
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1658
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1659
+ <header>
1660
+ <skeleton>
1661
+ <external-file href="file.skl"></external-file>
1662
+ </skeleton>
1663
+ </header>
1664
+ <body>
1665
+ <trans-unit id="0">
1666
+ <source xml:space="preserve">Заголовок</source>
1667
+ </trans-unit>
1668
+ <trans-unit id="1">
1669
+ <source xml:space="preserve">На сайт сервиса</source>
1670
+ </trans-unit>
1671
+ <trans-unit id="2">
1672
+ <source xml:space="preserve">Инструменты</source>
1673
+ </trans-unit>
1674
+ <trans-unit id="3">
1675
+ <source xml:space="preserve">Пункт меню</source>
1676
+ </trans-unit>
1677
+ <trans-unit id="4">
1678
+ <source xml:space="preserve">Дочерняя страница</source>
1679
+ </trans-unit>
1680
+ </body>
1681
+ </file>
1682
+ </xliff>"
1683
+ `;
1684
+
1685
+ exports[`Translate command > filter files on extract > filelist 1`] = `
1686
+ "[
1687
+ "es/_includes/test.md.skl",
1688
+ "es/_includes/test.md.xliff",
1689
+ "es/_no-translate/exclude.md.skl",
1690
+ "es/_no-translate/exclude.md.xliff",
1691
+ "es/aboba.md.skl",
1692
+ "es/aboba.md.xliff",
1693
+ "es/index.md.skl",
1694
+ "es/index.md.xliff",
1695
+ "es/nested/index-yfm.md.skl",
1696
+ "es/nested/index-yfm.md.xliff",
1697
+ "es/nested/index.yaml.skl",
1698
+ "es/nested/index.yaml.xliff",
1699
+ "es/nested/syntax/base.md.skl",
1700
+ "es/nested/syntax/base.md.xliff",
1701
+ "es/nested/syntax/lists.md.skl",
1702
+ "es/nested/syntax/lists.md.xliff",
1703
+ "es/nested/toc.yaml.skl",
1704
+ "es/nested/toc.yaml.xliff",
1705
+ "es/toc.yaml.skl",
1706
+ "es/toc.yaml.xliff"
1707
+ ]"
1708
+ `;
1709
+
1710
+ exports[`Translate command > filter files on extract with extra exclude option > filelist 1`] = `
1711
+ "[
1712
+ "es/_includes/test.md.skl",
1713
+ "es/_includes/test.md.xliff",
1714
+ "es/aboba.md.skl",
1715
+ "es/aboba.md.xliff",
1716
+ "es/index.md.skl",
1717
+ "es/index.md.xliff",
1718
+ "es/nested/index-yfm.md.skl",
1719
+ "es/nested/index-yfm.md.xliff",
1720
+ "es/nested/index.yaml.skl",
1721
+ "es/nested/index.yaml.xliff",
1722
+ "es/nested/syntax/base.md.skl",
1723
+ "es/nested/syntax/base.md.xliff",
1724
+ "es/nested/syntax/lists.md.skl",
1725
+ "es/nested/syntax/lists.md.xliff",
1726
+ "es/nested/toc.yaml.skl",
1727
+ "es/nested/toc.yaml.xliff",
1728
+ "es/toc.yaml.skl",
1729
+ "es/toc.yaml.xliff"
1730
+ ]"
1731
+ `;
1732
+
1733
+ exports[`Translate command > removes no-translate directive and leaves content as is > filelist 1`] = `
1734
+ "[
1735
+ "index.md.skl",
1736
+ "index.md.xliff",
1737
+ "no-translate.md.skl",
1738
+ "no-translate.md.xliff",
1739
+ "openapi-spec.yaml.skl",
1740
+ "openapi-spec.yaml.xliff",
1741
+ "toc.yaml.skl",
1742
+ "toc.yaml.xliff"
1743
+ ]"
1744
+ `;
1745
+
1746
+ exports[`Translate command > removes no-translate directive and leaves content as is 1`] = `
1747
+ "## %%%0%%%
1748
+
1749
+ ::no-translate [adsfasdfasdfasdfasdf]
1750
+
1751
+ %%%1%%%
1752
+
1753
+ %%%2%%%"
1754
+ `;
1755
+
1756
+ exports[`Translate command > removes no-translate directive and leaves content as is 2`] = `
1757
+ "<?xml version="1.0" encoding="UTF-8"?>
1758
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1759
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1760
+ <header>
1761
+ <skeleton>
1762
+ <external-file href="file.skl"></external-file>
1763
+ </skeleton>
1764
+ </header>
1765
+ <body>
1766
+ <trans-unit id="0">
1767
+ <source xml:space="preserve">Index header</source>
1768
+ </trans-unit>
1769
+ <trans-unit id="1">
1770
+ <source xml:space="preserve">lorem</source>
1771
+ </trans-unit>
1772
+ <trans-unit id="2">
1773
+ <source xml:space="preserve">asdfasdfasdf</source>
1774
+ </trans-unit>
1775
+ </body>
1776
+ </file>
1777
+ </xliff>"
1778
+ `;
1779
+
1780
+ exports[`Translate command > removes no-translate directive and leaves content as is 3`] = `
1781
+ "# %%%0%%%
1782
+
1783
+ ## %%%1%%%
1784
+ :::no-translate
1785
+ ### No-translate header
1786
+ Should not be translated.
1787
+ Can use **markup** inside.
1788
+ :::
1789
+
1790
+ ## %%%2%%%
1791
+
1792
+ ::no-translate [## /usr/local/bin/application]
1793
+ ::no-translate[**C:/Program Files/Application/config.ini**]
1794
+ ::no-translate [~/Documents/project/src/main.rs]
1795
+
1796
+
1797
+ - :no-translate[GET /api/v1/users] %%%3%%%
1798
+ - :no-translate[POST /api/v1/auth/login] %%%4%%%
1799
+ - :no-translate[PUT /api/v1/users/{id}] %%%5%%%
1800
+
1801
+ ## %%%6%%%
1802
+ %%%7%%%
1803
+ :no-translate[The default port is unless specified.] %%%8%%%
1804
+ %%%9%%%
1805
+
1806
+ ## %%%10%%%
1807
+ %%%11%%%
1808
+ %%%12%%%
1809
+ %%%13%%%
1810
+
1811
+ ## %%%14%%%
1812
+ %%%15%%%
1813
+
1814
+ ## %%%16%%%
1815
+ %%%17%%%
1816
+
1817
+
202
1818
  "
203
1819
  `;
204
1820
 
205
- exports[`Translate command > extract yaml scheme files > en/index-direct.yaml.xliff 1`] = `
1821
+ exports[`Translate command > removes no-translate directive and leaves content as is 4`] = `
206
1822
  "<?xml version="1.0" encoding="UTF-8"?>
207
1823
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
208
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1824
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
209
1825
  <header>
210
1826
  <skeleton>
211
1827
  <external-file href="file.skl"></external-file>
@@ -213,133 +1829,108 @@ exports[`Translate command > extract yaml scheme files > en/index-direct.yaml.xl
213
1829
  </header>
214
1830
  <body>
215
1831
  <trans-unit id="0">
216
- <source xml:space="preserve">Справка Сервиса</source>
1832
+ <source xml:space="preserve">No-translate directive</source>
217
1833
  </trans-unit>
218
1834
  <trans-unit id="1">
219
- <source xml:space="preserve" Справке Сервиса собрали всю необходимую информацию.</source>
1835
+ <source xml:space="preserve">Block directive</source>
220
1836
  </trans-unit>
221
1837
  <trans-unit id="2">
222
- <source xml:space="preserve">Справка</source>
1838
+ <source xml:space="preserve">Leaf directive</source>
223
1839
  </trans-unit>
224
1840
  <trans-unit id="3">
225
- <source xml:space="preserve">Реклама</source>
1841
+ <source xml:space="preserve">— get all users</source>
226
1842
  </trans-unit>
227
1843
  <trans-unit id="4">
228
- <source xml:space="preserve">Сервис</source>
1844
+ <source xml:space="preserve">— authorization</source>
229
1845
  </trans-unit>
230
1846
  <trans-unit id="5">
231
- <source xml:space="preserve">Для специалистов</source>
1847
+ <source xml:space="preserve">— update users data</source>
232
1848
  </trans-unit>
233
1849
  <trans-unit id="6">
234
- <source xml:space="preserve">Для предпринимателей</source>
1850
+ <source xml:space="preserve">Simple case leaf</source>
235
1851
  </trans-unit>
236
1852
  <trans-unit id="7">
237
- <source xml:space="preserve">Единая перфоманс-кампания</source>
1853
+ <source xml:space="preserve">Install using command.</source>
238
1854
  </trans-unit>
239
1855
  <trans-unit id="8">
240
- <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
1856
+ <source xml:space="preserve">Next sentence.</source>
241
1857
  </trans-unit>
242
1858
  <trans-unit id="9">
243
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1859
+ <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
244
1860
  </trans-unit>
245
1861
  <trans-unit id="10">
246
- <source xml:space="preserve">Подробнее</source>
1862
+ <source xml:space="preserve">Simple case inline</source>
247
1863
  </trans-unit>
248
1864
  <trans-unit id="11">
249
- <source xml:space="preserve">Товарная кампания</source>
1865
+ <source xml:space="preserve">Install using <x ctype="no_translate_inline" equiv-text=":no-translate[npm install @company/package]" id="x-2"/> command.</source>
250
1866
  </trans-unit>
251
1867
  <trans-unit id="12">
252
- <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
1868
+ <source xml:space="preserve">The default port is <x ctype="no_translate_inline" equiv-text=":no-translate[8080]" id="x-3"/> unless specified.</source>
253
1869
  </trans-unit>
254
1870
  <trans-unit id="13">
255
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1871
+ <source xml:space="preserve">Set <x ctype="no_translate_inline" equiv-text=":no-translate[NODE_ENV=production]" id="x-4"/> for production builds.</source>
256
1872
  </trans-unit>
257
1873
  <trans-unit id="14">
258
- <source xml:space="preserve">Подробнее</source>
1874
+ <source xml:space="preserve">Few inline directives</source>
259
1875
  </trans-unit>
260
1876
  <trans-unit id="15">
261
- <source xml:space="preserve">Реклама в Telegram</source>
1877
+ <source xml:space="preserve">Use <x ctype="no_translate_inline" equiv-text=":no-translate[**GET /api/v1/users**]" id="x-5"/> to list users and <x ctype="no_translate_inline" equiv-text=":no-translate[POST /api/v1/users]" id="x-6"/> to create.</source>
262
1878
  </trans-unit>
263
1879
  <trans-unit id="16">
264
- <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
1880
+ <source xml:space="preserve">Empty inline directive</source>
265
1881
  </trans-unit>
266
1882
  <trans-unit id="17">
267
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
268
- </trans-unit>
269
- <trans-unit id="18">
270
- <source xml:space="preserve">Подробнее</source>
271
- </trans-unit>
272
- <trans-unit id="19">
273
- <source xml:space="preserve">Часто ищут</source>
274
- </trans-unit>
275
- <trans-unit id="20">
276
- <source xml:space="preserve">Статистика</source>
277
- </trans-unit>
278
- <trans-unit id="21">
279
- <source xml:space="preserve">Управление фидами</source>
280
- </trans-unit>
281
- <trans-unit id="22">
282
- <source xml:space="preserve">Сервисные функции</source>
283
- </trans-unit>
284
- <trans-unit id="23">
285
- <source xml:space="preserve">Правила и модерация</source>
286
- </trans-unit>
287
- <trans-unit id="24">
288
- <source xml:space="preserve">Технологии и сервисы</source>
289
- </trans-unit>
290
- <trans-unit id="25">
291
- <source xml:space="preserve">Поддержка 24/7</source>
292
- </trans-unit>
293
- <trans-unit id="26">
294
- <source xml:space="preserve">Полезные ссылки</source>
295
- </trans-unit>
296
- <trans-unit id="27">
297
- <source xml:space="preserve">Глоссарий</source>
298
- </trans-unit>
299
- <trans-unit id="28">
300
- <source xml:space="preserve">Простой старт</source>
301
- </trans-unit>
302
- <trans-unit id="29">
303
- <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
304
- </trans-unit>
305
- <trans-unit id="30">
306
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
307
- </trans-unit>
308
- <trans-unit id="31">
309
- <source xml:space="preserve">Подробнее</source>
1883
+ <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-7"/> directive.</source>
310
1884
  </trans-unit>
311
1885
  </body>
312
1886
  </file>
313
1887
  </xliff>"
314
1888
  `;
315
1889
 
316
- exports[`Translate command > extract yaml scheme files > en/toc.yaml.skl 1`] = `
317
- "title: '%%%0%%%'
318
- href: index.yaml
319
- items:
320
- - name: '%%%4%%%'
321
- - href: index-direct.yaml
322
- navigation:
323
- header:
324
- leftItems:
325
- - text: '%%%2%%%'
326
- type: dropdown
327
- items:
328
- - text: '%%%3%%%'
329
- type: link
330
- href: menu/item
331
- logo:
332
- light:
333
- icon: https://icon.link/logo.svg
334
- url: https://site.ru
335
- urlTitle: '%%%1%%%'
1890
+ exports[`Translate command > removes no-translate directive and leaves content as is 5`] = `
1891
+ "openapi: 3.0.1
1892
+ info:
1893
+ title: '%%%0%%%'
1894
+ version: v0
1895
+ servers:
1896
+ - url: http://localhost:8080
1897
+ description: '%%%1%%%'
1898
+ paths:
1899
+ /test:
1900
+ get:
1901
+ tags:
1902
+ - test-controller
1903
+ summary: '%%%2%%%'
1904
+ description: '%%%3%%%'
1905
+ operationId: getWithPayloadResponse
1906
+ responses:
1907
+ '200':
1908
+ description: '%%%4%%%'
1909
+ content:
1910
+ application/json:
1911
+ schema:
1912
+ $ref: '#/components/schemas/RecurceTop'
1913
+ components:
1914
+ schemas:
1915
+ RecurceTop:
1916
+ type: object
1917
+ properties:
1918
+ A:
1919
+ type: string
1920
+ RecurceMiddle:
1921
+ type: object
1922
+ properties:
1923
+ B:
1924
+ type: array
1925
+ items:
1926
+ $ref: '#/components/schemas/RecurceTop'
336
1927
  "
337
1928
  `;
338
1929
 
339
- exports[`Translate command > extract yaml scheme files > en/toc.yaml.xliff 1`] = `
1930
+ exports[`Translate command > removes no-translate directive and leaves content as is 6`] = `
340
1931
  "<?xml version="1.0" encoding="UTF-8"?>
341
1932
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
342
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1933
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
343
1934
  <header>
344
1935
  <skeleton>
345
1936
  <external-file href="file.skl"></external-file>
@@ -347,168 +1938,44 @@ exports[`Translate command > extract yaml scheme files > en/toc.yaml.xliff 1`] =
347
1938
  </header>
348
1939
  <body>
349
1940
  <trans-unit id="0">
350
- <source xml:space="preserve">Заголовок</source>
1941
+ <source xml:space="preserve">OpenAPI definition</source>
351
1942
  </trans-unit>
352
1943
  <trans-unit id="1">
353
- <source xml:space="preserve">На сайт сервиса</source>
1944
+ <source xml:space="preserve">Generated server url</source>
354
1945
  </trans-unit>
355
1946
  <trans-unit id="2">
356
- <source xml:space="preserve">Инструменты</source>
1947
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
357
1948
  </trans-unit>
358
1949
  <trans-unit id="3">
359
- <source xml:space="preserve">Пункт меню</source>
1950
+ <source xml:space="preserve">Defines a simple get <x ctype="no_translate_inline" equiv-text=":no-translate[skip this]" id="x-1"/> operation with no inputs and a complex</source>
360
1951
  </trans-unit>
361
1952
  <trans-unit id="4">
362
- <source xml:space="preserve">Дочерняя страница</source>
1953
+ <source xml:space="preserve">200!!!!</source>
363
1954
  </trans-unit>
364
- </body>
365
- </file>
366
- </xliff>"
367
- `;
368
-
369
- exports[`Translate command > extract yaml scheme files > filelist 1`] = `
370
- "[
371
- "en/index-direct.yaml.skl",
372
- "en/index-direct.yaml.xliff",
373
- "en/index.yaml.skl",
374
- "en/index.yaml.xliff",
375
- "en/toc.yaml.skl",
376
- "en/toc.yaml.xliff"
377
- ]"
378
- `;
379
-
380
- exports[`Translate command > extract yaml scheme files 1`] = `
381
- "meta:
382
- title: '%%%0%%%'
383
- description: '%%%1%%%'
384
- fullScreen: true
385
- blocks:
386
- - type: header-block
387
- title: <div class="u-breadcrumbs"></div>
388
- breadcrumbs:
389
- items:
390
- - text: '%%%2%%%'
391
- url: https://site.ru/support/
392
- - text: '%%%3%%%'
393
- url: https://site.ru/support/adv/
394
- - type: filter-block
395
- centered: false
396
- title:
397
- text: '%%%4%%%'
398
- tags:
399
- - id: one
400
- label: '%%%5%%%'
401
- - id: two
402
- label: '%%%6%%%'
403
- colSizes:
404
- all: 12
405
- xl: 4
406
- sm: 6
407
- md: 4
408
- items:
409
- - tags:
410
- - one
411
- card:
412
- type: image-card
413
- image: https://site.ru/img/orig
414
- title: '%%%7%%%'
415
- text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
416
- margins: m
417
- border: shadow
418
- url: unified-performance-campaign/about.md
419
- urlTitle: '%%%10%%%'
420
- - tags:
421
- - one
422
- card:
423
- type: image-card
424
- image: https://site.ru/img2/orig
425
- title: '%%%11%%%'
426
- text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
427
- margins: m
428
- border: shadow
429
- url: campaign-master/product-campaign.md
430
- urlTitle: '%%%14%%%'
431
- - tags:
432
- - one
433
- card:
434
- type: image-card
435
- image: https://site.ru/img2/orig
436
- title: '%%%15%%%'
437
- text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
438
- margins: m
439
- border: shadow
440
- url: efficiency/telegram-ads.md
441
- urlTitle: '%%%18%%%'
442
- - tags:
443
- - one
444
- card:
445
- type: background-card
446
- title: '%%%19%%%'
447
- text: ''
448
- backgroundColor: '#F3F6FC'
449
- border: line
450
- links:
451
- - text: '%%%20%%%'
452
- url: statistics.md
453
- arrow: true
454
- theme: normal
455
- - text: '%%%21%%%'
456
- url: feeds/about.md
457
- arrow: true
458
- theme: normal
459
- - tags:
460
- - one
461
- card:
462
- type: background-card
463
- title: '%%%22%%%'
464
- text: ''
465
- backgroundColor: '#F3F6FC'
466
- border: line
467
- links:
468
- - text: '%%%23%%%'
469
- url: moderation/adv-rules.md
470
- arrow: true
471
- theme: normal
472
- - text: '%%%24%%%'
473
- url: technologies-and-services/technologies-and-services.md
474
- arrow: true
475
- theme: normal
476
- - text: '%%%25%%%'
477
- url: troubleshooting/other.md
478
- arrow: true
479
- theme: normal
480
- - tags:
481
- - one
482
- card:
483
- type: background-card
484
- title: '%%%26%%%'
485
- text: ''
486
- backgroundColor: '#F3F6FC'
487
- border: line
488
- links:
489
- - text: '%%%27%%%'
490
- url: glossary.md
491
- arrow: true
492
- theme: normal
493
- - tags:
494
- - two
495
- card:
496
- type: image-card
497
- image: https://site.ru/img4/orig
498
- title: '%%%28%%%'
499
- text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
500
- margins: m
501
- border: shadow
502
- url: products-automatic/about.md
503
- urlTitle: '%%%31%%%'
504
- animated: false
1955
+ </body>
1956
+ </file>
1957
+ </xliff>"
1958
+ `;
1959
+
1960
+ exports[`Translate command > removes no-translate directive and leaves content as is 7`] = `
1961
+ "title: '%%%0%%%'
1962
+ href: index.md
1963
+ items:
1964
+ - name: '%%%1%%%'
1965
+ href: no-translate.md
1966
+ - name: '%%%2%%%'
1967
+ include:
1968
+ path: openapi
1969
+ includers:
1970
+ - name: openapi
1971
+ input: openapi-spec.yaml
505
1972
  "
506
1973
  `;
507
1974
 
508
- exports[`Translate command > extract yaml scheme files 2`] = `
1975
+ exports[`Translate command > removes no-translate directive and leaves content as is 8`] = `
509
1976
  "<?xml version="1.0" encoding="UTF-8"?>
510
1977
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
511
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1978
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
512
1979
  <header>
513
1980
  <skeleton>
514
1981
  <external-file href="file.skl"></external-file>
@@ -516,145 +1983,220 @@ exports[`Translate command > extract yaml scheme files 2`] = `
516
1983
  </header>
517
1984
  <body>
518
1985
  <trans-unit id="0">
519
- <source xml:space="preserve">Справка Сервиса</source>
1986
+ <source xml:space="preserve">Test123</source>
520
1987
  </trans-unit>
521
1988
  <trans-unit id="1">
522
- <source xml:space="preserve" Справке Сервиса собрали всю необходимую информацию.</source>
1989
+ <source xml:space="preserve">Не переводить</source>
523
1990
  </trans-unit>
524
1991
  <trans-unit id="2">
525
- <source xml:space="preserve">Справка</source>
1992
+ <source xml:space="preserve">openapi</source>
1993
+ </trans-unit>
1994
+ </body>
1995
+ </file>
1996
+ </xliff>"
1997
+ `;
1998
+
1999
+ exports[`Translate command > skip no-translate marked content > filelist 1`] = `
2000
+ "[
2001
+ "index.md.skl",
2002
+ "index.md.xliff",
2003
+ "no-translate.md.skl",
2004
+ "no-translate.md.xliff",
2005
+ "openapi-spec.yaml.skl",
2006
+ "openapi-spec.yaml.xliff",
2007
+ "toc.yaml.skl",
2008
+ "toc.yaml.xliff"
2009
+ ]"
2010
+ `;
2011
+
2012
+ exports[`Translate command > skip no-translate marked content 1`] = `
2013
+ "## %%%0%%%
2014
+
2015
+ ::no-translate [adsfasdfasdfasdfasdf]
2016
+
2017
+ %%%1%%%
2018
+
2019
+ %%%2%%%"
2020
+ `;
2021
+
2022
+ exports[`Translate command > skip no-translate marked content 2`] = `
2023
+ "<?xml version="1.0" encoding="UTF-8"?>
2024
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2025
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2026
+ <header>
2027
+ <skeleton>
2028
+ <external-file href="file.skl"></external-file>
2029
+ </skeleton>
2030
+ </header>
2031
+ <body>
2032
+ <trans-unit id="0">
2033
+ <source xml:space="preserve">Index header</source>
2034
+ </trans-unit>
2035
+ <trans-unit id="1">
2036
+ <source xml:space="preserve">lorem</source>
2037
+ </trans-unit>
2038
+ <trans-unit id="2">
2039
+ <source xml:space="preserve">asdfasdfasdf</source>
2040
+ </trans-unit>
2041
+ </body>
2042
+ </file>
2043
+ </xliff>"
2044
+ `;
2045
+
2046
+ exports[`Translate command > skip no-translate marked content 3`] = `
2047
+ "# %%%0%%%
2048
+
2049
+ ## %%%1%%%
2050
+ :::no-translate
2051
+ ### No-translate header
2052
+ Should not be translated.
2053
+ Can use **markup** inside.
2054
+ :::
2055
+
2056
+ ## %%%2%%%
2057
+
2058
+ ::no-translate [## /usr/local/bin/application]
2059
+ ::no-translate[**C:/Program Files/Application/config.ini**]
2060
+ ::no-translate [~/Documents/project/src/main.rs]
2061
+
2062
+
2063
+ - :no-translate[GET /api/v1/users] %%%3%%%
2064
+ - :no-translate[POST /api/v1/auth/login] %%%4%%%
2065
+ - :no-translate[PUT /api/v1/users/{id}] %%%5%%%
2066
+
2067
+ ## %%%6%%%
2068
+ %%%7%%%
2069
+ :no-translate[The default port is unless specified.] %%%8%%%
2070
+ %%%9%%%
2071
+
2072
+ ## %%%10%%%
2073
+ %%%11%%%
2074
+ %%%12%%%
2075
+ %%%13%%%
2076
+
2077
+ ## %%%14%%%
2078
+ %%%15%%%
2079
+
2080
+ ## %%%16%%%
2081
+ %%%17%%%
2082
+
2083
+
2084
+ "
2085
+ `;
2086
+
2087
+ exports[`Translate command > skip no-translate marked content 4`] = `
2088
+ "<?xml version="1.0" encoding="UTF-8"?>
2089
+ <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2090
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
2091
+ <header>
2092
+ <skeleton>
2093
+ <external-file href="file.skl"></external-file>
2094
+ </skeleton>
2095
+ </header>
2096
+ <body>
2097
+ <trans-unit id="0">
2098
+ <source xml:space="preserve">No-translate directive</source>
2099
+ </trans-unit>
2100
+ <trans-unit id="1">
2101
+ <source xml:space="preserve">Block directive</source>
2102
+ </trans-unit>
2103
+ <trans-unit id="2">
2104
+ <source xml:space="preserve">Leaf directive</source>
526
2105
  </trans-unit>
527
2106
  <trans-unit id="3">
528
- <source xml:space="preserve">Реклама</source>
2107
+ <source xml:space="preserve">— get all users</source>
529
2108
  </trans-unit>
530
2109
  <trans-unit id="4">
531
- <source xml:space="preserve">Сервис</source>
2110
+ <source xml:space="preserve">— authorization</source>
532
2111
  </trans-unit>
533
2112
  <trans-unit id="5">
534
- <source xml:space="preserve">Для специалистов</source>
2113
+ <source xml:space="preserve">— update users data</source>
535
2114
  </trans-unit>
536
2115
  <trans-unit id="6">
537
- <source xml:space="preserve">Для предпринимателей</source>
2116
+ <source xml:space="preserve">Simple case leaf</source>
538
2117
  </trans-unit>
539
2118
  <trans-unit id="7">
540
- <source xml:space="preserve">Единая перфоманс-кампания</source>
2119
+ <source xml:space="preserve">Install using command.</source>
541
2120
  </trans-unit>
542
2121
  <trans-unit id="8">
543
- <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
2122
+ <source xml:space="preserve">Next sentence.</source>
544
2123
  </trans-unit>
545
2124
  <trans-unit id="9">
546
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
2125
+ <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
547
2126
  </trans-unit>
548
2127
  <trans-unit id="10">
549
- <source xml:space="preserve">Подробнее</source>
2128
+ <source xml:space="preserve">Simple case inline</source>
550
2129
  </trans-unit>
551
2130
  <trans-unit id="11">
552
- <source xml:space="preserve">Товарная кампания</source>
2131
+ <source xml:space="preserve">Install using <x ctype="no_translate_inline" equiv-text=":no-translate[npm install @company/package]" id="x-2"/> command.</source>
553
2132
  </trans-unit>
554
2133
  <trans-unit id="12">
555
- <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
2134
+ <source xml:space="preserve">The default port is <x ctype="no_translate_inline" equiv-text=":no-translate[8080]" id="x-3"/> unless specified.</source>
556
2135
  </trans-unit>
557
2136
  <trans-unit id="13">
558
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
2137
+ <source xml:space="preserve">Set <x ctype="no_translate_inline" equiv-text=":no-translate[NODE_ENV=production]" id="x-4"/> for production builds.</source>
559
2138
  </trans-unit>
560
2139
  <trans-unit id="14">
561
- <source xml:space="preserve">Подробнее</source>
2140
+ <source xml:space="preserve">Few inline directives</source>
562
2141
  </trans-unit>
563
2142
  <trans-unit id="15">
564
- <source xml:space="preserve">Реклама в Telegram</source>
2143
+ <source xml:space="preserve">Use <x ctype="no_translate_inline" equiv-text=":no-translate[**GET /api/v1/users**]" id="x-5"/> to list users and <x ctype="no_translate_inline" equiv-text=":no-translate[POST /api/v1/users]" id="x-6"/> to create.</source>
565
2144
  </trans-unit>
566
2145
  <trans-unit id="16">
567
- <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
2146
+ <source xml:space="preserve">Empty inline directive</source>
568
2147
  </trans-unit>
569
2148
  <trans-unit id="17">
570
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
571
- </trans-unit>
572
- <trans-unit id="18">
573
- <source xml:space="preserve">Подробнее</source>
574
- </trans-unit>
575
- <trans-unit id="19">
576
- <source xml:space="preserve">Часто ищут</source>
577
- </trans-unit>
578
- <trans-unit id="20">
579
- <source xml:space="preserve">Статистика</source>
580
- </trans-unit>
581
- <trans-unit id="21">
582
- <source xml:space="preserve">Управление фидами</source>
583
- </trans-unit>
584
- <trans-unit id="22">
585
- <source xml:space="preserve">Сервисные функции</source>
586
- </trans-unit>
587
- <trans-unit id="23">
588
- <source xml:space="preserve">Правила и модерация</source>
589
- </trans-unit>
590
- <trans-unit id="24">
591
- <source xml:space="preserve">Технологии и сервисы</source>
592
- </trans-unit>
593
- <trans-unit id="25">
594
- <source xml:space="preserve">Поддержка 24/7</source>
595
- </trans-unit>
596
- <trans-unit id="26">
597
- <source xml:space="preserve">Полезные ссылки</source>
598
- </trans-unit>
599
- <trans-unit id="27">
600
- <source xml:space="preserve">Глоссарий</source>
601
- </trans-unit>
602
- <trans-unit id="28">
603
- <source xml:space="preserve">Простой старт</source>
604
- </trans-unit>
605
- <trans-unit id="29">
606
- <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
607
- </trans-unit>
608
- <trans-unit id="30">
609
- <source xml:space="preserve">Подробнее&lt;/&gt;</source>
610
- </trans-unit>
611
- <trans-unit id="31">
612
- <source xml:space="preserve">Подробнее</source>
2149
+ <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-7"/> directive.</source>
613
2150
  </trans-unit>
614
2151
  </body>
615
2152
  </file>
616
2153
  </xliff>"
617
2154
  `;
618
2155
 
619
- exports[`Translate command > extract yaml scheme files 3`] = `
620
- "blocks:
621
- - type: content-layout-block
622
- textWidth: l
623
- textContent:
624
- title: '%%%0%%%'
625
- text: |2-
626
- %%%1%%%
627
- - %%%2%%%
628
- - %%%3%%%
629
-
630
- - type: card-layout-block
631
- colSizes:
632
- all: 12
633
- lg: 4
634
- md: 6
635
- sm: 12
636
- xl: 4
637
- indent:
638
- bottom: xs
639
- title: '%%%4%%%'
640
- animated: false
641
- children:
642
- - type: basic-card
643
- title: '%%%5%%%'
644
- text: '%%%6%%%'
645
- urlTitle: '%%%7%%%'
646
- border: shadow
647
- controlPosition: content
648
- url: management/index
649
- target: ''
650
- animated: false
2156
+ exports[`Translate command > skip no-translate marked content 5`] = `
2157
+ "openapi: 3.0.1
2158
+ info:
2159
+ title: '%%%0%%%'
2160
+ version: v0
2161
+ servers:
2162
+ - url: http://localhost:8080
2163
+ description: '%%%1%%%'
2164
+ paths:
2165
+ /test:
2166
+ get:
2167
+ tags:
2168
+ - test-controller
2169
+ summary: '%%%2%%%'
2170
+ description: '%%%3%%%'
2171
+ operationId: getWithPayloadResponse
2172
+ responses:
2173
+ '200':
2174
+ description: '%%%4%%%'
2175
+ content:
2176
+ application/json:
2177
+ schema:
2178
+ $ref: '#/components/schemas/RecurceTop'
2179
+ components:
2180
+ schemas:
2181
+ RecurceTop:
2182
+ type: object
2183
+ properties:
2184
+ A:
2185
+ type: string
2186
+ RecurceMiddle:
2187
+ type: object
2188
+ properties:
2189
+ B:
2190
+ type: array
2191
+ items:
2192
+ $ref: '#/components/schemas/RecurceTop'
651
2193
  "
652
2194
  `;
653
2195
 
654
- exports[`Translate command > extract yaml scheme files 4`] = `
2196
+ exports[`Translate command > skip no-translate marked content 6`] = `
655
2197
  "<?xml version="1.0" encoding="UTF-8"?>
656
2198
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
657
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
2199
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
658
2200
  <header>
659
2201
  <skeleton>
660
2202
  <external-file href="file.skl"></external-file>
@@ -662,61 +2204,44 @@ exports[`Translate command > extract yaml scheme files 4`] = `
662
2204
  </header>
663
2205
  <body>
664
2206
  <trans-unit id="0">
665
- <source xml:space="preserve">Введение</source>
2207
+ <source xml:space="preserve">OpenAPI definition</source>
666
2208
  </trans-unit>
667
2209
  <trans-unit id="1">
668
- <source xml:space="preserve">API сервиса: - Управлять счетчиками, их настройками и правами доступа, не используя веб-интерфейс.</source>
2210
+ <source xml:space="preserve">Generated server url</source>
669
2211
  </trans-unit>
670
2212
  <trans-unit id="2">
671
- <source xml:space="preserve">Получать информацию о посещаемости сайта и другие данные.</source>
2213
+ <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
672
2214
  </trans-unit>
673
2215
  <trans-unit id="3">
674
- <source xml:space="preserve">Формировать отчеты, в том числе с помощью сегментации и параметризации.</source>
2216
+ <source xml:space="preserve">Defines a simple get <x ctype="no_translate_inline" equiv-text=":no-translate[skip this]" id="x-1"/> operation with no inputs and a complex</source>
675
2217
  </trans-unit>
676
2218
  <trans-unit id="4">
677
- <source xml:space="preserve">Виды API</source>
678
- </trans-unit>
679
- <trans-unit id="5">
680
- <source xml:space="preserve">API управления</source>
681
- </trans-unit>
682
- <trans-unit id="6">
683
- <source xml:space="preserve">Управление счетчиками, целями, фильтрами и другими объектами Сервиса (например, создать счетчик, отредактировать его настройки, создать цель, выдать права доступа).</source>
684
- </trans-unit>
685
- <trans-unit id="7">
686
- <source xml:space="preserve">API управления</source>
2219
+ <source xml:space="preserve">200!!!!</source>
687
2220
  </trans-unit>
688
2221
  </body>
689
2222
  </file>
690
2223
  </xliff>"
691
2224
  `;
692
2225
 
693
- exports[`Translate command > extract yaml scheme files 5`] = `
2226
+ exports[`Translate command > skip no-translate marked content 7`] = `
694
2227
  "title: '%%%0%%%'
695
- href: index.yaml
2228
+ href: index.md
696
2229
  items:
697
- - name: '%%%4%%%'
698
- - href: index-direct.yaml
699
- navigation:
700
- header:
701
- leftItems:
702
- - text: '%%%2%%%'
703
- type: dropdown
704
- items:
705
- - text: '%%%3%%%'
706
- type: link
707
- href: menu/item
708
- logo:
709
- light:
710
- icon: https://icon.link/logo.svg
711
- url: https://site.ru
712
- urlTitle: '%%%1%%%'
2230
+ - name: '%%%1%%%'
2231
+ href: no-translate.md
2232
+ - name: '%%%2%%%'
2233
+ include:
2234
+ path: openapi
2235
+ includers:
2236
+ - name: openapi
2237
+ input: openapi-spec.yaml
713
2238
  "
714
2239
  `;
715
2240
 
716
- exports[`Translate command > extract yaml scheme files 6`] = `
2241
+ exports[`Translate command > skip no-translate marked content 8`] = `
717
2242
  "<?xml version="1.0" encoding="UTF-8"?>
718
2243
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
719
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
2244
+ <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
720
2245
  <header>
721
2246
  <skeleton>
722
2247
  <external-file href="file.skl"></external-file>
@@ -724,69 +2249,15 @@ exports[`Translate command > extract yaml scheme files 6`] = `
724
2249
  </header>
725
2250
  <body>
726
2251
  <trans-unit id="0">
727
- <source xml:space="preserve">Заголовок</source>
2252
+ <source xml:space="preserve">Test123</source>
728
2253
  </trans-unit>
729
2254
  <trans-unit id="1">
730
- <source xml:space="preserve">На сайт сервиса</source>
2255
+ <source xml:space="preserve">Не переводить</source>
731
2256
  </trans-unit>
732
2257
  <trans-unit id="2">
733
- <source xml:space="preserve">Инструменты</source>
734
- </trans-unit>
735
- <trans-unit id="3">
736
- <source xml:space="preserve">Пункт меню</source>
737
- </trans-unit>
738
- <trans-unit id="4">
739
- <source xml:space="preserve">Дочерняя страница</source>
2258
+ <source xml:space="preserve">openapi</source>
740
2259
  </trans-unit>
741
2260
  </body>
742
2261
  </file>
743
2262
  </xliff>"
744
2263
  `;
745
-
746
- exports[`Translate command > filter files on extract > filelist 1`] = `
747
- "[
748
- "es/_includes/test.md.skl",
749
- "es/_includes/test.md.xliff",
750
- "es/_no-translate/exclude.md.skl",
751
- "es/_no-translate/exclude.md.xliff",
752
- "es/aboba.md.skl",
753
- "es/aboba.md.xliff",
754
- "es/index.md.skl",
755
- "es/index.md.xliff",
756
- "es/nested/index-yfm.md.skl",
757
- "es/nested/index-yfm.md.xliff",
758
- "es/nested/index.yaml.skl",
759
- "es/nested/index.yaml.xliff",
760
- "es/nested/syntax/base.md.skl",
761
- "es/nested/syntax/base.md.xliff",
762
- "es/nested/syntax/lists.md.skl",
763
- "es/nested/syntax/lists.md.xliff",
764
- "es/nested/toc.yaml.skl",
765
- "es/nested/toc.yaml.xliff",
766
- "es/toc.yaml.skl",
767
- "es/toc.yaml.xliff"
768
- ]"
769
- `;
770
-
771
- exports[`Translate command > filter files on extract with extra exclude option > filelist 1`] = `
772
- "[
773
- "es/_includes/test.md.skl",
774
- "es/_includes/test.md.xliff",
775
- "es/aboba.md.skl",
776
- "es/aboba.md.xliff",
777
- "es/index.md.skl",
778
- "es/index.md.xliff",
779
- "es/nested/index-yfm.md.skl",
780
- "es/nested/index-yfm.md.xliff",
781
- "es/nested/index.yaml.skl",
782
- "es/nested/index.yaml.xliff",
783
- "es/nested/syntax/base.md.skl",
784
- "es/nested/syntax/base.md.xliff",
785
- "es/nested/syntax/lists.md.skl",
786
- "es/nested/syntax/lists.md.xliff",
787
- "es/nested/toc.yaml.skl",
788
- "es/nested/toc.yaml.xliff",
789
- "es/toc.yaml.skl",
790
- "es/toc.yaml.xliff"
791
- ]"
792
- `;