Skip to content

Commit ddc73a5

Browse files
committed
feat(configuration): enhance configuration files with new editor, AI, and build settings
1 parent 6901fa7 commit ddc73a5

File tree

9 files changed

+199
-18
lines changed

9 files changed

+199
-18
lines changed

docs/de/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/en/configuration.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;
@@ -300,6 +320,7 @@ Settings related to content handling within the application, including directory
300320

301321
- _Type_: `string[]`
302322
- _Default_: `['src']`
323+
- _Example_: `['src', '../../ui-library', require.resolve("@my-package/content")]`
303324
- _Description_: The directory path where content is stored.
304325

305326
- **dictionariesDir**:

docs/es/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/hi/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/it/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/ja/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/ko/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

docs/pt/configuration.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,21 @@ const config: IntlayerConfig = {
2929
locales: [Locales.ENGLISH],
3030
},
3131
content: {
32-
typesDir: "content/types",
32+
contentDir: ["src", "../ui-library"],
3333
},
3434
middleware: {
3535
noPrefix: false,
3636
},
37+
editor: {
38+
applicationURL: "https://example.com",
39+
},
40+
ai: {
41+
apiKey: process.env.OPENAI_API_KEY,
42+
applicationContext: "This is a test application",
43+
},
44+
build: {
45+
activateDynamicImport: true,
46+
},
3747
};
3848

3949
export default config;
@@ -48,11 +58,21 @@ const config = {
4858
locales: [Locales.ENGLISH],
4959
},
5060
content: {
51-
typesDir: "content/types",
61+
contentDir: ["src", "../ui-library"],
5262
},
5363
middleware: {
5464
noPrefix: false,
5565
},
66+
editor: {
67+
applicationURL: "https://example.com",
68+
},
69+
ai: {
70+
apiKey: process.env.OPENAI_API_KEY,
71+
applicationContext: "This is a test application",
72+
},
73+
build: {
74+
activateDynamicImport: true,
75+
},
5676
};
5777

5878
module.exports = config;

0 commit comments

Comments
 (0)