@h2nguyen/arc42-node-mcp-server 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/README.md +83 -6
- package/dist/templates/arc42-reference.d.ts +25 -7
- package/dist/templates/arc42-reference.d.ts.map +1 -1
- package/dist/templates/arc42-reference.js +96 -47
- package/dist/templates/arc42-reference.js.map +1 -1
- 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/it/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,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B;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BR,CAAC;AACF,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCR,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,UAAU,CAAC;IACvC,OAAO,KAAK,IAAI;;oEAEkD,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CvE,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-markdown.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/it/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;AAk4BD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CA2FzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAgD7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates-markdown.js","sourceRoot":"","sources":["../../../../src/templates/locales/it/templates-markdown.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,OAAqB;IAC/C,MAAM,SAAS,GAAuC;QACpD,2BAA2B,EAAE,+BA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|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language Strategy Factory
|
|
3
|
+
*
|
|
4
|
+
* Provides a plugin-based architecture for creating language strategies.
|
|
5
|
+
* This factory enables easy extension of new languages and output formats
|
|
6
|
+
* while maintaining DRY principles.
|
|
7
|
+
*
|
|
8
|
+
* @module templates/locales/language-strategy-factory
|
|
9
|
+
*
|
|
10
|
+
* Design Patterns:
|
|
11
|
+
* - Factory Pattern: Creates LanguageStrategy instances with consistent structure
|
|
12
|
+
* - Plugin Architecture: Format handlers are pluggable via FormatTemplatePlugin
|
|
13
|
+
* - Strategy Pattern: Each format has its own template provider
|
|
14
|
+
*
|
|
15
|
+
* S.O.L.I.D Principles:
|
|
16
|
+
* - OCP (Open/Closed Principle): New formats can be added without modifying existing code
|
|
17
|
+
* - DIP (Dependency Inversion Principle): Depends on abstractions (plugin interface)
|
|
18
|
+
* - SRP (Single Responsibility Principle): Factory only creates strategies
|
|
19
|
+
*/
|
|
20
|
+
import type { Arc42Section } from '../../types.js';
|
|
21
|
+
import type { OutputFormatCode } from '../formats/index.js';
|
|
22
|
+
import type { LanguageStrategy, LanguageCode } from './language-strategy.js';
|
|
23
|
+
/**
|
|
24
|
+
* Plugin interface for format-specific template providers
|
|
25
|
+
* Implement this interface to add support for a new output format
|
|
26
|
+
*/
|
|
27
|
+
export interface FormatTemplatePlugin {
|
|
28
|
+
/** Get template for a specific section */
|
|
29
|
+
getTemplate(section: Arc42Section): string;
|
|
30
|
+
/** Get workflow guide content */
|
|
31
|
+
getWorkflowGuide(): string;
|
|
32
|
+
/** Get README content */
|
|
33
|
+
getReadmeContent(projectName?: string): string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Configuration for creating a language strategy
|
|
37
|
+
*/
|
|
38
|
+
export interface LanguageStrategyConfig {
|
|
39
|
+
/** ISO language code */
|
|
40
|
+
code: LanguageCode;
|
|
41
|
+
/** English name of the language */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Name of the language in its native form */
|
|
44
|
+
nativeName: string;
|
|
45
|
+
/** Function to get section title */
|
|
46
|
+
getSectionTitle: (section: Arc42Section) => string;
|
|
47
|
+
/** Function to get section description */
|
|
48
|
+
getSectionDescription: (section: Arc42Section) => string;
|
|
49
|
+
/** Format-specific template plugins */
|
|
50
|
+
formatPlugins: Record<OutputFormatCode, FormatTemplatePlugin>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Creates a LanguageStrategy from a configuration object
|
|
54
|
+
*
|
|
55
|
+
* This factory function creates consistent language strategies with proper
|
|
56
|
+
* format dispatch. It uses a plugin architecture where each output format
|
|
57
|
+
* provides its own template implementations.
|
|
58
|
+
*
|
|
59
|
+
* @param config - The language strategy configuration
|
|
60
|
+
* @returns A complete LanguageStrategy implementation
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const englishStrategy = createLanguageStrategy({
|
|
65
|
+
* code: 'EN',
|
|
66
|
+
* name: 'English',
|
|
67
|
+
* nativeName: 'English',
|
|
68
|
+
* getSectionTitle: (section) => getSectionTitle(section),
|
|
69
|
+
* getSectionDescription: (section) => getSectionDescription(section),
|
|
70
|
+
* formatPlugins: {
|
|
71
|
+
* markdown: markdownPlugin,
|
|
72
|
+
* asciidoc: asciidocPlugin
|
|
73
|
+
* }
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare function createLanguageStrategy(config: LanguageStrategyConfig): LanguageStrategy;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a format plugin from individual functions
|
|
80
|
+
*
|
|
81
|
+
* Helper function to create a FormatTemplatePlugin from separate functions.
|
|
82
|
+
* This is useful when importing functions from existing template modules.
|
|
83
|
+
*
|
|
84
|
+
* @param getTemplate - Function to get section template
|
|
85
|
+
* @param getWorkflowGuide - Function to get workflow guide
|
|
86
|
+
* @param getReadmeContent - Function to get README content
|
|
87
|
+
* @returns A FormatTemplatePlugin instance
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```typescript
|
|
91
|
+
* const markdownPlugin = createFormatPlugin(
|
|
92
|
+
* getTemplateMarkdown,
|
|
93
|
+
* getWorkflowGuideMarkdown,
|
|
94
|
+
* getReadmeContentMarkdown
|
|
95
|
+
* );
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function createFormatPlugin(getTemplate: (section: Arc42Section) => string, getWorkflowGuide: () => string, getReadmeContent: (projectName?: string) => string): FormatTemplatePlugin;
|
|
99
|
+
/**
|
|
100
|
+
* Creates format plugins with fallback support
|
|
101
|
+
*
|
|
102
|
+
* For languages that don't have all format templates implemented,
|
|
103
|
+
* this function creates plugins that fall back to another language's
|
|
104
|
+
* templates (typically English) for missing formats.
|
|
105
|
+
*
|
|
106
|
+
* @param primaryPlugins - The primary format plugin (e.g., markdown in native language)
|
|
107
|
+
* @param fallbackPlugins - Fallback plugins for formats not natively supported
|
|
108
|
+
* @returns A complete set of format plugins
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* // French only has markdown templates, falls back to English for AsciiDoc
|
|
113
|
+
* const formatPlugins = createFormatPluginsWithFallback(
|
|
114
|
+
* { markdown: frenchMarkdownPlugin },
|
|
115
|
+
* { asciidoc: englishAsciidocPlugin }
|
|
116
|
+
* );
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export declare function createFormatPluginsWithFallback(primaryPlugins: Partial<Record<OutputFormatCode, FormatTemplatePlugin>>, fallbackPlugins: Record<OutputFormatCode, FormatTemplatePlugin>): Record<OutputFormatCode, FormatTemplatePlugin>;
|
|
120
|
+
//# sourceMappingURL=language-strategy-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-strategy-factory.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;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,+BAA+B,CAC7C,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC,EACvE,eAAe,EAAE,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC9D,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAKhD"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Language Strategy Factory
|
|
3
|
+
*
|
|
4
|
+
* Provides a plugin-based architecture for creating language strategies.
|
|
5
|
+
* This factory enables easy extension of new languages and output formats
|
|
6
|
+
* while maintaining DRY principles.
|
|
7
|
+
*
|
|
8
|
+
* @module templates/locales/language-strategy-factory
|
|
9
|
+
*
|
|
10
|
+
* Design Patterns:
|
|
11
|
+
* - Factory Pattern: Creates LanguageStrategy instances with consistent structure
|
|
12
|
+
* - Plugin Architecture: Format handlers are pluggable via FormatTemplatePlugin
|
|
13
|
+
* - Strategy Pattern: Each format has its own template provider
|
|
14
|
+
*
|
|
15
|
+
* S.O.L.I.D Principles:
|
|
16
|
+
* - OCP (Open/Closed Principle): New formats can be added without modifying existing code
|
|
17
|
+
* - DIP (Dependency Inversion Principle): Depends on abstractions (plugin interface)
|
|
18
|
+
* - SRP (Single Responsibility Principle): Factory only creates strategies
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Creates a LanguageStrategy from a configuration object
|
|
22
|
+
*
|
|
23
|
+
* This factory function creates consistent language strategies with proper
|
|
24
|
+
* format dispatch. It uses a plugin architecture where each output format
|
|
25
|
+
* provides its own template implementations.
|
|
26
|
+
*
|
|
27
|
+
* @param config - The language strategy configuration
|
|
28
|
+
* @returns A complete LanguageStrategy implementation
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const englishStrategy = createLanguageStrategy({
|
|
33
|
+
* code: 'EN',
|
|
34
|
+
* name: 'English',
|
|
35
|
+
* nativeName: 'English',
|
|
36
|
+
* getSectionTitle: (section) => getSectionTitle(section),
|
|
37
|
+
* getSectionDescription: (section) => getSectionDescription(section),
|
|
38
|
+
* formatPlugins: {
|
|
39
|
+
* markdown: markdownPlugin,
|
|
40
|
+
* asciidoc: asciidocPlugin
|
|
41
|
+
* }
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export function createLanguageStrategy(config) {
|
|
46
|
+
const { code, name, nativeName, getSectionTitle, getSectionDescription, formatPlugins } = config;
|
|
47
|
+
return {
|
|
48
|
+
code,
|
|
49
|
+
name,
|
|
50
|
+
nativeName,
|
|
51
|
+
getSectionTitle(section) {
|
|
52
|
+
return {
|
|
53
|
+
title: getSectionTitle(section),
|
|
54
|
+
section
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
getSectionDescription(section) {
|
|
58
|
+
return {
|
|
59
|
+
description: getSectionDescription(section),
|
|
60
|
+
section
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
getTemplateForFormat(section, format) {
|
|
64
|
+
return formatPlugins[format].getTemplate(section);
|
|
65
|
+
},
|
|
66
|
+
getWorkflowGuideForFormat(format) {
|
|
67
|
+
return formatPlugins[format].getWorkflowGuide();
|
|
68
|
+
},
|
|
69
|
+
getReadmeContentForFormat(projectName, format) {
|
|
70
|
+
return formatPlugins[format].getReadmeContent(projectName);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a format plugin from individual functions
|
|
76
|
+
*
|
|
77
|
+
* Helper function to create a FormatTemplatePlugin from separate functions.
|
|
78
|
+
* This is useful when importing functions from existing template modules.
|
|
79
|
+
*
|
|
80
|
+
* @param getTemplate - Function to get section template
|
|
81
|
+
* @param getWorkflowGuide - Function to get workflow guide
|
|
82
|
+
* @param getReadmeContent - Function to get README content
|
|
83
|
+
* @returns A FormatTemplatePlugin instance
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* const markdownPlugin = createFormatPlugin(
|
|
88
|
+
* getTemplateMarkdown,
|
|
89
|
+
* getWorkflowGuideMarkdown,
|
|
90
|
+
* getReadmeContentMarkdown
|
|
91
|
+
* );
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export function createFormatPlugin(getTemplate, getWorkflowGuide, getReadmeContent) {
|
|
95
|
+
return {
|
|
96
|
+
getTemplate,
|
|
97
|
+
getWorkflowGuide,
|
|
98
|
+
getReadmeContent
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates format plugins with fallback support
|
|
103
|
+
*
|
|
104
|
+
* For languages that don't have all format templates implemented,
|
|
105
|
+
* this function creates plugins that fall back to another language's
|
|
106
|
+
* templates (typically English) for missing formats.
|
|
107
|
+
*
|
|
108
|
+
* @param primaryPlugins - The primary format plugin (e.g., markdown in native language)
|
|
109
|
+
* @param fallbackPlugins - Fallback plugins for formats not natively supported
|
|
110
|
+
* @returns A complete set of format plugins
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* // French only has markdown templates, falls back to English for AsciiDoc
|
|
115
|
+
* const formatPlugins = createFormatPluginsWithFallback(
|
|
116
|
+
* { markdown: frenchMarkdownPlugin },
|
|
117
|
+
* { asciidoc: englishAsciidocPlugin }
|
|
118
|
+
* );
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export function createFormatPluginsWithFallback(primaryPlugins, fallbackPlugins) {
|
|
122
|
+
return {
|
|
123
|
+
markdown: primaryPlugins.markdown ?? fallbackPlugins.markdown,
|
|
124
|
+
asciidoc: primaryPlugins.asciidoc ?? fallbackPlugins.asciidoc
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=language-strategy-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-strategy-factory.js","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy-factory.ts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C,QAAQ;QAC7D,QAAQ,EAAE,cAAc,CAAC,QAAQ,IAAI,eAAe,CAAC,QAAQ;KAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* without modifying existing code
|
|
15
15
|
*/
|
|
16
16
|
import type { Arc42Section } from '../../types.js';
|
|
17
|
+
import type { OutputFormatCode } from '../formats/output-format-strategy.js';
|
|
17
18
|
/**
|
|
18
19
|
* Supported language codes
|
|
19
20
|
* Based on the arc42 template repository structure
|
|
@@ -66,9 +67,9 @@ export interface LanguageInfo {
|
|
|
66
67
|
* nativeName: 'English',
|
|
67
68
|
* getSectionTitle: (section) => ({ title: 'Introduction and Goals', section }),
|
|
68
69
|
* getSectionDescription: (section) => ({ description: 'Overview of requirements...', section }),
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
70
|
+
* getTemplateForFormat: (section, format) => '# Introduction and Goals\n\n...',
|
|
71
|
+
* getWorkflowGuideForFormat: (format) => '# arc42 Workflow Guide\n\n...',
|
|
72
|
+
* getReadmeContentForFormat: (projectName, format) => '# Project Documentation\n\n...'
|
|
72
73
|
* };
|
|
73
74
|
* ```
|
|
74
75
|
*/
|
|
@@ -88,25 +89,28 @@ export interface LanguageStrategy extends LanguageInfo {
|
|
|
88
89
|
*/
|
|
89
90
|
getSectionDescription(section: Arc42Section): SectionDescription;
|
|
90
91
|
/**
|
|
91
|
-
* Get the localized template content for a specific section
|
|
92
|
+
* Get the localized template content for a specific section in a given format
|
|
92
93
|
*
|
|
93
94
|
* @param section - The arc42 section identifier
|
|
94
|
-
* @
|
|
95
|
+
* @param format - The output format (markdown or asciidoc)
|
|
96
|
+
* @returns The full template for the section in the specified format
|
|
95
97
|
*/
|
|
96
|
-
|
|
98
|
+
getTemplateForFormat(section: Arc42Section, format: OutputFormatCode): string;
|
|
97
99
|
/**
|
|
98
|
-
* Get the localized workflow guide
|
|
100
|
+
* Get the localized workflow guide in a specific format
|
|
99
101
|
*
|
|
100
|
-
* @
|
|
102
|
+
* @param format - The output format (markdown or asciidoc)
|
|
103
|
+
* @returns The complete workflow guide in the specified format
|
|
101
104
|
*/
|
|
102
|
-
|
|
105
|
+
getWorkflowGuideForFormat(format: OutputFormatCode): string;
|
|
103
106
|
/**
|
|
104
|
-
* Get the localized README content
|
|
107
|
+
* Get the localized README content in a specific format
|
|
105
108
|
*
|
|
106
109
|
* @param projectName - Optional project name for README header
|
|
107
|
-
* @
|
|
110
|
+
* @param format - The output format (markdown or asciidoc)
|
|
111
|
+
* @returns The README content in the specified format
|
|
108
112
|
*/
|
|
109
|
-
|
|
113
|
+
getReadmeContentForFormat(projectName: string | undefined, format: OutputFormatCode): string;
|
|
110
114
|
}
|
|
111
115
|
/**
|
|
112
116
|
* Type guard to check if a value is a valid LanguageCode
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-strategy.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"language-strategy.d.ts","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E;;;GAGG;AACH,MAAM,MAAM,YAAY,GACpB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,CAAC;AAET;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,SAAS,YAAY,EAElD,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,OAAO,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,oCAAoC;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;;;;OAKG;IACH,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,YAAY,CAAC;IAErD;;;;;OAKG;IACH,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,kBAAkB,CAAC;IAEjE;;;;;;OAMG;IACH,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAE9E;;;;;OAKG;IACH,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAE5D;;;;;;OAMG;IACH,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC;CAC9F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAKpE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAQhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language-strategy.js","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"language-strategy.js","sourceRoot":"","sources":["../../../src/templates/locales/language-strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsBH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAA4B;IAC/D,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI;CACzD,CAAC;AAkGX;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,wBAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAkB,CAAC,CACvE,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAY;IAChD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC7C,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,2BAA2B,IAAI,uBAAuB,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,OAAO,UAA0B,CAAC;AACpC,CAAC"}
|
|
@@ -2,25 +2,30 @@
|
|
|
2
2
|
* Dutch Language Strategy
|
|
3
3
|
*
|
|
4
4
|
* Implements the LanguageStrategy interface for Dutch (Nederlands).
|
|
5
|
-
* Provides Dutch section titles, descriptions, and templates.
|
|
5
|
+
* Provides Dutch section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
|
|
6
6
|
*
|
|
7
7
|
* @module templates/locales/nl
|
|
8
8
|
*
|
|
9
|
-
* S.O.L.I.D Principles:
|
|
10
|
-
* - LSP (Liskov Substitution Principle): DutchStrategy is substitutable for LanguageStrategy
|
|
11
|
-
* - OCP (Open/Closed Principle): Implements interface without modifying it
|
|
12
|
-
*
|
|
13
9
|
* Design Patterns:
|
|
14
10
|
* - Strategy Pattern: Concrete implementation for Dutch language
|
|
11
|
+
* - Plugin Pattern: Format-specific templates are provided via plugins
|
|
12
|
+
*/
|
|
13
|
+
import { type FormatTemplatePlugin } from '../language-strategy-factory.js';
|
|
14
|
+
/**
|
|
15
|
+
* Dutch Markdown format plugin
|
|
16
|
+
*/
|
|
17
|
+
export declare const dutchMarkdownPlugin: FormatTemplatePlugin;
|
|
18
|
+
/**
|
|
19
|
+
* Dutch AsciiDoc format plugin
|
|
15
20
|
*/
|
|
16
|
-
|
|
21
|
+
export declare const dutchAsciidocPlugin: FormatTemplatePlugin;
|
|
17
22
|
/**
|
|
18
23
|
* Dutch Language Strategy
|
|
19
24
|
*
|
|
20
25
|
* Provides Dutch translations for arc42 documentation.
|
|
21
|
-
* Based on official arc42 Dutch template from vendor/arc42-template/NL/.
|
|
22
26
|
*/
|
|
23
|
-
export declare const dutchStrategy: LanguageStrategy;
|
|
27
|
+
export declare const dutchStrategy: import("../language-strategy.js").LanguageStrategy;
|
|
24
28
|
export { getSectionTitle, getSectionDescription } from './sections.js';
|
|
25
|
-
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';
|
|
26
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/nl/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/locales/nl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,oBAIjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,oBAIjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,oDAUxB,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"}
|
|
@@ -2,52 +2,44 @@
|
|
|
2
2
|
* Dutch Language Strategy
|
|
3
3
|
*
|
|
4
4
|
* Implements the LanguageStrategy interface for Dutch (Nederlands).
|
|
5
|
-
* Provides Dutch section titles, descriptions, and templates.
|
|
5
|
+
* Provides Dutch section titles, descriptions, and templates in both Markdown and AsciiDoc formats.
|
|
6
6
|
*
|
|
7
7
|
* @module templates/locales/nl
|
|
8
8
|
*
|
|
9
|
-
* S.O.L.I.D Principles:
|
|
10
|
-
* - LSP (Liskov Substitution Principle): DutchStrategy is substitutable for LanguageStrategy
|
|
11
|
-
* - OCP (Open/Closed Principle): Implements interface without modifying it
|
|
12
|
-
*
|
|
13
9
|
* Design Patterns:
|
|
14
10
|
* - Strategy Pattern: Concrete implementation for Dutch language
|
|
11
|
+
* - Plugin Pattern: Format-specific templates are provided via plugins
|
|
15
12
|
*/
|
|
16
13
|
import { getSectionTitle, getSectionDescription } from './sections.js';
|
|
17
|
-
import { getTemplate, getWorkflowGuide, getReadmeContent } from './templates.js';
|
|
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
|
+
* Dutch Markdown format plugin
|
|
19
|
+
*/
|
|
20
|
+
export const dutchMarkdownPlugin = createFormatPlugin(getTemplateMarkdown, getWorkflowGuideMarkdown, getReadmeContentMarkdown);
|
|
21
|
+
/**
|
|
22
|
+
* Dutch AsciiDoc format plugin
|
|
23
|
+
*/
|
|
24
|
+
export const dutchAsciidocPlugin = createFormatPlugin(getTemplateAsciidoc, getWorkflowGuideAsciidoc, getReadmeContentAsciidoc);
|
|
18
25
|
/**
|
|
19
26
|
* Dutch Language Strategy
|
|
20
27
|
*
|
|
21
28
|
* Provides Dutch translations for arc42 documentation.
|
|
22
|
-
* Based on official arc42 Dutch template from vendor/arc42-template/NL/.
|
|
23
29
|
*/
|
|
24
|
-
export const dutchStrategy = {
|
|
30
|
+
export const dutchStrategy = createLanguageStrategy({
|
|
25
31
|
code: 'NL',
|
|
26
32
|
name: 'Dutch',
|
|
27
33
|
nativeName: 'Nederlands',
|
|
28
|
-
getSectionTitle
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
getSectionDescription(section) {
|
|
35
|
-
return {
|
|
36
|
-
description: getSectionDescription(section),
|
|
37
|
-
section
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
getTemplate(section) {
|
|
41
|
-
return getTemplate(section);
|
|
42
|
-
},
|
|
43
|
-
getWorkflowGuide() {
|
|
44
|
-
return getWorkflowGuide();
|
|
45
|
-
},
|
|
46
|
-
getReadmeContent(projectName) {
|
|
47
|
-
return getReadmeContent(projectName);
|
|
34
|
+
getSectionTitle,
|
|
35
|
+
getSectionDescription,
|
|
36
|
+
formatPlugins: {
|
|
37
|
+
markdown: dutchMarkdownPlugin,
|
|
38
|
+
asciidoc: dutchAsciidocPlugin
|
|
48
39
|
}
|
|
49
|
-
};
|
|
40
|
+
});
|
|
50
41
|
// Re-export for convenience
|
|
51
42
|
export { getSectionTitle, getSectionDescription } from './sections.js';
|
|
52
|
-
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';
|
|
53
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/nl/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/templates/locales/nl/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,mBAAmB,GAAyB,kBAAkB,CACzE,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAyB,kBAAkB,CACzE,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,sBAAsB,CAAC;IAClD,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,YAAY;IACxB,eAAe;IACf,qBAAqB;IACrB,aAAa,EAAE;QACb,QAAQ,EAAE,mBAAmB;QAC7B,QAAQ,EAAE,mBAAmB;KAC9B;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
|
+
* Dutch Templates - AsciiDoc Format
|
|
3
|
+
*
|
|
4
|
+
* Contains all arc42 section templates in Dutch using AsciiDoc syntax.
|
|
5
|
+
* Based on the official arc42 templates from vendor/arc42-template.
|
|
6
|
+
*
|
|
7
|
+
* @module templates/locales/nl/templates-asciidoc
|
|
8
|
+
*/
|
|
9
|
+
import type { Arc42Section } from '../../../types.js';
|
|
10
|
+
/**
|
|
11
|
+
* Get the Dutch AsciiDoc template for a specific section
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTemplate(section: Arc42Section): string;
|
|
14
|
+
/**
|
|
15
|
+
* Get the Dutch workflow guide in AsciiDoc format
|
|
16
|
+
*/
|
|
17
|
+
export declare function getWorkflowGuide(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get the Dutch 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/nl/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"}
|