Rename translation key

So that it can be used for more general purposes.
This commit is contained in:
David Cook
2024-04-23 13:02:54 +10:00
parent d0f683d279
commit b5cdee3d65
2 changed files with 6 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ export default class extends Controller {
console.error(reflex + ":\n " + error);
// show error message
alert(I18n.t("errors.stimulus_reflex_error"));
alert(I18n.t("errors.general_error.message"));
}
reflexForbidden(element, reflex, noop, reflexId) {

View File

@@ -175,14 +175,15 @@ en:
message_html: "<p>The change you wanted was rejected. Maybe you tried to change something you don't have access to.
<br><h3><a href='/' >Return home</a></h3>
</p>"
stimulus_reflex_error: "We're sorry, but something went wrong.
general_error:
message: "We're sorry, but something went wrong.
This might be a temporary problem, so please try again or reload the page.
This might be a temporary problem, so please try again or reload the page.
We record all errors and may be working on a fix.
We record all errors and may be working on a fix.
If the problem persists or is urgent, please contact us."
If the problem persists or is urgent, please contact us."
stripe:
error_code:
incorrect_number: "The card number is incorrect."