Skip to content

Commit

Permalink
fix user banned translation order
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Dec 5, 2023
1 parent d87e620 commit 36173ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions server/src/core/server/locales/en-US/common.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,6 @@ notifications-dsaReportDecisionMade-body-withInfo =
common-accountDeleted =
User account was deleted.
common-userBanned =
User was banned.
8 changes: 4 additions & 4 deletions server/src/core/server/services/users/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1471,8 +1471,8 @@ export async function ban(
const bundle = i18n.getBundle(tenant.locale);
const tranlsatedExplanation = translate(
bundle,
"common-userBanned",
"User banned."
"User was banned.",
"common-userBanned"
);
const rejectionReason = {
code: GQLREJECTION_REASON_CODE.OTHER,
Expand Down Expand Up @@ -1706,8 +1706,8 @@ export async function updateUserBan(
const bundle = i18n.getBundle(tenant.locale);
const detailedExplanation = translate(
bundle,
"common-userBanned",
"User was banned."
"User was banned.",
"common-userBanned"
);
await rejector.add({
tenantID: tenant.id,
Expand Down

0 comments on commit 36173ea

Please sign in to comment.