CatalaLang / catala

Programming language for literate programming law specification
https://catala-lang.org
Apache License 2.0
1.98k stars 77 forks source link

`catala testcase write` seems to discard language info #681

Open rprimet opened 1 month ago

rprimet commented 1 month ago

It seems that catala testcase write (in the catala-language-server library) will always write english catala code and does not consider the language flag; this is something that we should keep in mind to fix later?

cc @AltGr

rprimet commented 1 month ago

(note that we do not necessarily need to fix that, we could instead decide to always assume english since the use case is a visual editor...)

denismerigoux commented 1 month ago

Ah, interesting ! You're completely right noticing that. I would say that for compatibility with people not using the visual editor, catala testcase write should take a language flag option and output code in French or English.