Skip to content

Commit 685824c

Browse files
SarahW91tmorrell
authored andcommitted
ui(translations): mark message as translatable
1 parent 65315be commit 685824c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

invenio_rdm_records/resources/errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
from flask import g
1414
from flask_resources import HTTPJSONException as _HTTPJSONException
1515
from flask_resources.serializers.json import JSONEncoder
16+
from invenio_i18n import lazy_gettext as _
1617

1718

1819
class HTTPJSONValidationWithMessageAsListException(_HTTPJSONException):
1920
"""HTTP exception serializing to JSON where errors are in a list."""
2021

21-
description = "A validation error occurred."
22+
description = _("A validation error occurred.")
2223

2324
def __init__(self, exception):
2425
"""Constructor."""

0 commit comments

Comments
 (0)