@h2nguyen/arc42-node-mcp-server 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/README.md +81 -5
- package/dist/templates/formats/asciidoc/index.d.ts +178 -0
- package/dist/templates/formats/asciidoc/index.d.ts.map +1 -0
- package/dist/templates/formats/asciidoc/index.js +225 -0
- package/dist/templates/formats/asciidoc/index.js.map +1 -0
- package/dist/templates/formats/index.d.ts +108 -0
- package/dist/templates/formats/index.d.ts.map +1 -0
- package/dist/templates/formats/index.js +149 -0
- package/dist/templates/formats/index.js.map +1 -0
- package/dist/templates/formats/markdown/index.d.ts +172 -0
- package/dist/templates/formats/markdown/index.d.ts.map +1 -0
- package/dist/templates/formats/markdown/index.js +211 -0
- package/dist/templates/formats/markdown/index.js.map +1 -0
- package/dist/templates/formats/output-format-factory.d.ts +125 -0
- package/dist/templates/formats/output-format-factory.d.ts.map +1 -0
- package/dist/templates/formats/output-format-factory.js +166 -0
- package/dist/templates/formats/output-format-factory.js.map +1 -0
- package/dist/templates/formats/output-format-registry.d.ts +114 -0
- package/dist/templates/formats/output-format-registry.d.ts.map +1 -0
- package/dist/templates/formats/output-format-registry.js +147 -0
- package/dist/templates/formats/output-format-registry.js.map +1 -0
- package/dist/templates/formats/output-format-strategy.d.ts +195 -0
- package/dist/templates/formats/output-format-strategy.d.ts.map +1 -0
- package/dist/templates/formats/output-format-strategy.js +69 -0
- package/dist/templates/formats/output-format-strategy.js.map +1 -0
- package/dist/templates/index.d.ts +9 -8
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/index.js +21 -10
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/locales/cz/index.d.ts +25 -3
- package/dist/templates/locales/cz/index.d.ts.map +1 -1
- package/dist/templates/locales/cz/index.js +34 -18
- package/dist/templates/locales/cz/index.js.map +1 -1
- package/dist/templates/locales/cz/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/cz/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/cz/templates-asciidoc.js +764 -0
- package/dist/templates/locales/cz/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/cz/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/cz/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/cz/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/cz/templates-markdown.js.map +1 -0
- package/dist/templates/locales/de/index.d.ts +14 -4
- package/dist/templates/locales/de/index.d.ts.map +1 -1
- package/dist/templates/locales/de/index.js +22 -25
- package/dist/templates/locales/de/index.js.map +1 -1
- package/dist/templates/locales/de/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/de/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/de/templates-asciidoc.js +814 -0
- package/dist/templates/locales/de/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/de/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/de/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/de/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/de/templates-markdown.js.map +1 -0
- package/dist/templates/locales/en/index.d.ts +14 -4
- package/dist/templates/locales/en/index.d.ts.map +1 -1
- package/dist/templates/locales/en/index.js +22 -25
- package/dist/templates/locales/en/index.js.map +1 -1
- package/dist/templates/locales/en/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/en/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/en/templates-asciidoc.js +764 -0
- package/dist/templates/locales/en/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/en/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/en/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/en/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/en/templates-markdown.js.map +1 -0
- package/dist/templates/locales/es/index.d.ts +15 -10
- package/dist/templates/locales/es/index.d.ts.map +1 -1
- package/dist/templates/locales/es/index.js +23 -31
- package/dist/templates/locales/es/index.js.map +1 -1
- package/dist/templates/locales/es/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/es/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/es/templates-asciidoc.js +764 -0
- package/dist/templates/locales/es/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/es/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/es/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/es/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/es/templates-markdown.js.map +1 -0
- package/dist/templates/locales/fr/index.d.ts +14 -9
- package/dist/templates/locales/fr/index.d.ts.map +1 -1
- package/dist/templates/locales/fr/index.js +22 -30
- package/dist/templates/locales/fr/index.js.map +1 -1
- package/dist/templates/locales/fr/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/fr/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/fr/templates-asciidoc.js +764 -0
- package/dist/templates/locales/fr/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/fr/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/fr/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/fr/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/fr/templates-markdown.js.map +1 -0
- package/dist/templates/locales/it/index.d.ts +14 -9
- package/dist/templates/locales/it/index.d.ts.map +1 -1
- package/dist/templates/locales/it/index.js +22 -30
- package/dist/templates/locales/it/index.js.map +1 -1
- package/dist/templates/locales/it/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/it/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/it/templates-asciidoc.js +764 -0
- package/dist/templates/locales/it/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/it/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/it/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/it/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/it/templates-markdown.js.map +1 -0
- package/dist/templates/locales/language-strategy-factory.d.ts +120 -0
- package/dist/templates/locales/language-strategy-factory.d.ts.map +1 -0
- package/dist/templates/locales/language-strategy-factory.js +127 -0
- package/dist/templates/locales/language-strategy-factory.js.map +1 -0
- package/dist/templates/locales/language-strategy.d.ts +16 -12
- package/dist/templates/locales/language-strategy.d.ts.map +1 -1
- package/dist/templates/locales/language-strategy.js.map +1 -1
- package/dist/templates/locales/nl/index.d.ts +14 -9
- package/dist/templates/locales/nl/index.d.ts.map +1 -1
- package/dist/templates/locales/nl/index.js +22 -30
- package/dist/templates/locales/nl/index.js.map +1 -1
- package/dist/templates/locales/nl/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/nl/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/nl/templates-asciidoc.js +764 -0
- package/dist/templates/locales/nl/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/nl/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/nl/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/nl/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/nl/templates-markdown.js.map +1 -0
- package/dist/templates/locales/pt/index.d.ts +14 -9
- package/dist/templates/locales/pt/index.d.ts.map +1 -1
- package/dist/templates/locales/pt/index.js +22 -30
- package/dist/templates/locales/pt/index.js.map +1 -1
- package/dist/templates/locales/pt/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/pt/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/pt/templates-asciidoc.js +764 -0
- package/dist/templates/locales/pt/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/pt/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/pt/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/pt/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/pt/templates-markdown.js.map +1 -0
- package/dist/templates/locales/ru/index.d.ts +19 -3
- package/dist/templates/locales/ru/index.d.ts.map +1 -1
- package/dist/templates/locales/ru/index.js +28 -24
- package/dist/templates/locales/ru/index.js.map +1 -1
- package/dist/templates/locales/ru/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/ru/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/ru/templates-asciidoc.js +996 -0
- package/dist/templates/locales/ru/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/ru/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/ru/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/ru/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/ru/templates-markdown.js.map +1 -0
- package/dist/templates/locales/template-provider.d.ts +22 -10
- package/dist/templates/locales/template-provider.d.ts.map +1 -1
- package/dist/templates/locales/template-provider.js +53 -14
- package/dist/templates/locales/template-provider.js.map +1 -1
- package/dist/templates/locales/ukr/index.d.ts +25 -3
- package/dist/templates/locales/ukr/index.d.ts.map +1 -1
- package/dist/templates/locales/ukr/index.js +34 -18
- package/dist/templates/locales/ukr/index.js.map +1 -1
- package/dist/templates/locales/ukr/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/ukr/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/ukr/templates-asciidoc.js +764 -0
- package/dist/templates/locales/ukr/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/ukr/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/ukr/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/ukr/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/ukr/templates-markdown.js.map +1 -0
- package/dist/templates/locales/zh/index.d.ts +25 -3
- package/dist/templates/locales/zh/index.d.ts.map +1 -1
- package/dist/templates/locales/zh/index.js +34 -18
- package/dist/templates/locales/zh/index.js.map +1 -1
- package/dist/templates/locales/zh/templates-asciidoc.d.ts +22 -0
- package/dist/templates/locales/zh/templates-asciidoc.d.ts.map +1 -0
- package/dist/templates/locales/zh/templates-asciidoc.js +764 -0
- package/dist/templates/locales/zh/templates-asciidoc.js.map +1 -0
- package/dist/templates/locales/zh/{templates.d.ts → templates-markdown.d.ts} +1 -1
- package/dist/templates/locales/zh/templates-markdown.d.ts.map +1 -0
- package/dist/templates/locales/zh/{templates.js → templates-markdown.js} +1 -1
- package/dist/templates/locales/zh/templates-markdown.js.map +1 -0
- package/dist/tools/arc42-init.d.ts +2 -1
- package/dist/tools/arc42-init.d.ts.map +1 -1
- package/dist/tools/arc42-init.js +154 -24
- package/dist/tools/arc42-init.js.map +1 -1
- package/dist/tools/arc42-status.d.ts.map +1 -1
- package/dist/tools/arc42-status.js +66 -10
- package/dist/tools/arc42-status.js.map +1 -1
- package/dist/tools/arc42-workflow-guide.d.ts +1 -0
- package/dist/tools/arc42-workflow-guide.d.ts.map +1 -1
- package/dist/tools/arc42-workflow-guide.js +16 -14
- package/dist/tools/arc42-workflow-guide.js.map +1 -1
- package/dist/tools/generate-template.d.ts +1 -0
- package/dist/tools/generate-template.d.ts.map +1 -1
- package/dist/tools/generate-template.js +16 -5
- package/dist/tools/generate-template.js.map +1 -1
- package/dist/tools/get-section.d.ts.map +1 -1
- package/dist/tools/get-section.js +28 -7
- package/dist/tools/get-section.js.map +1 -1
- package/dist/tools/update-section.d.ts +1 -1
- package/dist/tools/update-section.d.ts.map +1 -1
- package/dist/tools/update-section.js +71 -8
- package/dist/tools/update-section.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/templates/locales/cz/templates.d.ts.map +0 -1
- package/dist/templates/locales/cz/templates.js.map +0 -1
- package/dist/templates/locales/de/templates.d.ts.map +0 -1
- package/dist/templates/locales/de/templates.js.map +0 -1
- package/dist/templates/locales/en/templates.d.ts.map +0 -1
- package/dist/templates/locales/en/templates.js.map +0 -1
- package/dist/templates/locales/es/templates.d.ts.map +0 -1
- package/dist/templates/locales/es/templates.js.map +0 -1
- package/dist/templates/locales/fr/templates.d.ts.map +0 -1
- package/dist/templates/locales/fr/templates.js.map +0 -1
- package/dist/templates/locales/it/templates.d.ts.map +0 -1
- package/dist/templates/locales/it/templates.js.map +0 -1
- package/dist/templates/locales/nl/templates.d.ts.map +0 -1
- package/dist/templates/locales/nl/templates.js.map +0 -1
- package/dist/templates/locales/pt/templates.d.ts.map +0 -1
- package/dist/templates/locales/pt/templates.js.map +0 -1
- package/dist/templates/locales/ru/templates.d.ts.map +0 -1
- package/dist/templates/locales/ru/templates.js.map +0 -1
- package/dist/templates/locales/ukr/templates.d.ts.map +0 -1
- package/dist/templates/locales/ukr/templates.js.map +0 -1
- package/dist/templates/locales/zh/templates.d.ts.map +0 -1
- package/dist/templates/locales/zh/templates.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-asciidoc.js","sourceRoot":"","sources":["../../../../src/templates/locales/ru/templates-asciidoc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,OAAqB;IAC/C,MAAM,SAAS,GAAuC;QACpD,2BAA2B,EAAE,+BAA+B;QAC5D,6BAA6B,EAAE,kCAAkC;QACjE,sBAAsB,EAAE,0BAA0B;QAClD,sBAAsB,EAAE,2BAA2B;QACnD,wBAAwB,EAAE,4BAA4B;QACtD,iBAAiB,EAAE,sBAAsB;QACzC,oBAAoB,EAAE,yBAAyB;QAC/C,aAAa,EAAE,mBAAmB;QAClC,2BAA2B,EAAE,gCAAgC;QAC7D,yBAAyB,EAAE,8BAA8B;QACzD,oBAAoB,EAAE,yBAAyB;QAC/C,aAAa,EAAE,mBAAmB;KACnC,CAAC;IAEF,OAAO,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,+BAA+B;IACtC,OA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AACF,CAAC;AAED,SAAS,8BAA8B;IACrC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmER,CAAC;AACF,CAAC;AAED,SAAS,yBAAyB;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;CAsBR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAoB;IACnD,MAAM,IAAI,GAAG,WAAW,IAAI,QAAQ,CAAC;IACrC,OAAO,KAAK,IAAI;;qDAEmC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CxD,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-markdown.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ru/templates-markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAiBzD;AAyhBD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgEzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAwC7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-markdown.js","sourceRoot":"","sources":["../../../../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;;;CA2CR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CR,CAAC;AACF,CAAC;AAED,SAAS,gCAAgC;IACvC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCR,CAAC;AACF,CAAC;AAED,SAAS,8BAA8B;IACrC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DR,CAAC;AACF,CAAC;AAED,SAAS,yBAAyB;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAoB;IACnD,MAAM,IAAI,GAAG,WAAW,IAAI,QAAQ,CAAC;IACrC,OAAO,KAAK,IAAI;;qDAEmC,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCxD,CAAC;AACF,CAAC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import type { Arc42Section } from '../../types.js';
|
|
18
18
|
import type { LanguageCode, LanguageInfo } from './language-strategy.js';
|
|
19
19
|
import type { LanguageFactory } from './language-factory.js';
|
|
20
|
+
import type { OutputFormatCode } from '../formats/index.js';
|
|
20
21
|
/**
|
|
21
22
|
* Section metadata with localized content
|
|
22
23
|
*/
|
|
@@ -59,22 +60,24 @@ export declare class LocalizedTemplateProvider {
|
|
|
59
60
|
*/
|
|
60
61
|
constructor(factory: LanguageFactory);
|
|
61
62
|
/**
|
|
62
|
-
* Get the template for a section in a specific language
|
|
63
|
+
* Get the template for a section in a specific language and format
|
|
63
64
|
*
|
|
64
65
|
* @param section - The arc42 section
|
|
65
66
|
* @param language - The language code (defaults to English)
|
|
66
|
-
* @
|
|
67
|
+
* @param format - The output format (markdown or asciidoc, defaults to asciidoc)
|
|
68
|
+
* @returns The template content in the specified format
|
|
67
69
|
*/
|
|
68
|
-
|
|
70
|
+
getTemplateForFormat(section: Arc42Section, language?: string, format?: OutputFormatCode): string;
|
|
69
71
|
/**
|
|
70
|
-
* Get the template using config.yaml for
|
|
72
|
+
* Get the template using config.yaml for language and format
|
|
71
73
|
*
|
|
72
74
|
* @param section - The arc42 section
|
|
73
75
|
* @param workspacePath - Path to the workspace (or parent containing config.yaml)
|
|
74
76
|
* @param language - Optional override language (takes precedence over config)
|
|
75
|
-
* @
|
|
77
|
+
* @param format - Optional override format (takes precedence over config)
|
|
78
|
+
* @returns The template content in the specified format
|
|
76
79
|
*/
|
|
77
|
-
|
|
80
|
+
getTemplateWithConfigAndFormat(section: Arc42Section, workspacePath: string, language?: string, format?: OutputFormatCode): string;
|
|
78
81
|
/**
|
|
79
82
|
* Get section metadata in a specific language
|
|
80
83
|
*
|
|
@@ -84,20 +87,22 @@ export declare class LocalizedTemplateProvider {
|
|
|
84
87
|
*/
|
|
85
88
|
getSectionMetadata(section: Arc42Section, language?: string): LocalizedSectionMetadata;
|
|
86
89
|
/**
|
|
87
|
-
* Get the workflow guide in a specific language
|
|
90
|
+
* Get the workflow guide in a specific language and format
|
|
88
91
|
*
|
|
89
92
|
* @param language - The language code (defaults to English)
|
|
93
|
+
* @param format - The output format (defaults to asciidoc)
|
|
90
94
|
* @returns The workflow guide content
|
|
91
95
|
*/
|
|
92
|
-
|
|
96
|
+
getWorkflowGuideForFormat(language?: string, format?: OutputFormatCode): string;
|
|
93
97
|
/**
|
|
94
|
-
* Get README content in a specific language
|
|
98
|
+
* Get README content in a specific language and format
|
|
95
99
|
*
|
|
96
100
|
* @param language - The language code (defaults to English)
|
|
97
101
|
* @param projectName - Optional project name for README header
|
|
102
|
+
* @param format - The output format (defaults to asciidoc)
|
|
98
103
|
* @returns The README content
|
|
99
104
|
*/
|
|
100
|
-
|
|
105
|
+
getReadmeContentForFormat(language?: string, projectName?: string, format?: OutputFormatCode): string;
|
|
101
106
|
/**
|
|
102
107
|
* Get all available languages
|
|
103
108
|
*
|
|
@@ -118,5 +123,12 @@ export declare class LocalizedTemplateProvider {
|
|
|
118
123
|
* @returns The language code from config, or undefined if not found
|
|
119
124
|
*/
|
|
120
125
|
readLanguageFromConfig(workspacePath: string): string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Read the format setting from config.yaml
|
|
128
|
+
*
|
|
129
|
+
* @param workspacePath - Path to the workspace directory
|
|
130
|
+
* @returns The format code from config, or undefined if not found
|
|
131
|
+
*/
|
|
132
|
+
readFormatFromConfig(workspacePath: string): OutputFormatCode | undefined;
|
|
121
133
|
}
|
|
122
134
|
//# sourceMappingURL=template-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-provider.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-provider.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB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,EAAE,MAAM,GAAG,OAAO;IAItC;;;;;OAKG;IACH,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAyBjE;;;;;OAKG;IACH,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;CA2B1E"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { existsSync, readFileSync } from 'fs';
|
|
18
18
|
import { join } from 'path';
|
|
19
19
|
import { parse as parseYaml } from 'yaml';
|
|
20
|
+
import { DEFAULT_OUTPUT_FORMAT } from '../formats/index.js';
|
|
20
21
|
/**
|
|
21
22
|
* Localized Template Provider Class
|
|
22
23
|
*
|
|
@@ -48,29 +49,33 @@ export class LocalizedTemplateProvider {
|
|
|
48
49
|
this.factory = factory;
|
|
49
50
|
}
|
|
50
51
|
/**
|
|
51
|
-
* Get the template for a section in a specific language
|
|
52
|
+
* Get the template for a section in a specific language and format
|
|
52
53
|
*
|
|
53
54
|
* @param section - The arc42 section
|
|
54
55
|
* @param language - The language code (defaults to English)
|
|
55
|
-
* @
|
|
56
|
+
* @param format - The output format (markdown or asciidoc, defaults to asciidoc)
|
|
57
|
+
* @returns The template content in the specified format
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
getTemplateForFormat(section, language, format) {
|
|
58
60
|
const strategy = language
|
|
59
61
|
? this.factory.createWithFallback(language)
|
|
60
62
|
: this.factory.getDefault();
|
|
61
|
-
|
|
63
|
+
const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
|
|
64
|
+
return strategy.getTemplateForFormat(section, effectiveFormat);
|
|
62
65
|
}
|
|
63
66
|
/**
|
|
64
|
-
* Get the template using config.yaml for
|
|
67
|
+
* Get the template using config.yaml for language and format
|
|
65
68
|
*
|
|
66
69
|
* @param section - The arc42 section
|
|
67
70
|
* @param workspacePath - Path to the workspace (or parent containing config.yaml)
|
|
68
71
|
* @param language - Optional override language (takes precedence over config)
|
|
69
|
-
* @
|
|
72
|
+
* @param format - Optional override format (takes precedence over config)
|
|
73
|
+
* @returns The template content in the specified format
|
|
70
74
|
*/
|
|
71
|
-
|
|
75
|
+
getTemplateWithConfigAndFormat(section, workspacePath, language, format) {
|
|
72
76
|
const effectiveLanguage = language || this.readLanguageFromConfig(workspacePath) || 'EN';
|
|
73
|
-
|
|
77
|
+
const effectiveFormat = format || this.readFormatFromConfig(workspacePath) || DEFAULT_OUTPUT_FORMAT;
|
|
78
|
+
return this.getTemplateForFormat(section, effectiveLanguage, effectiveFormat);
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
76
81
|
* Get section metadata in a specific language
|
|
@@ -93,29 +98,33 @@ export class LocalizedTemplateProvider {
|
|
|
93
98
|
};
|
|
94
99
|
}
|
|
95
100
|
/**
|
|
96
|
-
* Get the workflow guide in a specific language
|
|
101
|
+
* Get the workflow guide in a specific language and format
|
|
97
102
|
*
|
|
98
103
|
* @param language - The language code (defaults to English)
|
|
104
|
+
* @param format - The output format (defaults to asciidoc)
|
|
99
105
|
* @returns The workflow guide content
|
|
100
106
|
*/
|
|
101
|
-
|
|
107
|
+
getWorkflowGuideForFormat(language, format) {
|
|
102
108
|
const strategy = language
|
|
103
109
|
? this.factory.createWithFallback(language)
|
|
104
110
|
: this.factory.getDefault();
|
|
105
|
-
|
|
111
|
+
const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
|
|
112
|
+
return strategy.getWorkflowGuideForFormat(effectiveFormat);
|
|
106
113
|
}
|
|
107
114
|
/**
|
|
108
|
-
* Get README content in a specific language
|
|
115
|
+
* Get README content in a specific language and format
|
|
109
116
|
*
|
|
110
117
|
* @param language - The language code (defaults to English)
|
|
111
118
|
* @param projectName - Optional project name for README header
|
|
119
|
+
* @param format - The output format (defaults to asciidoc)
|
|
112
120
|
* @returns The README content
|
|
113
121
|
*/
|
|
114
|
-
|
|
122
|
+
getReadmeContentForFormat(language, projectName, format) {
|
|
115
123
|
const strategy = language
|
|
116
124
|
? this.factory.createWithFallback(language)
|
|
117
125
|
: this.factory.getDefault();
|
|
118
|
-
|
|
126
|
+
const effectiveFormat = format || DEFAULT_OUTPUT_FORMAT;
|
|
127
|
+
return strategy.getReadmeContentForFormat(projectName, effectiveFormat);
|
|
119
128
|
}
|
|
120
129
|
/**
|
|
121
130
|
* Get all available languages
|
|
@@ -169,5 +178,35 @@ export class LocalizedTemplateProvider {
|
|
|
169
178
|
}
|
|
170
179
|
return undefined;
|
|
171
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* Read the format setting from config.yaml
|
|
183
|
+
*
|
|
184
|
+
* @param workspacePath - Path to the workspace directory
|
|
185
|
+
* @returns The format code from config, or undefined if not found
|
|
186
|
+
*/
|
|
187
|
+
readFormatFromConfig(workspacePath) {
|
|
188
|
+
const configPath = join(workspacePath, 'config.yaml');
|
|
189
|
+
if (!existsSync(configPath)) {
|
|
190
|
+
return undefined;
|
|
191
|
+
}
|
|
192
|
+
try {
|
|
193
|
+
const content = readFileSync(configPath, 'utf-8');
|
|
194
|
+
const config = parseYaml(content);
|
|
195
|
+
if (config && typeof config === 'object' && 'format' in config) {
|
|
196
|
+
const format = config.format;
|
|
197
|
+
if (typeof format === 'string') {
|
|
198
|
+
const normalized = format.trim().toLowerCase();
|
|
199
|
+
if (normalized === 'markdown' || normalized === 'asciidoc') {
|
|
200
|
+
return normalized;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
catch {
|
|
206
|
+
// Config file exists but couldn't be parsed
|
|
207
|
+
return undefined;
|
|
208
|
+
}
|
|
209
|
+
return undefined;
|
|
210
|
+
}
|
|
172
211
|
}
|
|
173
212
|
//# sourceMappingURL=template-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-provider.js","sourceRoot":"","sources":["../../../src/templates/locales/template-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAA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C,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;gBACvC,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;YAC5C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,aAAqB;QACxC,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAEtD,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;YAClD,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;YAElC,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,QAAQ,IAAI,MAAM,EAAE,CAAC;gBAC/D,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;gBAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;oBAC/B,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;oBAC/C,IAAI,UAAU,KAAK,UAAU,IAAI,UAAU,KAAK,UAAU,EAAE,CAAC;wBAC3D,OAAO,UAA8B,CAAC;oBACxC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,4CAA4C;YAC5C,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Ukrainian Language Strategy
|
|
3
|
+
*
|
|
4
|
+
* Implements the LanguageStrategy interface for Ukrainian (Українська).
|
|
5
|
+
* Provides Ukrainian section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
|
|
6
|
+
*
|
|
3
7
|
* @module templates/locales/ukr
|
|
8
|
+
*
|
|
9
|
+
* Design Patterns:
|
|
10
|
+
* - Strategy Pattern: Concrete implementation for Ukrainian language
|
|
11
|
+
* - Plugin Pattern: Format-specific templates are provided via plugins
|
|
4
12
|
*/
|
|
5
|
-
import type
|
|
6
|
-
|
|
13
|
+
import { type FormatTemplatePlugin } from '../language-strategy-factory.js';
|
|
14
|
+
/**
|
|
15
|
+
* Ukrainian Markdown format plugin
|
|
16
|
+
*/
|
|
17
|
+
export declare const ukrainianMarkdownPlugin: FormatTemplatePlugin;
|
|
18
|
+
/**
|
|
19
|
+
* Ukrainian AsciiDoc format plugin
|
|
20
|
+
*/
|
|
21
|
+
export declare const ukrainianAsciidocPlugin: FormatTemplatePlugin;
|
|
22
|
+
/**
|
|
23
|
+
* Ukrainian Language Strategy
|
|
24
|
+
*
|
|
25
|
+
* Provides Ukrainian translations for arc42 documentation.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ukrainianStrategy: import("../language-strategy.js").LanguageStrategy;
|
|
7
28
|
export { getSectionTitle, getSectionDescription } from './sections.js';
|
|
8
|
-
export { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
|
|
29
|
+
export { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
|
|
30
|
+
export { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
|
|
9
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,oBAIrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oDAU5B,CAAC;AAGH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,29 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Ukrainian Language Strategy
|
|
3
|
+
*
|
|
4
|
+
* Implements the LanguageStrategy interface for Ukrainian (Українська).
|
|
5
|
+
* Provides Ukrainian section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
|
|
6
|
+
*
|
|
3
7
|
* @module templates/locales/ukr
|
|
8
|
+
*
|
|
9
|
+
* Design Patterns:
|
|
10
|
+
* - Strategy Pattern: Concrete implementation for Ukrainian language
|
|
11
|
+
* - Plugin Pattern: Format-specific templates are provided via plugins
|
|
4
12
|
*/
|
|
5
13
|
import { getSectionTitle, getSectionDescription } from './sections.js';
|
|
6
|
-
import { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
|
|
7
|
-
|
|
14
|
+
import { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
|
|
15
|
+
import { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
|
|
16
|
+
import { createLanguageStrategy, createFormatPlugin } from '../language-strategy-factory.js';
|
|
17
|
+
/**
|
|
18
|
+
* Ukrainian Markdown format plugin
|
|
19
|
+
*/
|
|
20
|
+
export const ukrainianMarkdownPlugin = createFormatPlugin(getTemplateMarkdown, getWorkflowGuideMarkdown, getReadmeContentMarkdown);
|
|
21
|
+
/**
|
|
22
|
+
* Ukrainian AsciiDoc format plugin
|
|
23
|
+
*/
|
|
24
|
+
export const ukrainianAsciidocPlugin = createFormatPlugin(getTemplateAsciidoc, getWorkflowGuideAsciidoc, getReadmeContentAsciidoc);
|
|
25
|
+
/**
|
|
26
|
+
* Ukrainian Language Strategy
|
|
27
|
+
*
|
|
28
|
+
* Provides Ukrainian translations for arc42 documentation.
|
|
29
|
+
*/
|
|
30
|
+
export const ukrainianStrategy = createLanguageStrategy({
|
|
8
31
|
code: 'UKR',
|
|
9
32
|
name: 'Ukrainian',
|
|
10
33
|
nativeName: 'Українська',
|
|
11
|
-
getSectionTitle
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
getTemplate(section) {
|
|
18
|
-
return getTemplate(section);
|
|
19
|
-
},
|
|
20
|
-
getWorkflowGuide() {
|
|
21
|
-
return getWorkflowGuide();
|
|
22
|
-
},
|
|
23
|
-
getReadmeContent(projectName) {
|
|
24
|
-
return getReadmeContent(projectName);
|
|
34
|
+
getSectionTitle,
|
|
35
|
+
getSectionDescription,
|
|
36
|
+
formatPlugins: {
|
|
37
|
+
markdown: ukrainianMarkdownPlugin,
|
|
38
|
+
asciidoc: ukrainianAsciidocPlugin
|
|
25
39
|
}
|
|
26
|
-
};
|
|
40
|
+
});
|
|
41
|
+
// Re-export for convenience
|
|
27
42
|
export { getSectionTitle, getSectionDescription } from './sections.js';
|
|
28
|
-
export { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
|
|
43
|
+
export { getTemplate as getTemplateMarkdown, getWorkflowGuide as getWorkflowGuideMarkdown, getReadmeContent as getReadmeContentMarkdown } from './templates-markdown.js';
|
|
44
|
+
export { getTemplate as getTemplateAsciidoc, getWorkflowGuide as getWorkflowGuideAsciidoc, getReadmeContent as getReadmeContentAsciidoc } from './templates-asciidoc.js';
|
|
29
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAEnB,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,kBAAkB,CAC7E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyB,kBAAkB,CAC7E,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;IACtD,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,WAAW;IACjB,UAAU,EAAE,YAAY;IACxB,eAAe;IACf,qBAAqB;IACrB,aAAa,EAAE;QACb,QAAQ,EAAE,uBAAuB;QACjC,QAAQ,EAAE,uBAAuB;KAClC;CACF,CAAC,CAAC;AAEH,4BAA4B;AAC5B,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC7C,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ukrainian Templates - AsciiDoc Format
|
|
3
|
+
*
|
|
4
|
+
* Contains all arc42 section templates in Ukrainian using AsciiDoc syntax.
|
|
5
|
+
* Based on the official arc42 templates from vendor/arc42-template.
|
|
6
|
+
*
|
|
7
|
+
* @module templates/locales/ukr/templates-asciidoc
|
|
8
|
+
*/
|
|
9
|
+
import type { Arc42Section } from '../../../types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Get the Ukrainian AsciiDoc template for a specific section
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTemplate(section: Arc42Section): string;
|
|
14
|
+
/**
|
|
15
|
+
* Get the Ukrainian workflow guide in AsciiDoc format
|
|
16
|
+
*/
|
|
17
|
+
export declare function getWorkflowGuide(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get the Ukrainian README content in AsciiDoc format
|
|
20
|
+
*/
|
|
21
|
+
export declare function getReadmeContent(projectName?: string): string;
|
|
22
|
+
//# sourceMappingURL=templates-asciidoc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-asciidoc.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/ukr/templates-asciidoc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAiBzD;AAolBD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAgGzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAiD7D"}
|