Refactor translation files and update import syntax: Converted CommonJS to ES module syntax in translate-i18n.js. Enhanced English translation file with new phrases for profile, order summary, and settings sections, while improving existing translations for clarity and consistency.

This commit is contained in:
sebseb7
2025-07-16 08:24:09 +02:00
parent 9ffbd5b84e
commit e02b18e17f
2 changed files with 81 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const OpenAI = require('openai');
import fs from 'fs';
import path from 'path';
import OpenAI from 'openai';
// Configuration
const OPENAI_API_KEY = process.env.OPENAI_API_KEY;
@@ -366,11 +366,11 @@ async function main() {
}
// Run the script
if (require.main === module) {
if (import.meta.url === `file://${process.argv[1]}`) {
main();
}
module.exports = {
export {
translateToEnglish,
translateToOtherLanguages,
readTranslationFile,