Skip to content

Commit 7aeae80

Browse files
committed
🐛 Refactor user messages to use common_library.user_messages for consistency
1 parent cd9185b commit 7aeae80

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
from typing import Final
22

3-
MSG_AUTH_NOT_AVAILABLE: Final[str] = "Authentication service is temporary unavailable"
3+
from common_library.user_messages import user_message
4+
5+
MSG_AUTH_NOT_AVAILABLE: Final[str] = user_message(
6+
"Authentication service is temporary unavailable"
7+
)
48

59
PERMISSION_PRODUCT_LOGIN_KEY: Final[str] = "product.login"
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from typing import Final
22

3-
MSG_PRICE_NOT_DEFINED_ERROR: Final[
4-
str
5-
] = "No payments are accepted until this product has a price"
3+
from common_library.user_messages import user_message
64

7-
MSG_BILLING_DETAILS_NOT_DEFINED_ERROR: Final[str] = (
5+
MSG_PRICE_NOT_DEFINED_ERROR: Final[str] = user_message(
6+
"No payments are accepted until this product has a price"
7+
)
8+
9+
MSG_BILLING_DETAILS_NOT_DEFINED_ERROR: Final[str] = user_message(
810
"Payments cannot be processed: Required billing details (e.g. country for tax) are missing from your account."
911
"Please contact support to resolve this configuration issue."
1012
)

0 commit comments

Comments
 (0)