Kitware / trame

Trame lets you weave various components and technologies into a Web Application solely written in Python.

Home Page:https://kitware.github.io/trame/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some bugs in 32_i18n.py

hanjiezhou opened this issue · comments

Hello

I have been looking at the internationalization example that you have posted in the repository (here: https://github.com/Kitware/trame/blob/master/examples/validation/core/32_i18n.py) of trame but, or I am not understanding it well , or does not work properly.

I understand that the idea is that the vuetify.VSelect() label has to change based on the selected language, but it doesn't work for me. I understand that the value of the variable $vuetify.lang.t('title') should return the title based on the language that is selected, but I don't see that working either. Do I misunderstand the idea of the example or is it not working properly? Is it necessary to use a callback to update the selector tag?

I added the following lines, below line 57:

toolbar.add_child("{{ $vuetify.lang.t('title') }}")
toolbar.add_child("{{ $vuetify.lang.t('selector') }}")
but, as the following images show, the text was not updated:
Captura de pantalla de 2024-02-02 09-26-33
Captura de pantalla de 2024-02-02 09-26-42

Known issue but not expert enough on how to deal with internationalization in vuetify to properly enable it in trame.
If you provide a plain vue example, that would help me enabling it.