Refactor Encounters, use new translations format for save space
This commit is contained in:
parent
7d9f58650a
commit
908f45eb9b
59 changed files with 103852 additions and 58396 deletions
10
.support/utils/entities/book.ts
Normal file
10
.support/utils/entities/book.ts
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue