mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 15:18:02 +00:00
Translate displayMessage events via events_display keys (#2847)
If this PR fixes an issue, link it below. If not, delete these two lines. Resolves #1225 ## Description: Replace all raw displayMessage strings with events_display.* keys + params and add the new English translations in resources/ lang/en.json so EventsDisplay can translate them. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: aotumuri --------- Co-authored-by: Ryan <7389646+ryanbarlow97@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Ryan
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
778b6867a4
commit
8235da9335
@@ -61,9 +61,11 @@ export class SAMMissileExecution implements Execution {
|
||||
);
|
||||
if (result === true) {
|
||||
this.mg.displayMessage(
|
||||
`Missile intercepted ${this.target.type()}`,
|
||||
"events_display.missile_intercepted",
|
||||
MessageType.SAM_HIT,
|
||||
this._owner.id(),
|
||||
undefined,
|
||||
{ unit: this.target.type() },
|
||||
);
|
||||
this.active = false;
|
||||
this.target.delete(true, this._owner);
|
||||
|
||||
Reference in New Issue
Block a user