Skip to content

Commit 9a3daa9

Browse files
committed
live-demo: turn off translations plugin on live demo
1 parent 379af4b commit 9a3daa9

2 files changed

Lines changed: 35 additions & 35 deletions

File tree

dev-demo/resources/background_jobs.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ export default {
9494
},
9595
],
9696
plugins: [
97-
new BackgroundJobsPlugin({
98-
createdAtField: 'created_at',
99-
finishedAtField: 'finished_at',
100-
startedByField: 'started_by',
101-
stateField: 'state',
102-
progressField: 'progress',
103-
statusField: 'status',
104-
nameField: 'name',
105-
jobHandlerField: 'job_handler_name',
106-
})
97+
// new BackgroundJobsPlugin({
98+
// createdAtField: 'created_at',
99+
// finishedAtField: 'finished_at',
100+
// startedByField: 'started_by',
101+
// stateField: 'state',
102+
// progressField: 'progress',
103+
// statusField: 'status',
104+
// nameField: 'name',
105+
// jobHandlerField: 'job_handler_name',
106+
// })
107107
]
108108
} as AdminForthResourceInput;

live-demo/app/resources/translations.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,35 @@ const translationsResource: AdminForthResourceInput = {
3232
},
3333
},
3434
plugins: [
35-
new I18nPlugin({
36-
supportedLanguages: ['en', 'uk', 'ja', 'fr', 'de'], // names of the fields in the resource which will store translations
37-
translationFieldNames: {
38-
en: 'en_string',
39-
uk: 'uk_string',
40-
ja: 'ja_string',
41-
fr: 'fr_string',
42-
de: 'de_string',
43-
},
35+
// new I18nPlugin({
36+
// supportedLanguages: ['en', 'uk', 'ja', 'fr', 'de'], // names of the fields in the resource which will store translations
37+
// translationFieldNames: {
38+
// en: 'en_string',
39+
// uk: 'uk_string',
40+
// ja: 'ja_string',
41+
// fr: 'fr_string',
42+
// de: 'de_string',
43+
// },
4444

45-
// name of the field which will store the category of the string
46-
// this helps to categorize strings and deliver them efficiently
47-
categoryFieldName: 'category',
45+
// // name of the field which will store the category of the string
46+
// // this helps to categorize strings and deliver them efficiently
47+
// categoryFieldName: 'category',
4848

49-
// optional field to store the source (e.g. source file name)
50-
sourceFieldName: 'source',
49+
// // optional field to store the source (e.g. source file name)
50+
// sourceFieldName: 'source',
5151

52-
// optional field store list of completed translations
53-
// will hel to filter out incomplete translations
54-
completedFieldName: 'completedLangs',
52+
// // optional field store list of completed translations
53+
// // will hel to filter out incomplete translations
54+
// completedFieldName: 'completedLangs',
5555

56-
completeAdapter: new CompletionAdapterOpenAIResponses({
57-
openAiApiKey: process.env.OPENAI_API_KEY as string,
58-
model: 'gpt-5.4-mini',
59-
extraRequestBodyParameters: {
60-
temperature: 0.5,
61-
},
62-
}),
63-
}),
56+
// completeAdapter: new CompletionAdapterOpenAIResponses({
57+
// openAiApiKey: process.env.OPENAI_API_KEY as string,
58+
// model: 'gpt-5.4-mini',
59+
// extraRequestBodyParameters: {
60+
// temperature: 0.5,
61+
// },
62+
// }),
63+
// }),
6464

6565
],
6666
options: {

0 commit comments

Comments
 (0)