Having the interface in English is strongly asked by both CoTech and FACTTIC.
FACTTIC would ideally have it in Spanish or course.
I know i18n is planned for v0.12 of the Startin'blox framework. Does it translate to Hubl being internationalized easily once we upgraded to that or not really @jbpasquier@balessan?
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
Related merge requests
3
When these merge requests are accepted, this issue will be closed automatically.
Are we talking about the data or about the interface ?
The thing we miss on the interface side is the possibility to load translation files with each autonomous web-component, and there seems to be no standard way to do that (what a shame)
@balessan We're talking about the interface yes. People understand that people from Happy Dev talk in fucking French, and they are ashamed but they accepted it, like Trump, shitty weather or diarrhea.
This is part of the 0.12 to test an equivalent approach yes.
OK. What does "to test" mean then?
Will we be able to translate Hubl on v0.12 or not, I think that's my question in the end?
On that one we have a pending merge request which allows components developers to integrate translation files and then to handle translation based on the browser language settings of the user.
This need reviews but will be integrated in the 0.12, and yes, it should allow you to internationalize Hubl but would need work on your side to review each individual components to add the translation files, and ensure the components are inheriting from SolidTemplateElement.
set the translation files path in the constructor : this.setTranslationsPath(`${base_url}/locales`);
use the localize method in the component template
If needed, provide custom translation files (if two english customers wish to have different labels, it is handled)
For the translation of the data themselves, if needed for classifications lists or some stuff (like list of skills maybe ?) it is possible to use djangoldp-i18n with some additional configuration on the server for that purpose.
@calummackervoy : can you remind us where is the documentation related to internationalization ?