LibreChat/config/translations/file.ts
Danny Avila 2ec821ea4c
🌍 : Updated Translations & AI Generation Scripts (#2666)
* chore: bun scripts

* feat: comparisons

* refactor: move scripts to own folder

* feat: generated prompts script and Es output

* feat: generated prompts

* created prompts

* feat: Russian localization prompts

* translation setup

* additional ES translations

* additional ES translations

* translation services

* feat: additional translations

* fix regex for parseParamPrompt

* RU translations

* remove stores from git

* update gitignore

* update gitignore

* ZH translations

* move gen prompt output location

* ZH traditional translations

* AR translations

* chore: rename

* JP

* cleanup scripts

* add additional instruction prompts

* fix translation prompt and add DE

* FR translations (rate limited so not complete)

* chore: update translation comparisons

* chore: remove unused AnthropicClient changes

* refactor: use compositional styling for archive/delete buttons, fix manage archive table styling
2024-05-10 15:56:25 -04:00

21 lines
609 B
TypeScript

import path from 'path';
import main from './main';
async function processFile(baseFilePath: string, compareFilename: string) {
await main(baseFilePath, compareFilename);
}
const args = process.argv.slice(-1);
if (args.length !== 1) {
console.log(process.argv, args);
console.error('Usage: bun file.ts <compareFilename>');
process.exit(1);
}
const languagesDir = './client/src/localization/languages';
const baseFilePath = path.resolve(languagesDir, 'Eng.ts');
const compareFilename = path.resolve(languagesDir, `${args[0]}.ts`);
processFile(baseFilePath, compareFilename).catch(console.error);