How to translate sessionExpiredCaption

How to translate sessionExpiredCaption when expried session? , like that:
image

I tried change message: sessionExpiredCaption and sessionExpiredMessage, but it not working. Help me!
Thanks and regards,

You can extend JmixVaadinServlet

class TestVaadinServlet(applicationContext: ApplicationContext) : JmixVaadinServlet(applicationContext) {

    override fun servletInitialized() {
        super.servletInitialized()

        service.systemMessagesProvider = SystemMessagesProvider {
            val messages = CustomizedSystemMessages()
            messages.sessionExpiredMessage = "Test Message"
            messages.sessionExpiredCaption = "Session Caption"
            messages
        }
    }
}

And add bean:

    @Bean
    @Primary
    open fun vaadinServlet(): VaadinServlet {
        return TestVaadinServlet(applicationContext)
    }

image

1 Like

Thank you for your answer, let me try