feat(C-01): i18n main commands — 148 translatable keys
Phase 3: Migrate Component.literal() in all remaining command files. - NPCCommand (34), CellCommand (33), SocialCommand (16), CollarCommand (25), KeyCommand (18), BountyCommand (6), KidnapSetCommand (2), CaptivityDebugCommand (7), InventorySubCommand (3), TestAnimSubCommand (2), MasterTestSubCommand (7), DebtSubCommand (8) - Strip all section sign color codes, use .withStyle(ChatFormatting) - 148 new keys in en_us.json (command.tiedup.*) - Debug/dynamic strings intentionally kept as literal
This commit is contained in:
@@ -87,8 +87,8 @@ public class TestAnimSubCommand {
|
||||
.getSource()
|
||||
.sendSuccess(
|
||||
() ->
|
||||
Component.literal(
|
||||
"Playing animation '" + anim + "' on " + name
|
||||
Component.translatable(
|
||||
"command.tiedup.testanim.playing", anim, name
|
||||
),
|
||||
false
|
||||
);
|
||||
@@ -116,7 +116,7 @@ public class TestAnimSubCommand {
|
||||
context
|
||||
.getSource()
|
||||
.sendSuccess(
|
||||
() -> Component.literal("Stopped animation on " + name),
|
||||
() -> Component.translatable("command.tiedup.testanim.stopped", name),
|
||||
false
|
||||
);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user