Perspective Components Language

How can I change the text language in Perspective Components, such as the English text in the red arrow in the diagram below, to French or Spanish?

set session.props.locale
2020-06-23_8-29-10

Alternatively, you should be able to change the Project locale in the project properties.

But when I set it up this way, the English inside the component does not change, such as the language of the header