Remove responsive speech frame width, fix generator
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
All checks were successful
forgejo/Czech Quests/addon/pipeline/head This commit looks good
This commit is contained in:
parent
ab820ccf7e
commit
d1fa5a6bc7
7 changed files with 15 additions and 12069 deletions
|
@ -92,7 +92,12 @@ const splitFirst = (text: string, delimiter: string) => {
|
|||
|
||||
// for each page from tolgee
|
||||
for (const tolgeeKey of translations) {
|
||||
addonData[tolgeeKey.keyName] = {
|
||||
let key = tolgeeKey.keyName;
|
||||
if (key.startsWith('n')) {
|
||||
key = key.split('_')[1];
|
||||
}
|
||||
|
||||
addonData[key] = {
|
||||
...addonData[tolgeeKey.keyName],
|
||||
...(tolgeeKey.keyNamespace === 'name' && {
|
||||
names: [
|
||||
|
@ -193,7 +198,8 @@ const splitFirst = (text: string, delimiter: string) => {
|
|||
if (czechQuest.speeches) {
|
||||
let luaQuestRecord = '';
|
||||
const key = splitFirst(normalizeTranslation(czechQuest.speeches?.[2]) ?? '', ':').trim();
|
||||
luaQuestRecord += `addon.data.speech["${key}"] = {\n`;
|
||||
const npcNameKey = normalizeTranslation(czechQuest.name).trim();
|
||||
luaQuestRecord += `addon.data.speech["${npcNameKey}_${key}"] = {\n`;
|
||||
luaQuestRecord += '\ttext = "' + normalizeTranslation(czechQuest.speeches?.[0]).trim() + '", \n';
|
||||
luaQuestRecord += `}\n`;
|
||||
fs.appendFileSync(fileName, luaQuestRecord, 'utf8');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue