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/speech.ts
Normal file
10
.support/utils/entities/speech.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { TolgeeKey } from '../../types';
|
||||
import { normalize, writeMaleTranslation } from '../translation';
|
||||
|
||||
export const writeSpeech = (tolgeeKey: TolgeeKey): string => {
|
||||
let luaRecord = '';
|
||||
luaRecord += `addon.data.speech["${normalize(tolgeeKey.keyDescription)}_${tolgeeKey.keyName}"] = {\n`;
|
||||
luaRecord += writeMaleTranslation(tolgeeKey.translations);
|
||||
luaRecord += `}\n`;
|
||||
return luaRecord;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue