uqbar-project/wollok-language
Deal with internationalization and localization
Aperta
#28 aperta il 9 nov 2019
help wantedquestion
Metriche repository
- Star
- (8 stelle)
- Metriche merge PR
- (Merge medio 49g 5h) (3 PR mergiate in 30 g)
Descrizione
Extracted from discussion on #26 .
We should think how to deal with translations and localization in this project to reuse as much as possible.
Besides the general discussion of where and how we should store translations and similar stuff, there are some concrete issues to discuss:
- The method
Object.generateDoesNotUnderstandMessage(target, messageName, parametersSize)is currently implemented as native. This is, as I understand, mainly because it relies on localization (please, correct me if I'm wrong), but it would be nice to have it shared. - Date toStrings depend on localization which is not tested anywhere. I believe it would be good to avoid this dependency or model the localization in the language somehow, otherwise we are coupled with the fact the code runs on an IDE that knows the system language.
- The text of exceptions could be shared by all implementations if we move it here.