added translate textadmin excel

This commit is contained in:
Arwid Thornström
2025-11-13 22:37:01 +01:00
parent bfad35a217
commit 0d79e2f2b5
6 changed files with 1179 additions and 7 deletions
+22
View File
@@ -114,6 +114,18 @@ module.exports = {
localhost_url: '',
localhost_username: '',
localhost_password: '',
llm_api_keys: {
gemini_api_key: '',
openai_api_key: '',
},
};
}
// Ensure llm_api_keys exists in existing configs
if (!config.llm_api_keys) {
config.llm_api_keys = {
gemini_api_key: '',
openai_api_key: '',
};
}
@@ -149,6 +161,16 @@ module.exports = {
initial: config.localhost_password,
}).run();
config.llm_api_keys.gemini_api_key = await new Input({
message: `If you want to use Gemini AI features, please insert\nyour Gemini API key. Otherwise leave blank >`,
initial: config.llm_api_keys.gemini_api_key,
}).run();
config.llm_api_keys.openai_api_key = await new Input({
message: `If you want to use OpenAI features, please insert\nyour OpenAI API key. Otherwise leave blank >`,
initial: config.llm_api_keys.openai_api_key,
}).run();
print.info(`
${JSON.stringify(config)}