Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix customer forms i18n

NyanKiyoshi0e1e4377a8ca
diff --git a/saleor/dashboard/customer/forms.py b/saleor/dashboard/customer/forms.py
index bf139cf654..67690175ce 100644
--- a/saleor/dashboard/customer/forms.py
+++ b/saleor/dashboard/customer/forms.py
@@ -45,6 +45,13 @@ class CustomerForm(forms.ModelForm):
class Meta:
model = User
fields = ['email', 'is_active', 'note']
+ labels = {
+ 'email': pgettext_lazy(
+ 'Customer form: email address field', 'Email'),
+ 'is_active': pgettext_lazy(
+ 'Customer form: is active toggle', 'User is active'),
+ 'note': pgettext_lazy(
+ 'Customer form: customer note field', 'Notes')}
class CustomerNoteForm(forms.ModelForm):