Merged in fix/Lokalise-EN-edits-2025-10 (pull request #2962)

Fix/Lokalise English manual updates

* fix: update English keys


Approved-by: Linus Flood
This commit is contained in:
Matilda Landström
2025-10-16 15:04:58 +00:00
parent 038211bf09
commit bacdc669a3
37 changed files with 58 additions and 80 deletions

View File

@@ -63,7 +63,8 @@ export const editProfile = protectedServerActionProcedure
message: issue.message,
})),
message: intl.formatMessage({
defaultMessage: "An error occured when trying to update profile.",
defaultMessage:
"An error occurred when trying to update your profile.",
}),
status: Status.error,
}
@@ -83,7 +84,8 @@ export const editProfile = protectedServerActionProcedure
data: input,
issues: [],
message: intl.formatMessage({
defaultMessage: "An error occured when trying to update profile.",
defaultMessage:
"An error occurred when trying to update your profile.",
}),
status: Status.error,
}
@@ -131,8 +133,9 @@ export const editProfile = protectedServerActionProcedure
}
if (payload.data[typedKey] !== profile[typedKey]) {
// @ts-ignore
body[typedKey] = payload.data[typedKey]
if (typedKey === "language") {
body[typedKey] = payload.data[typedKey]
} else body[typedKey] = payload.data[typedKey]
}
})
@@ -176,7 +179,8 @@ export const editProfile = protectedServerActionProcedure
data: input,
issues: [],
message: intl.formatMessage({
defaultMessage: "An error occured when trying to update profile.",
defaultMessage:
"An error occurred when trying to update your profile.",
}),
status: Status.error,
}
@@ -184,7 +188,7 @@ export const editProfile = protectedServerActionProcedure
const json = await apiResponse.json()
if (json.errors?.length) {
json.errors.forEach((error: any) => {
json.errors.forEach((error: unknown) => {
logger.warn(
"editProfile api patch errors (not aborting)",
JSON.stringify({
@@ -212,7 +216,8 @@ export const editProfile = protectedServerActionProcedure
message: issue.message,
})),
message: intl.formatMessage({
defaultMessage: "An error occured when trying to update profile.",
defaultMessage:
"An error occurred when trying to update your profile.",
}),
status: Status.error,
}