Skip to content

Commit

Permalink
translate armor slot names
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Jan 8, 2025
1 parent 50fd894 commit 36687fc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions resolvers/itemResolver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,8 @@ export default {
}
},
ItemArmorSlotLocked: {
name(data) {
if (data.name) return data.name;
return data.type;
name(data, args, context, info) {
return context.data.worker.handbook.getLocale(data.name, context, info);
},
zones(data, args, context, info) {
return context.data.worker.handbook.getLocale(data.zones, context, info);
Expand All @@ -249,9 +248,8 @@ export default {
},
},
ItemArmorSlotOpen: {
name(data) {
if (data.name) return data.name;
return data.type;
name(data, args, context, info) {
return context.data.worker.handbook.getLocale(data.name, context, info);
},
zones(data, args, context, info) {
return context.data.worker.handbook.getLocale(data.zones, context, info);
Expand Down

0 comments on commit 36687fc

Please sign in to comment.