Language change is not working in edit account page for federated user

Keycloak provides an option to change the languages on the Edit account page but when I change the language it does not change it. Right now it just has messages_en.properties I have added the new one for de. But adding a new file in resources/messages also does not work for the federated users. I am using Keycloak 20.0.1

Does anyone have an idea about it? Many Thanks!