@diplodoc/cli-tests 0.0.0-rc-fix-translate-openapi-includer-202507171205 → 0.0.0-rc-resolve-codeblock-202509151421

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 (123) hide show
  1. package/e2e/__snapshots__/bundles.spec.ts.snap +168 -0
  2. package/e2e/__snapshots__/generate-map.spec.ts.snap +345 -0
  3. package/e2e/__snapshots__/include-toc.test.ts.snap +42 -0
  4. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +31 -117
  5. package/e2e/__snapshots__/metadata.spec.ts.snap +18 -51
  6. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  7. package/e2e/__snapshots__/preprocess.test.ts.snap +581 -0
  8. package/e2e/__snapshots__/regression.test.ts.snap +151 -268
  9. package/e2e/__snapshots__/restricted-access.test.ts.snap +20 -0
  10. package/e2e/__snapshots__/rtl.spec.ts.snap +6 -102
  11. package/e2e/__snapshots__/search.test.ts.snap +21 -36
  12. package/e2e/__snapshots__/single-page.spec.ts.snap +157 -0
  13. package/e2e/__snapshots__/skip-html-extension.spec.ts.snap +152 -0
  14. package/e2e/__snapshots__/translation.spec.ts.snap +469 -1186
  15. package/e2e/bundles.spec.ts +15 -0
  16. package/e2e/errors.spec.ts +33 -2
  17. package/e2e/generate-map.spec.ts +9 -3
  18. package/e2e/preprocess.test.ts +33 -0
  19. package/e2e/redirects-validation.spec.ts +61 -0
  20. package/e2e/search.test.ts +1 -1
  21. package/e2e/single-page.spec.ts +22 -0
  22. package/e2e/skip-html-extension.spec.ts +15 -0
  23. package/e2e/translation.spec.ts +21 -2
  24. package/fixtures/cliAdapter.ts +23 -0
  25. package/fixtures/globals.d.ts +4 -0
  26. package/fixtures/runners/binary.ts +4 -3
  27. package/fixtures/runners/types.ts +1 -2
  28. package/fixtures/utils/file.ts +53 -10
  29. package/fixtures/utils/test.ts +17 -8
  30. package/mocks/bundles/input/.yfm +13 -0
  31. package/mocks/bundles/input/index.md +12 -0
  32. package/mocks/bundles/input/page1.md +3 -0
  33. package/mocks/bundles/input/page2.md +5 -0
  34. package/mocks/bundles/input/toc.yaml +9 -0
  35. package/mocks/docs-viewer-interface/input/.yfm +6 -0
  36. package/mocks/docs-viewer-interface/input/index.md +3 -0
  37. package/mocks/docs-viewer-interface/input/toc.yaml +5 -0
  38. package/mocks/errors/extract-filtered-link/input/filtered.md +1 -0
  39. package/mocks/errors/extract-filtered-link/input/filtered2.md +0 -0
  40. package/mocks/errors/extract-filtered-link/input/index.md +7 -0
  41. package/mocks/errors/extract-filtered-link/input/toc.yaml +1 -0
  42. package/mocks/load-custom-resources/md2html-with-resources/input/page.md +9 -2
  43. package/mocks/load-custom-resources/md2md-with-resources/input/page.md +9 -2
  44. package/mocks/load-custom-resources/single-page-with-resources/input/page.md +9 -2
  45. package/mocks/metadata/md2html-with-metadata/input/page.md +8 -1
  46. package/mocks/metadata/md2md-with-metadata/input/page.md +7 -0
  47. package/mocks/preprocess/input/.yfm +1 -0
  48. package/mocks/preprocess/input/1.md +29 -0
  49. package/mocks/preprocess/input/_assets/1.png +0 -0
  50. package/mocks/preprocess/input/_assets/1.svg +0 -0
  51. package/mocks/preprocess/input/autotitle.md +23 -0
  52. package/mocks/preprocess/input/commented-include.md +3 -0
  53. package/mocks/preprocess/input/images.md +5 -0
  54. package/mocks/preprocess/input/included-item.md +12 -0
  55. package/mocks/preprocess/input/includes/deep.md +1 -0
  56. package/mocks/preprocess/input/includes/deepWithIndent.md +6 -0
  57. package/mocks/preprocess/input/includes/presets.yaml +2 -0
  58. package/mocks/preprocess/input/includes/sub/user.md +1 -0
  59. package/mocks/preprocess/input/includes/sub/userWithIndent.md +5 -0
  60. package/mocks/preprocess/input/includes/test.md +1 -0
  61. package/mocks/preprocess/input/includes/user.md +1 -0
  62. package/mocks/preprocess/input/includes.md +18 -0
  63. package/mocks/preprocess/input/latex.md +3 -0
  64. package/mocks/preprocess/input/mermaid.md +13 -0
  65. package/mocks/preprocess/input/presets.yaml +8 -0
  66. package/mocks/preprocess/input/sub/folder/item-1.md +7 -0
  67. package/mocks/preprocess/input/sub/toc.yaml +5 -0
  68. package/mocks/preprocess/input/toc-i.yaml +3 -0
  69. package/mocks/preprocess/input/toc.yaml +16 -0
  70. package/mocks/redirects-validation/extensions-deprecation/input/blah.md +0 -0
  71. package/mocks/redirects-validation/extensions-deprecation/input/redirects.yaml +5 -0
  72. package/mocks/redirects-validation/extensions-deprecation/input/toc.yaml +4 -0
  73. package/mocks/redirects-validation/invalid-regex/input/blah.md +0 -0
  74. package/mocks/redirects-validation/invalid-regex/input/redirects.yaml +3 -0
  75. package/mocks/redirects-validation/invalid-regex/input/toc.yaml +4 -0
  76. package/mocks/redirects-validation/malformed-redirect/input/blah.md +0 -0
  77. package/mocks/redirects-validation/malformed-redirect/input/redirects.yaml +6 -0
  78. package/mocks/redirects-validation/malformed-redirect/input/toc.yaml +4 -0
  79. package/mocks/redirects-validation/same-path/input/blah.md +0 -0
  80. package/mocks/redirects-validation/same-path/input/redirects.yaml +3 -0
  81. package/mocks/redirects-validation/same-path/input/toc.yaml +4 -0
  82. package/mocks/redirects-validation/unparseable/input/blah.md +0 -0
  83. package/mocks/redirects-validation/unparseable/input/redirects.yaml +11 -0
  84. package/mocks/redirects-validation/unparseable/input/toc.yaml +4 -0
  85. package/mocks/regression/input/.yfm +2 -0
  86. package/mocks/regression/input/autotitle.md +3 -0
  87. package/mocks/regression/input/images.md +2 -0
  88. package/mocks/regression/input/includes/deep.md +2 -0
  89. package/mocks/regression/input/includes/presets.yaml +1 -0
  90. package/mocks/regression/input/includes/tools.md +1 -0
  91. package/mocks/regression/input/includes.md +5 -0
  92. package/mocks/regression/input/merge/merge.md +2 -0
  93. package/mocks/regression/input/merge/presets.yaml +1 -0
  94. package/mocks/regression/input/merge/toc.yaml +2 -0
  95. package/mocks/regression/input/presets.yaml +1 -0
  96. package/mocks/regression/input/toc.yaml +2 -0
  97. package/mocks/search/input/.yfm +12 -0
  98. package/mocks/single-page/input/ru/index.yaml +9 -0
  99. package/mocks/single-page/input/ru/page.md +14 -0
  100. package/mocks/single-page/input/ru/project/config.md +1 -0
  101. package/mocks/single-page/input/ru/toc.yaml +7 -0
  102. package/mocks/skip-html-extension/input/.yfm +1 -0
  103. package/mocks/skip-html-extension/input/folder/index.md +1 -0
  104. package/mocks/skip-html-extension/input/index-test-html/index.md +4 -0
  105. package/mocks/skip-html-extension/input/index.md +6 -0
  106. package/mocks/skip-html-extension/input/page1.md +3 -0
  107. package/mocks/skip-html-extension/input/page2.md +6 -0
  108. package/mocks/skip-html-extension/input/toc.yaml +13 -0
  109. package/mocks/translation/dir-files/input/.yfm +6 -0
  110. package/mocks/translation/dir-files/input/ru/aboba.md +2 -4
  111. package/mocks/translation/dir-files/input/ru/nested/a1.md +3 -0
  112. package/mocks/translation/dir-files/input/ru/nested/folder1/a1.md +3 -0
  113. package/mocks/translation/dir-files/input/ru/nested/folder1/toc-i.yaml +3 -0
  114. package/mocks/translation/dir-files/input/ru/nested/syntax/base.md +2 -0
  115. package/mocks/translation/dir-files/input/ru/nested/toc.yaml +1 -0
  116. package/mocks/translation/dir-files/input/ru/no-var-page.md +3 -0
  117. package/mocks/translation/dir-files/input/ru/to-be-excluded.md +1 -0
  118. package/mocks/translation/dir-files/input/ru/toc.yaml +7 -1
  119. package/mocks/translation/openapi/input/toc.yaml +1 -1
  120. package/mocks/warning/unreachable-autotitle/input/index.md +1 -0
  121. package/mocks/warning/unreachable-autotitle/input/link.md +0 -0
  122. package/mocks/warning/unreachable-autotitle/input/toc.yaml +4 -0
  123. package/package.json +5 -5
@@ -16,6 +16,8 @@ exports[`Translate command > build translated md files and remove no-translate d
16
16
  metadata:
17
17
  - name: generator
18
18
  content: Diplodoc Platform vDIPLODOC-VERSION
19
+ vcsPath: index.md
20
+ sourcePath: index.md
19
21
  ---
20
22
  ## Index header
21
23
 
@@ -31,6 +33,8 @@ exports[`Translate command > build translated md files and remove no-translate d
31
33
  metadata:
32
34
  - name: generator
33
35
  content: Diplodoc Platform vDIPLODOC-VERSION
36
+ vcsPath: no-translate.md
37
+ sourcePath: no-translate.md
34
38
  ---
35
39
  # No-translate directive
36
40
 
@@ -93,6 +97,8 @@ exports[`Translate command > build translated md files and remove no-translate d
93
97
  metadata:
94
98
  - name: generator
95
99
  content: Diplodoc Platform vDIPLODOC-VERSION
100
+ vcsPath: openapi/index.md
101
+ sourcePath: openapi/index.md
96
102
  ---
97
103
  # OpenAPI definition
98
104
 
@@ -192,6 +198,8 @@ exports[`Translate command > build translated md files and remove no-translate d
192
198
  metadata:
193
199
  - name: generator
194
200
  content: Diplodoc Platform vDIPLODOC-VERSION
201
+ vcsPath: openapi/test-controller/getWithPayloadResponse.md
202
+ sourcePath: openapi/test-controller/getWithPayloadResponse.md
195
203
  ---
196
204
  <div class="openapi">
197
205
 
@@ -276,6 +284,8 @@ exports[`Translate command > build translated md files and remove no-translate d
276
284
  metadata:
277
285
  - name: generator
278
286
  content: Diplodoc Platform vDIPLODOC-VERSION
287
+ vcsPath: openapi/test-controller/index.md
288
+ sourcePath: openapi/test-controller/index.md
279
289
  ---
280
290
  # test-controller
281
291
 
@@ -322,6 +332,8 @@ exports[`Translate command > build translated static files and remove no-transla
322
332
  metadata:
323
333
  - name: generator
324
334
  content: Diplodoc Platform vDIPLODOC-VERSION
335
+ vcsPath: index.md
336
+ sourcePath: index.md
325
337
  ---
326
338
  ## Index header
327
339
 
@@ -337,6 +349,8 @@ exports[`Translate command > build translated static files and remove no-transla
337
349
  metadata:
338
350
  - name: generator
339
351
  content: Diplodoc Platform vDIPLODOC-VERSION
352
+ vcsPath: no-translate.md
353
+ sourcePath: no-translate.md
340
354
  ---
341
355
  # No-translate directive
342
356
 
@@ -399,6 +413,8 @@ exports[`Translate command > build translated static files and remove no-transla
399
413
  metadata:
400
414
  - name: generator
401
415
  content: Diplodoc Platform vDIPLODOC-VERSION
416
+ vcsPath: openapi/index.md
417
+ sourcePath: openapi/index.md
402
418
  ---
403
419
  # OpenAPI definition
404
420
 
@@ -498,6 +514,8 @@ exports[`Translate command > build translated static files and remove no-transla
498
514
  metadata:
499
515
  - name: generator
500
516
  content: Diplodoc Platform vDIPLODOC-VERSION
517
+ vcsPath: openapi/test-controller/getWithPayloadResponse.md
518
+ sourcePath: openapi/test-controller/getWithPayloadResponse.md
501
519
  ---
502
520
  <div class="openapi">
503
521
 
@@ -582,6 +600,8 @@ exports[`Translate command > build translated static files and remove no-transla
582
600
  metadata:
583
601
  - name: generator
584
602
  content: Diplodoc Platform vDIPLODOC-VERSION
603
+ vcsPath: openapi/test-controller/index.md
604
+ sourcePath: openapi/test-controller/index.md
585
605
  ---
586
606
  # test-controller
587
607
 
@@ -612,6 +632,47 @@ path: toc.yaml
612
632
  "
613
633
  `;
614
634
 
635
+ exports[`Translate command > do not filter files on extract > filelist 1`] = `
636
+ "[
637
+ "es/_includes/test.md.skl",
638
+ "es/_includes/test.md.xliff",
639
+ "es/_no-translate/exclude.md.skl",
640
+ "es/_no-translate/exclude.md.xliff",
641
+ "es/aboba.md.skl",
642
+ "es/aboba.md.xliff",
643
+ "es/index.md.skl",
644
+ "es/index.md.xliff",
645
+ "es/nested/a1.md.skl",
646
+ "es/nested/a1.md.xliff",
647
+ "es/nested/folder1/a1.md.skl",
648
+ "es/nested/folder1/a1.md.xliff",
649
+ "es/nested/folder1/toc-i.yaml.skl",
650
+ "es/nested/folder1/toc-i.yaml.xliff",
651
+ "es/nested/index-yfm.md.skl",
652
+ "es/nested/index-yfm.md.xliff",
653
+ "es/nested/index.yaml.skl",
654
+ "es/nested/index.yaml.xliff",
655
+ "es/nested/not-in-toc.md.skl",
656
+ "es/nested/not-in-toc.md.xliff",
657
+ "es/nested/syntax/base.md.skl",
658
+ "es/nested/syntax/base.md.xliff",
659
+ "es/nested/syntax/index.md.skl",
660
+ "es/nested/syntax/index.md.xliff",
661
+ "es/nested/syntax/lists.md.skl",
662
+ "es/nested/syntax/lists.md.xliff",
663
+ "es/nested/toc.yaml.skl",
664
+ "es/nested/toc.yaml.xliff",
665
+ "es/no-var-page.md.skl",
666
+ "es/no-var-page.md.xliff",
667
+ "es/not-in-toc.md.skl",
668
+ "es/not-in-toc.md.xliff",
669
+ "es/to-be-excluded.md.skl",
670
+ "es/to-be-excluded.md.xliff",
671
+ "es/toc.yaml.skl",
672
+ "es/toc.yaml.xliff"
673
+ ]"
674
+ `;
675
+
615
676
  exports[`Translate command > extract openapi spec files > filelist 1`] = `
616
677
  "[
617
678
  "openapi-spec.yaml.skl",
@@ -716,6 +777,7 @@ exports[`Translate command > extract openapi spec files 3`] = `
716
777
  includers:
717
778
  - name: openapi
718
779
  input: openapi-spec.yaml
780
+ mode: link
719
781
  "
720
782
  `;
721
783
 
@@ -737,89 +799,149 @@ exports[`Translate command > extract openapi spec files 4`] = `
737
799
  </xliff>"
738
800
  `;
739
801
 
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
-
802
+ exports[`Translate command > extract yaml scheme files > filelist 1`] = `
803
+ "[
804
+ "en/index-direct.yaml.skl",
805
+ "en/index-direct.yaml.xliff",
806
+ "en/index.yaml.skl",
807
+ "en/index.yaml.xliff",
808
+ "en/toc.yaml.skl",
809
+ "en/toc.yaml.xliff"
810
+ ]"
811
+ `;
815
812
 
816
- [*Deprecated]: %%%14%%%"
813
+ exports[`Translate command > extract yaml scheme files 1`] = `
814
+ "meta:
815
+ title: '%%%0%%%'
816
+ description: '%%%1%%%'
817
+ fullScreen: true
818
+ blocks:
819
+ - type: header-block
820
+ title: <div class="u-breadcrumbs"></div>
821
+ breadcrumbs:
822
+ items:
823
+ - text: '%%%2%%%'
824
+ url: https://site.ru/support/
825
+ - text: '%%%3%%%'
826
+ url: https://site.ru/support/adv/
827
+ - type: filter-block
828
+ centered: false
829
+ title:
830
+ text: '%%%4%%%'
831
+ tags:
832
+ - id: one
833
+ label: '%%%5%%%'
834
+ - id: two
835
+ label: '%%%6%%%'
836
+ colSizes:
837
+ all: 12
838
+ xl: 4
839
+ sm: 6
840
+ md: 4
841
+ items:
842
+ - tags:
843
+ - one
844
+ card:
845
+ type: image-card
846
+ image: https://site.ru/img/orig
847
+ title: '%%%7%%%'
848
+ text: <div>%%%8%%%</div><div class="u-card__more">%%%9%%%
849
+ margins: m
850
+ border: shadow
851
+ url: unified-performance-campaign/about.md
852
+ urlTitle: '%%%10%%%'
853
+ - tags:
854
+ - one
855
+ card:
856
+ type: image-card
857
+ image: https://site.ru/img2/orig
858
+ title: '%%%11%%%'
859
+ text: <div>%%%12%%%</div><div class="u-card__more">%%%13%%%
860
+ margins: m
861
+ border: shadow
862
+ url: campaign-master/product-campaign.md
863
+ urlTitle: '%%%14%%%'
864
+ - tags:
865
+ - one
866
+ card:
867
+ type: image-card
868
+ image: https://site.ru/img2/orig
869
+ title: '%%%15%%%'
870
+ text: <div>%%%16%%%</div><div class="u-card__more">%%%17%%%
871
+ margins: m
872
+ border: shadow
873
+ url: efficiency/telegram-ads.md
874
+ urlTitle: '%%%18%%%'
875
+ - tags:
876
+ - one
877
+ card:
878
+ type: background-card
879
+ title: '%%%19%%%'
880
+ text: ''
881
+ backgroundColor: '#F3F6FC'
882
+ border: line
883
+ links:
884
+ - text: '%%%20%%%'
885
+ url: statistics.md
886
+ arrow: true
887
+ theme: normal
888
+ - text: '%%%21%%%'
889
+ url: feeds/about.md
890
+ arrow: true
891
+ theme: normal
892
+ - tags:
893
+ - one
894
+ card:
895
+ type: background-card
896
+ title: '%%%22%%%'
897
+ text: ''
898
+ backgroundColor: '#F3F6FC'
899
+ border: line
900
+ links:
901
+ - text: '%%%23%%%'
902
+ url: moderation/adv-rules.md
903
+ arrow: true
904
+ theme: normal
905
+ - text: '%%%24%%%'
906
+ url: technologies-and-services/technologies-and-services.md
907
+ arrow: true
908
+ theme: normal
909
+ - text: '%%%25%%%'
910
+ url: troubleshooting/other.md
911
+ arrow: true
912
+ theme: normal
913
+ - tags:
914
+ - one
915
+ card:
916
+ type: background-card
917
+ title: '%%%26%%%'
918
+ text: ''
919
+ backgroundColor: '#F3F6FC'
920
+ border: line
921
+ links:
922
+ - text: '%%%27%%%'
923
+ url: glossary.md
924
+ arrow: true
925
+ theme: normal
926
+ - tags:
927
+ - two
928
+ card:
929
+ type: image-card
930
+ image: https://site.ru/img4/orig
931
+ title: '%%%28%%%'
932
+ text: <div>%%%29%%%</div><div class="u-card__more">%%%30%%%
933
+ margins: m
934
+ border: shadow
935
+ url: products-automatic/about.md
936
+ urlTitle: '%%%31%%%'
937
+ animated: false
938
+ "
817
939
  `;
818
940
 
819
- exports[`Translate command > extract openapi spec files 6`] = `
941
+ exports[`Translate command > extract yaml scheme files 2`] = `
820
942
  "<?xml version="1.0" encoding="UTF-8"?>
821
943
  <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">
944
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
823
945
  <header>
824
946
  <skeleton>
825
947
  <external-file href="file.skl"></external-file>
@@ -827,1110 +949,145 @@ exports[`Translate command > extract openapi spec files 6`] = `
827
949
  </header>
828
950
  <body>
829
951
  <trans-unit id="0">
830
- <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
952
+ <source xml:space="preserve">Справка Сервиса</source>
831
953
  </trans-unit>
832
954
  <trans-unit id="1">
833
- <source xml:space="preserve">Defines a simple get operation with no inputs and a complex</source>
955
+ <source xml:space="preserve" Справке Сервиса собрали всю необходимую информацию.</source>
834
956
  </trans-unit>
835
957
  <trans-unit id="2">
836
- <source xml:space="preserve">Request</source>
958
+ <source xml:space="preserve">Справка</source>
837
959
  </trans-unit>
838
960
  <trans-unit id="3">
839
- <source xml:space="preserve">GET</source>
961
+ <source xml:space="preserve">Реклама</source>
840
962
  </trans-unit>
841
963
  <trans-unit id="4">
842
- <source xml:space="preserve">Generated server url</source>
964
+ <source xml:space="preserve">Сервис</source>
843
965
  </trans-unit>
844
966
  <trans-unit id="5">
845
- <source xml:space="preserve">Responses</source>
967
+ <source xml:space="preserve">Для специалистов</source>
846
968
  </trans-unit>
847
969
  <trans-unit id="6">
848
- <source xml:space="preserve">200 OK</source>
970
+ <source xml:space="preserve">Для предпринимателей</source>
849
971
  </trans-unit>
850
972
  <trans-unit id="7">
851
- <source xml:space="preserve">200!!!!</source>
973
+ <source xml:space="preserve">Единая перфоманс-кампания</source>
852
974
  </trans-unit>
853
975
  <trans-unit id="8">
854
- <source xml:space="preserve">Body</source>
976
+ <source xml:space="preserve">Комплексно решайте любые перфоманс-задачи в рамках одной кампании</source>
855
977
  </trans-unit>
856
978
  <trans-unit id="9">
857
- <source xml:space="preserve">application/json</source>
979
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
858
980
  </trans-unit>
859
981
  <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>
982
+ <source xml:space="preserve">Подробнее</source>
861
983
  </trans-unit>
862
984
  <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>
985
+ <source xml:space="preserve">Товарная кампания</source>
864
986
  </trans-unit>
865
987
  <trans-unit id="12">
866
- <source xml:space="preserve">A</source>
988
+ <source xml:space="preserve">Используйте простой инструмент для продвижения товаров интернете</source>
867
989
  </trans-unit>
868
990
  <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>
991
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
870
992
  </trans-unit>
871
993
  <trans-unit id="14">
872
- <source xml:space="preserve">No longer supported, please use an alternative and newer version.</source>
994
+ <source xml:space="preserve">Подробнее</source>
873
995
  </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
-
942
- exports[`Translate command > extract yaml scheme files > en/index.yaml.skl 1`] = `
943
- "blocks:
944
- - type: content-layout-block
945
- textWidth: l
946
- textContent:
947
- title: '%%%0%%%'
948
- text: |2-
949
- %%%1%%%
950
- - %%%2%%%
951
- - %%%3%%%
952
-
953
- - type: card-layout-block
954
- colSizes:
955
- all: 12
956
- lg: 4
957
- md: 6
958
- sm: 12
959
- xl: 4
960
- indent:
961
- bottom: xs
962
- title: '%%%4%%%'
963
- animated: false
964
- children:
965
- - type: basic-card
966
- title: '%%%5%%%'
967
- text: '%%%6%%%'
968
- urlTitle: '%%%7%%%'
969
- border: shadow
970
- controlPosition: content
971
- url: management/index
972
- target: ''
973
- animated: false
974
- "
975
- `;
976
-
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`] = `
1594
- "<?xml version="1.0" encoding="UTF-8"?>
1595
- <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1596
- <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1597
- <header>
1598
- <skeleton>
1599
- <external-file href="file.skl"></external-file>
1600
- </skeleton>
1601
- </header>
1602
- <body>
1603
- <trans-unit id="0">
1604
- <source xml:space="preserve">Введение</source>
1605
- </trans-unit>
1606
- <trans-unit id="1">
1607
- <source xml:space="preserve">API сервиса: - Управлять счетчиками, их настройками и правами доступа, не используя веб-интерфейс.</source>
1608
- </trans-unit>
1609
- <trans-unit id="2">
1610
- <source xml:space="preserve">Получать информацию о посещаемости сайта и другие данные.</source>
1611
- </trans-unit>
1612
- <trans-unit id="3">
1613
- <source xml:space="preserve">Формировать отчеты, в том числе с помощью сегментации и параметризации.</source>
1614
- </trans-unit>
1615
- <trans-unit id="4">
1616
- <source xml:space="preserve">Виды API</source>
1617
- </trans-unit>
1618
- <trans-unit id="5">
1619
- <source xml:space="preserve">API управления</source>
1620
- </trans-unit>
1621
- <trans-unit id="6">
1622
- <source xml:space="preserve">Управление счетчиками, целями, фильтрами и другими объектами Сервиса (например, создать счетчик, отредактировать его настройки, создать цель, выдать права доступа).</source>
1623
- </trans-unit>
1624
- <trans-unit id="7">
1625
- <source xml:space="preserve">API управления</source>
1626
- </trans-unit>
1627
- </body>
1628
- </file>
1629
- </xliff>"
1630
- `;
1631
-
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
-
1818
- "
1819
- `;
1820
-
1821
- exports[`Translate command > removes no-translate directive and leaves content as is 4`] = `
1822
- "<?xml version="1.0" encoding="UTF-8"?>
1823
- <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1824
- <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1825
- <header>
1826
- <skeleton>
1827
- <external-file href="file.skl"></external-file>
1828
- </skeleton>
1829
- </header>
1830
- <body>
1831
- <trans-unit id="0">
1832
- <source xml:space="preserve">No-translate directive</source>
1833
- </trans-unit>
1834
- <trans-unit id="1">
1835
- <source xml:space="preserve">Block directive</source>
996
+ <trans-unit id="15">
997
+ <source xml:space="preserve">Реклама в Telegram</source>
1836
998
  </trans-unit>
1837
- <trans-unit id="2">
1838
- <source xml:space="preserve">Leaf directive</source>
999
+ <trans-unit id="16">
1000
+ <source xml:space="preserve">Покажите релевантную рекламу в телеграм-каналах партнеров РСЯ</source>
1839
1001
  </trans-unit>
1840
- <trans-unit id="3">
1841
- <source xml:space="preserve">— get all users</source>
1002
+ <trans-unit id="17">
1003
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1842
1004
  </trans-unit>
1843
- <trans-unit id="4">
1844
- <source xml:space="preserve">— authorization</source>
1005
+ <trans-unit id="18">
1006
+ <source xml:space="preserve">Подробнее</source>
1845
1007
  </trans-unit>
1846
- <trans-unit id="5">
1847
- <source xml:space="preserve">— update users data</source>
1008
+ <trans-unit id="19">
1009
+ <source xml:space="preserve">Часто ищут</source>
1848
1010
  </trans-unit>
1849
- <trans-unit id="6">
1850
- <source xml:space="preserve">Simple case leaf</source>
1011
+ <trans-unit id="20">
1012
+ <source xml:space="preserve">Статистика</source>
1851
1013
  </trans-unit>
1852
- <trans-unit id="7">
1853
- <source xml:space="preserve">Install using command.</source>
1014
+ <trans-unit id="21">
1015
+ <source xml:space="preserve">Управление фидами</source>
1854
1016
  </trans-unit>
1855
- <trans-unit id="8">
1856
- <source xml:space="preserve">Next sentence.</source>
1017
+ <trans-unit id="22">
1018
+ <source xml:space="preserve">Сервисные функции</source>
1857
1019
  </trans-unit>
1858
- <trans-unit id="9">
1859
- <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
1020
+ <trans-unit id="23">
1021
+ <source xml:space="preserve">Правила и модерация</source>
1860
1022
  </trans-unit>
1861
- <trans-unit id="10">
1862
- <source xml:space="preserve">Simple case inline</source>
1023
+ <trans-unit id="24">
1024
+ <source xml:space="preserve">Технологии и сервисы</source>
1863
1025
  </trans-unit>
1864
- <trans-unit id="11">
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>
1026
+ <trans-unit id="25">
1027
+ <source xml:space="preserve">Поддержка 24/7</source>
1866
1028
  </trans-unit>
1867
- <trans-unit id="12">
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>
1029
+ <trans-unit id="26">
1030
+ <source xml:space="preserve">Полезные ссылки</source>
1869
1031
  </trans-unit>
1870
- <trans-unit id="13">
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>
1032
+ <trans-unit id="27">
1033
+ <source xml:space="preserve">Глоссарий</source>
1872
1034
  </trans-unit>
1873
- <trans-unit id="14">
1874
- <source xml:space="preserve">Few inline directives</source>
1035
+ <trans-unit id="28">
1036
+ <source xml:space="preserve">Простой старт</source>
1875
1037
  </trans-unit>
1876
- <trans-unit id="15">
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>
1038
+ <trans-unit id="29">
1039
+ <source xml:space="preserve">Минимум ручных настроек: достаточно указать ссылку на сайт</source>
1878
1040
  </trans-unit>
1879
- <trans-unit id="16">
1880
- <source xml:space="preserve">Empty inline directive</source>
1041
+ <trans-unit id="30">
1042
+ <source xml:space="preserve">Подробнее&lt;/&gt;</source>
1881
1043
  </trans-unit>
1882
- <trans-unit id="17">
1883
- <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-7"/> directive.</source>
1044
+ <trans-unit id="31">
1045
+ <source xml:space="preserve">Подробнее</source>
1884
1046
  </trans-unit>
1885
1047
  </body>
1886
1048
  </file>
1887
1049
  </xliff>"
1888
1050
  `;
1889
1051
 
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'
1052
+ exports[`Translate command > extract yaml scheme files 3`] = `
1053
+ "blocks:
1054
+ - type: content-layout-block
1055
+ textWidth: l
1056
+ textContent:
1057
+ title: '%%%0%%%'
1058
+ text: |2-
1059
+ %%%1%%%
1060
+ - %%%2%%%
1061
+ - %%%3%%%
1062
+
1063
+ - type: card-layout-block
1064
+ colSizes:
1065
+ all: 12
1066
+ lg: 4
1067
+ md: 6
1068
+ sm: 12
1069
+ xl: 4
1070
+ indent:
1071
+ bottom: xs
1072
+ title: '%%%4%%%'
1073
+ animated: false
1074
+ children:
1075
+ - type: basic-card
1076
+ title: '%%%5%%%'
1077
+ text: '%%%6%%%'
1078
+ urlTitle: '%%%7%%%'
1079
+ border: shadow
1080
+ controlPosition: content
1081
+ url: management/index
1082
+ target: ''
1083
+ animated: false
1927
1084
  "
1928
1085
  `;
1929
1086
 
1930
- exports[`Translate command > removes no-translate directive and leaves content as is 6`] = `
1087
+ exports[`Translate command > extract yaml scheme files 4`] = `
1931
1088
  "<?xml version="1.0" encoding="UTF-8"?>
1932
1089
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1933
- <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1090
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1934
1091
  <header>
1935
1092
  <skeleton>
1936
1093
  <external-file href="file.skl"></external-file>
@@ -1938,44 +1095,61 @@ exports[`Translate command > removes no-translate directive and leaves content a
1938
1095
  </header>
1939
1096
  <body>
1940
1097
  <trans-unit id="0">
1941
- <source xml:space="preserve">OpenAPI definition</source>
1098
+ <source xml:space="preserve">Введение</source>
1942
1099
  </trans-unit>
1943
1100
  <trans-unit id="1">
1944
- <source xml:space="preserve">Generated server url</source>
1101
+ <source xml:space="preserve">API сервиса: - Управлять счетчиками, их настройками и правами доступа, не используя веб-интерфейс.</source>
1945
1102
  </trans-unit>
1946
1103
  <trans-unit id="2">
1947
- <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
1104
+ <source xml:space="preserve">Получать информацию о посещаемости сайта и другие данные.</source>
1948
1105
  </trans-unit>
1949
1106
  <trans-unit id="3">
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>
1107
+ <source xml:space="preserve">Формировать отчеты, в том числе с помощью сегментации и параметризации.</source>
1951
1108
  </trans-unit>
1952
1109
  <trans-unit id="4">
1953
- <source xml:space="preserve">200!!!!</source>
1110
+ <source xml:space="preserve">Виды API</source>
1111
+ </trans-unit>
1112
+ <trans-unit id="5">
1113
+ <source xml:space="preserve">API управления</source>
1114
+ </trans-unit>
1115
+ <trans-unit id="6">
1116
+ <source xml:space="preserve">Управление счетчиками, целями, фильтрами и другими объектами Сервиса (например, создать счетчик, отредактировать его настройки, создать цель, выдать права доступа).</source>
1117
+ </trans-unit>
1118
+ <trans-unit id="7">
1119
+ <source xml:space="preserve">API управления</source>
1954
1120
  </trans-unit>
1955
1121
  </body>
1956
1122
  </file>
1957
1123
  </xliff>"
1958
1124
  `;
1959
1125
 
1960
- exports[`Translate command > removes no-translate directive and leaves content as is 7`] = `
1126
+ exports[`Translate command > extract yaml scheme files 5`] = `
1961
1127
  "title: '%%%0%%%'
1962
- href: index.md
1128
+ href: index.yaml
1963
1129
  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
1130
+ - name: '%%%4%%%'
1131
+ - href: index-direct.yaml
1132
+ navigation:
1133
+ header:
1134
+ leftItems:
1135
+ - text: '%%%2%%%'
1136
+ type: dropdown
1137
+ items:
1138
+ - text: '%%%3%%%'
1139
+ type: link
1140
+ href: menu/item
1141
+ logo:
1142
+ light:
1143
+ icon: https://icon.link/logo.svg
1144
+ url: https://site.ru
1145
+ urlTitle: '%%%1%%%'
1972
1146
  "
1973
1147
  `;
1974
1148
 
1975
- exports[`Translate command > removes no-translate directive and leaves content as is 8`] = `
1149
+ exports[`Translate command > extract yaml scheme files 6`] = `
1976
1150
  "<?xml version="1.0" encoding="UTF-8"?>
1977
1151
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
1978
- <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
1152
+ <file original="file.ext" source-language="ru-RU" target-language="en-US" datatype="markdown">
1979
1153
  <header>
1980
1154
  <skeleton>
1981
1155
  <external-file href="file.skl"></external-file>
@@ -1983,20 +1157,113 @@ exports[`Translate command > removes no-translate directive and leaves content a
1983
1157
  </header>
1984
1158
  <body>
1985
1159
  <trans-unit id="0">
1986
- <source xml:space="preserve">Test123</source>
1160
+ <source xml:space="preserve">Заголовок</source>
1987
1161
  </trans-unit>
1988
1162
  <trans-unit id="1">
1989
- <source xml:space="preserve">Не переводить</source>
1163
+ <source xml:space="preserve">На сайт сервиса</source>
1990
1164
  </trans-unit>
1991
1165
  <trans-unit id="2">
1992
- <source xml:space="preserve">openapi</source>
1166
+ <source xml:space="preserve">Инструменты</source>
1167
+ </trans-unit>
1168
+ <trans-unit id="3">
1169
+ <source xml:space="preserve">Пункт меню</source>
1170
+ </trans-unit>
1171
+ <trans-unit id="4">
1172
+ <source xml:space="preserve">Дочерняя страница</source>
1993
1173
  </trans-unit>
1994
1174
  </body>
1995
1175
  </file>
1996
1176
  </xliff>"
1997
1177
  `;
1998
1178
 
1999
- exports[`Translate command > skip no-translate marked content > filelist 1`] = `
1179
+ exports[`Translate command > filter files on extract > filelist 1`] = `
1180
+ "[
1181
+ "es/_includes/test.md.skl",
1182
+ "es/_includes/test.md.xliff",
1183
+ "es/aboba.md.skl",
1184
+ "es/aboba.md.xliff",
1185
+ "es/index.md.skl",
1186
+ "es/index.md.xliff",
1187
+ "es/nested/a1.md.skl",
1188
+ "es/nested/a1.md.xliff",
1189
+ "es/nested/index-yfm.md.skl",
1190
+ "es/nested/index-yfm.md.xliff",
1191
+ "es/nested/index.yaml.skl",
1192
+ "es/nested/index.yaml.xliff",
1193
+ "es/nested/syntax/base.md.skl",
1194
+ "es/nested/syntax/base.md.xliff",
1195
+ "es/nested/syntax/lists.md.skl",
1196
+ "es/nested/syntax/lists.md.xliff",
1197
+ "es/nested/toc.yaml.skl",
1198
+ "es/nested/toc.yaml.xliff",
1199
+ "es/no-var-page.md.skl",
1200
+ "es/no-var-page.md.xliff",
1201
+ "es/to-be-excluded.md.skl",
1202
+ "es/to-be-excluded.md.xliff",
1203
+ "es/toc.yaml.skl",
1204
+ "es/toc.yaml.xliff"
1205
+ ]"
1206
+ `;
1207
+
1208
+ exports[`Translate command > filter files on extract with extra exclude option > filelist 1`] = `
1209
+ "[
1210
+ "es/_includes/test.md.skl",
1211
+ "es/_includes/test.md.xliff",
1212
+ "es/aboba.md.skl",
1213
+ "es/aboba.md.xliff",
1214
+ "es/index.md.skl",
1215
+ "es/index.md.xliff",
1216
+ "es/nested/a1.md.skl",
1217
+ "es/nested/a1.md.xliff",
1218
+ "es/nested/index-yfm.md.skl",
1219
+ "es/nested/index-yfm.md.xliff",
1220
+ "es/nested/index.yaml.skl",
1221
+ "es/nested/index.yaml.xliff",
1222
+ "es/nested/syntax/base.md.skl",
1223
+ "es/nested/syntax/base.md.xliff",
1224
+ "es/nested/syntax/lists.md.skl",
1225
+ "es/nested/syntax/lists.md.xliff",
1226
+ "es/nested/toc.yaml.skl",
1227
+ "es/nested/toc.yaml.xliff",
1228
+ "es/no-var-page.md.skl",
1229
+ "es/no-var-page.md.xliff",
1230
+ "es/toc.yaml.skl",
1231
+ "es/toc.yaml.xliff"
1232
+ ]"
1233
+ `;
1234
+
1235
+ exports[`Translate command > filter files on extract with extra vars option > filelist 1`] = `
1236
+ "[
1237
+ "es/_includes/test.md.skl",
1238
+ "es/_includes/test.md.xliff",
1239
+ "es/_no-translate/exclude.md.skl",
1240
+ "es/_no-translate/exclude.md.xliff",
1241
+ "es/aboba.md.skl",
1242
+ "es/aboba.md.xliff",
1243
+ "es/index.md.skl",
1244
+ "es/index.md.xliff",
1245
+ "es/nested/a1.md.skl",
1246
+ "es/nested/a1.md.xliff",
1247
+ "es/nested/index-yfm.md.skl",
1248
+ "es/nested/index-yfm.md.xliff",
1249
+ "es/nested/index.yaml.skl",
1250
+ "es/nested/index.yaml.xliff",
1251
+ "es/nested/syntax/base.md.skl",
1252
+ "es/nested/syntax/base.md.xliff",
1253
+ "es/nested/syntax/lists.md.skl",
1254
+ "es/nested/syntax/lists.md.xliff",
1255
+ "es/nested/toc.yaml.skl",
1256
+ "es/nested/toc.yaml.xliff",
1257
+ "es/no-var-page.md.skl",
1258
+ "es/no-var-page.md.xliff",
1259
+ "es/to-be-excluded.md.skl",
1260
+ "es/to-be-excluded.md.xliff",
1261
+ "es/toc.yaml.skl",
1262
+ "es/toc.yaml.xliff"
1263
+ ]"
1264
+ `;
1265
+
1266
+ exports[`Translate command > test no-translate directive > filelist 1`] = `
2000
1267
  "[
2001
1268
  "index.md.skl",
2002
1269
  "index.md.xliff",
@@ -2009,7 +1276,7 @@ exports[`Translate command > skip no-translate marked content > filelist 1`] = `
2009
1276
  ]"
2010
1277
  `;
2011
1278
 
2012
- exports[`Translate command > skip no-translate marked content 1`] = `
1279
+ exports[`Translate command > test no-translate directive 1`] = `
2013
1280
  "## %%%0%%%
2014
1281
 
2015
1282
  ::no-translate [adsfasdfasdfasdfasdf]
@@ -2019,7 +1286,7 @@ exports[`Translate command > skip no-translate marked content 1`] = `
2019
1286
  %%%2%%%"
2020
1287
  `;
2021
1288
 
2022
- exports[`Translate command > skip no-translate marked content 2`] = `
1289
+ exports[`Translate command > test no-translate directive 2`] = `
2023
1290
  "<?xml version="1.0" encoding="UTF-8"?>
2024
1291
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2025
1292
  <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
@@ -2043,48 +1310,60 @@ exports[`Translate command > skip no-translate marked content 2`] = `
2043
1310
  </xliff>"
2044
1311
  `;
2045
1312
 
2046
- exports[`Translate command > skip no-translate marked content 3`] = `
1313
+ exports[`Translate command > test no-translate directive 3`] = `
2047
1314
  "# %%%0%%%
2048
1315
 
2049
1316
  ## %%%1%%%
2050
1317
  :::no-translate
2051
1318
  ### No-translate header
1319
+
1320
+ :::html-block
1321
+ testsetsets
1322
+ :::
1323
+
1324
+ ::: any-other-directive
1325
+ content test
1326
+ :::
1327
+
2052
1328
  Should not be translated.
2053
1329
  Can use **markup** inside.
2054
1330
  :::
2055
1331
 
2056
- ## %%%2%%%
1332
+
1333
+ %%%2%%%
1334
+
1335
+ ## %%%3%%%
2057
1336
 
2058
1337
  ::no-translate [## /usr/local/bin/application]
2059
1338
  ::no-translate[**C:/Program Files/Application/config.ini**]
2060
1339
  ::no-translate [~/Documents/project/src/main.rs]
2061
1340
 
2062
1341
 
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%%%
1342
+ - :no-translate[GET /api/v1/users] %%%4%%%
1343
+ - :no-translate[POST /api/v1/auth/login] %%%5%%%
1344
+ - :no-translate[PUT /api/v1/users/{id}] %%%6%%%
2066
1345
 
2067
- ## %%%6%%%
2068
- %%%7%%%
2069
- :no-translate[The default port is unless specified.] %%%8%%%
2070
- %%%9%%%
1346
+ ## %%%7%%%
1347
+ %%%8%%%
1348
+ :no-translate[The default port is unless specified.] %%%9%%%
1349
+ %%%10%%%
2071
1350
 
2072
- ## %%%10%%%
2073
- %%%11%%%
1351
+ ## %%%11%%%
2074
1352
  %%%12%%%
2075
1353
  %%%13%%%
1354
+ %%%14%%%
2076
1355
 
2077
- ## %%%14%%%
2078
- %%%15%%%
1356
+ ## %%%15%%%
1357
+ %%%16%%%
2079
1358
 
2080
- ## %%%16%%%
2081
- %%%17%%%
1359
+ ## %%%17%%%
1360
+ %%%18%%%
2082
1361
 
2083
1362
 
2084
1363
  "
2085
1364
  `;
2086
1365
 
2087
- exports[`Translate command > skip no-translate marked content 4`] = `
1366
+ exports[`Translate command > test no-translate directive 4`] = `
2088
1367
  "<?xml version="1.0" encoding="UTF-8"?>
2089
1368
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2090
1369
  <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
@@ -2101,59 +1380,62 @@ exports[`Translate command > skip no-translate marked content 4`] = `
2101
1380
  <source xml:space="preserve">Block directive</source>
2102
1381
  </trans-unit>
2103
1382
  <trans-unit id="2">
2104
- <source xml:space="preserve">Leaf directive</source>
1383
+ <source xml:space="preserve">::: some-other-directive<x ctype="lb" equiv-text="&amp;#10;" id="x-1"/>content here<x ctype="lb" equiv-text="&amp;#10;" id="x-2"/>:::<x ctype="lb" equiv-text="&amp;#10;" id="x-3"/>::: no-translate<x ctype="lb" equiv-text="&amp;#10;" id="x-4"/>content here<x ctype="lb" equiv-text="&amp;#10;" id="x-5"/>::: some-other-directive<x ctype="lb" equiv-text="&amp;#10;" id="x-6"/>nested content<x ctype="lb" equiv-text="&amp;#10;" id="x-7"/>:::<x ctype="lb" equiv-text="&amp;#10;" id="x-8"/>:::</source>
2105
1384
  </trans-unit>
2106
1385
  <trans-unit id="3">
2107
- <source xml:space="preserve">— get all users</source>
1386
+ <source xml:space="preserve">Leaf directive</source>
2108
1387
  </trans-unit>
2109
1388
  <trans-unit id="4">
2110
- <source xml:space="preserve">— authorization</source>
1389
+ <source xml:space="preserve">— get all users</source>
2111
1390
  </trans-unit>
2112
1391
  <trans-unit id="5">
2113
- <source xml:space="preserve">— update users data</source>
1392
+ <source xml:space="preserve">— authorization</source>
2114
1393
  </trans-unit>
2115
1394
  <trans-unit id="6">
2116
- <source xml:space="preserve">Simple case leaf</source>
1395
+ <source xml:space="preserve">— update users data</source>
2117
1396
  </trans-unit>
2118
1397
  <trans-unit id="7">
2119
- <source xml:space="preserve">Install using command.</source>
1398
+ <source xml:space="preserve">Simple case leaf</source>
2120
1399
  </trans-unit>
2121
1400
  <trans-unit id="8">
2122
- <source xml:space="preserve">Next sentence.</source>
1401
+ <source xml:space="preserve">Install using command.</source>
2123
1402
  </trans-unit>
2124
1403
  <trans-unit id="9">
2125
- <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
1404
+ <source xml:space="preserve">Next sentence.</source>
2126
1405
  </trans-unit>
2127
1406
  <trans-unit id="10">
2128
- <source xml:space="preserve">Simple case inline</source>
1407
+ <source xml:space="preserve">Set NODE_ENV=production for production builds.</source>
2129
1408
  </trans-unit>
2130
1409
  <trans-unit id="11">
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>
1410
+ <source xml:space="preserve">Simple case inline</source>
2132
1411
  </trans-unit>
2133
1412
  <trans-unit id="12">
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>
1413
+ <source xml:space="preserve">Install using <x ctype="no_translate_inline" equiv-text=":no-translate[npm install @company/package]" id="x-9"/> command.</source>
2135
1414
  </trans-unit>
2136
1415
  <trans-unit id="13">
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>
1416
+ <source xml:space="preserve">The default port is <x ctype="no_translate_inline" equiv-text=":no-translate[8080]" id="x-10"/> unless specified.</source>
2138
1417
  </trans-unit>
2139
1418
  <trans-unit id="14">
2140
- <source xml:space="preserve">Few inline directives</source>
1419
+ <source xml:space="preserve">Set <x ctype="no_translate_inline" equiv-text=":no-translate[NODE_ENV=production]" id="x-11"/> for production builds.</source>
2141
1420
  </trans-unit>
2142
1421
  <trans-unit id="15">
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>
1422
+ <source xml:space="preserve">Few inline directives</source>
2144
1423
  </trans-unit>
2145
1424
  <trans-unit id="16">
2146
- <source xml:space="preserve">Empty inline directive</source>
1425
+ <source xml:space="preserve">Use <x ctype="no_translate_inline" equiv-text=":no-translate[**GET /api/v1/users**]" id="x-12"/> to list users and <x ctype="no_translate_inline" equiv-text=":no-translate[POST /api/v1/users]" id="x-13"/> to create.</source>
2147
1426
  </trans-unit>
2148
1427
  <trans-unit id="17">
2149
- <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-7"/> directive.</source>
1428
+ <source xml:space="preserve">Empty inline directive</source>
1429
+ </trans-unit>
1430
+ <trans-unit id="18">
1431
+ <source xml:space="preserve">This is text with empty <x ctype="no_translate_inline" equiv-text=":no-translate[]" id="x-14"/> directive.</source>
2150
1432
  </trans-unit>
2151
1433
  </body>
2152
1434
  </file>
2153
1435
  </xliff>"
2154
1436
  `;
2155
1437
 
2156
- exports[`Translate command > skip no-translate marked content 5`] = `
1438
+ exports[`Translate command > test no-translate directive 5`] = `
2157
1439
  "openapi: 3.0.1
2158
1440
  info:
2159
1441
  title: '%%%0%%%'
@@ -2193,7 +1475,7 @@ components:
2193
1475
  "
2194
1476
  `;
2195
1477
 
2196
- exports[`Translate command > skip no-translate marked content 6`] = `
1478
+ exports[`Translate command > test no-translate directive 6`] = `
2197
1479
  "<?xml version="1.0" encoding="UTF-8"?>
2198
1480
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2199
1481
  <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">
@@ -2213,7 +1495,7 @@ exports[`Translate command > skip no-translate marked content 6`] = `
2213
1495
  <source xml:space="preserve">Simple get operation. тест новой верстки 3</source>
2214
1496
  </trans-unit>
2215
1497
  <trans-unit id="3">
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>
1498
+ <source xml:space="preserve">Defines a simple get <x ctype="no_translate_inline" equiv-text=":no-translate[skip this]" id="x-15"/> operation with no inputs and a complex</source>
2217
1499
  </trans-unit>
2218
1500
  <trans-unit id="4">
2219
1501
  <source xml:space="preserve">200!!!!</source>
@@ -2223,7 +1505,7 @@ exports[`Translate command > skip no-translate marked content 6`] = `
2223
1505
  </xliff>"
2224
1506
  `;
2225
1507
 
2226
- exports[`Translate command > skip no-translate marked content 7`] = `
1508
+ exports[`Translate command > test no-translate directive 7`] = `
2227
1509
  "title: '%%%0%%%'
2228
1510
  href: index.md
2229
1511
  items:
@@ -2235,10 +1517,11 @@ items:
2235
1517
  includers:
2236
1518
  - name: openapi
2237
1519
  input: openapi-spec.yaml
1520
+ mode: link
2238
1521
  "
2239
1522
  `;
2240
1523
 
2241
- exports[`Translate command > skip no-translate marked content 8`] = `
1524
+ exports[`Translate command > test no-translate directive 8`] = `
2242
1525
  "<?xml version="1.0" encoding="UTF-8"?>
2243
1526
  <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
2244
1527
  <file original="file.ext" source-language="ru-RU" target-language="es-ES" datatype="markdown">