wxpython interface multi-language real-time switch

I have a rather complicated wxpython interface, and I set up two buttons to switch between different languages, using i18n. When I click the button, the language environment has changed, but I don’t know how to refresh the interface or change the text

hello, in wxdemo there is an example showing this