Refactor Encounters, use new translations format for save space

This commit is contained in:
Roman Jaroš 2025-04-17 19:04:49 +02:00
parent 7d9f58650a
commit 908f45eb9b
59 changed files with 103852 additions and 58396 deletions

View file

@ -0,0 +1,10 @@
import { TolgeeKey } from '../../types';
import { writeAlsoFemaleTranslation } from '../translation';
export const writeBook = (tolgeeKey: TolgeeKey): string => {
let luaRecord = '';
luaRecord += `addon.data.book["${tolgeeKey.keyName}"] = {\n`;
luaRecord += writeAlsoFemaleTranslation(tolgeeKey.translations);
luaRecord += `}\n`;
return luaRecord;
};