In django, there is a PasswordChangeForm for the password change screen, which also includes the default check process, but I wanted to make the input check error message and annotations in Japanese. I searched for internationalization and multilingualization of messages, but it didn't correspond to a good method, but it should have only changed the language setting of settings.py.
inadvertently.
Rather, the language setting of django is amazing.
Shame for those who make the same mistake.
If the language setting is English
settings.py
LANGUAGE_CODE = 'en-us'
When the language setting is Japanese
setttings.py
LANGUAGE_CODE = 'ja'
https://simpleisbetterthancomplex.com/series/2017/09/25/a-complete-beginners-guide-to-django-part-4.html
Recommended Posts