Skip to content

Commit

Permalink
triggers build: i18n: remove bad translations from caloric 1 beacon (q…
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 23, 2023
1 parent b02be6f commit 26a266e
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions 06-ew/raid/p12s.js
Original file line number Diff line number Diff line change
Expand Up @@ -3396,23 +3396,34 @@ Options.Triggers.push({
data.caloric1Mine = undefined;
},
delaySeconds: 1,
alertText: (data, _matches, output) => {
response: (data, _matches, output) => {
// cactbot-builtin-response
output.responseOutputStrings = {
noBeacon: {
en: 'Initial Fire: ${player1}, ${player2}',
},
beacon: {
en: 'Initial Fire (w/ ${partner})',
de: 'Initial Feuer (mit ${partner})',
ja: '自分に初炎 (${partner})',
cn: '火标记点名 (和 ${partner})',
ko: '첫 불 대상자 (+ ${partner})',
},
};
if (data.caloric1First.length !== 2)
return;
const index = data.caloric1First.indexOf(data.me);
if (index < 0)
return;
return {
infoText: output.noBeacon({
player1: data.ShortName(data.caloric1First[0]),
player2: data.ShortName(data.caloric1First[1]),
}),
};
const partner = index === 0 ? 1 : 0;
return output.text({ partner: data.ShortName(data.caloric1First[partner]) });
},
outputStrings: {
text: {
en: 'Initial Fire (w/ ${partner})',
de: 'Initial Feuer (mit ${partner})',
ja: '自分に初炎 (${partner})',
cn: '火标记点名 (和 ${partner})',
ko: '첫 불 대상자 (+ ${partner})',
},
return {
alertText: output.beacon({ partner: data.ShortName(data.caloric1First[partner]) }),
};
},
},
{
Expand Down

0 comments on commit 26a266e

Please sign in to comment.