Translation API for Upload looks really confusing based on the example
mickoyuh opened this issue · 1 comments
mickoyuh commented
from Gitlab. By Artur.
https://gitlab.vaadin.com/vaadincom/webpage/issues/2805
https://vaadin.com/elements/vaadin-upload/java-examples
The example should show how you define the generic translations for all Upload components, who wants to translate a single upload dynamically?
Right now the API uses 7 instances which are set inside each other in a suitable way. Why is there not an interface you implement and return the strings needed? Or an examples resource bundle you just copy paste and translate the strings?
web-padawan commented
Closing in favor of https://github.com/vaadin/vaadin-core/issues/237 as this is not a demo issue, and is related to how i18n
is implemented.