Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit 0235ad1

Browse files
committed
feat(cms): add IND language for page & blog
1 parent c48eeda commit 0235ad1

8 files changed

Lines changed: 58 additions & 4 deletions

File tree

apps/cms/src/api/blog/content-types/blog/schema.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"info": {
55
"singularName": "blog",
66
"pluralName": "blogs",
7-
"displayName": "Blog"
7+
"displayName": "Blog",
8+
"description": ""
89
},
910
"options": {
1011
"draftAndPublish": true
@@ -26,6 +27,17 @@
2627
"preset": "standard"
2728
},
2829
"customField": "plugin::ckeditor.CKEditor"
30+
},
31+
"title_ind": {
32+
"type": "string"
33+
},
34+
"content_ind": {
35+
"type": "customField",
36+
"options": {
37+
"output": "HTML",
38+
"preset": "standard"
39+
},
40+
"customField": "plugin::ckeditor.CKEditor"
2941
}
3042
}
3143
}

apps/cms/src/api/page/content-types/page/schema.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@
2828
"preset": "standard"
2929
},
3030
"customField": "plugin::ckeditor.CKEditor"
31+
},
32+
"title_ind": {
33+
"type": "string"
34+
},
35+
"content_ind": {
36+
"type": "customField",
37+
"options": {
38+
"output": "HTML",
39+
"preset": "standard"
40+
},
41+
"customField": "plugin::ckeditor.CKEditor"
3142
}
3243
}
3344
}

apps/cms/src/extensions/documentation/documentation/1.0.0/full_documentation.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"name": "Apache 2.0",
1515
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
1616
},
17-
"x-generation-date": "2024-04-09T16:41:47.428Z"
17+
"x-generation-date": "2024-04-09T17:24:20.176Z"
1818
},
1919
"x-strapi-config": {
2020
"plugins": [],
@@ -103,6 +103,12 @@
103103
},
104104
"content_en": {
105105
"type": "string"
106+
},
107+
"title_ind": {
108+
"type": "string"
109+
},
110+
"content_ind": {
111+
"type": "string"
106112
}
107113
}
108114
}
@@ -169,6 +175,12 @@
169175
"content_en": {
170176
"type": "string"
171177
},
178+
"title_ind": {
179+
"type": "string"
180+
},
181+
"content_ind": {
182+
"type": "string"
183+
},
172184
"createdAt": {
173185
"type": "string",
174186
"format": "date-time"
@@ -1366,6 +1378,12 @@
13661378
},
13671379
"content_en": {
13681380
"type": "string"
1381+
},
1382+
"title_ind": {
1383+
"type": "string"
1384+
},
1385+
"content_ind": {
1386+
"type": "string"
13691387
}
13701388
}
13711389
}
@@ -1433,6 +1451,12 @@
14331451
"content_en": {
14341452
"type": "string"
14351453
},
1454+
"title_ind": {
1455+
"type": "string"
1456+
},
1457+
"content_ind": {
1458+
"type": "string"
1459+
},
14361460
"createdAt": {
14371461
"type": "string",
14381462
"format": "date-time"

apps/web/src/lib/api/generated/core/request.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type { ApiResult } from './ApiResult';
1212
import { CancelablePromise } from './CancelablePromise';
1313
import type { OnCancel } from './CancelablePromise';
1414
import type { OpenAPIConfig } from './OpenAPI';
15-
import { ANY } from '@/lib/types';
1615

1716
export const isDefined = <T>(value: T | null | undefined): value is Exclude<T, null | undefined> => {
1817
return value !== undefined && value !== null;
@@ -218,7 +217,7 @@ export const sendRequest = async <T>(
218217
withCredentials: config.WITH_CREDENTIALS,
219218
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
220219
cancelToken: source.token,
221-
} as ANY;
220+
} as any;
222221

223222
onCancel(() => source.cancel('The user aborted a request.'));
224223

apps/web/src/lib/api/generated/models/Blog.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export type Blog = {
66
title_en?: string;
77
slug: string;
88
content_en?: string;
9+
title_ind?: string;
10+
content_ind?: string;
911
createdAt?: string;
1012
updatedAt?: string;
1113
publishedAt?: string;

apps/web/src/lib/api/generated/models/BlogRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export type BlogRequest = {
77
title_en?: string;
88
slug: string;
99
content_en?: string;
10+
title_ind?: string;
11+
content_ind?: string;
1012
};
1113
};
1214

apps/web/src/lib/api/generated/models/Page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export type Page = {
66
title_en: string;
77
slug: string;
88
content_en?: string;
9+
title_ind?: string;
10+
content_ind?: string;
911
createdAt?: string;
1012
updatedAt?: string;
1113
publishedAt?: string;

apps/web/src/lib/api/generated/models/PageRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export type PageRequest = {
77
title_en: string;
88
slug: string;
99
content_en?: string;
10+
title_ind?: string;
11+
content_ind?: string;
1012
};
1113
};
1214

0 commit comments

Comments
 (0)