Kluent icon indicating copy to clipboard operation
Kluent copied to clipboard

Is it possible to support multi language ?

Open arfirman1402 opened this issue 5 years ago • 3 comments

Hello, I just wanna ask something. Is it possible to support multi language beside english for this library ? For example like bahasa or spanish or italian ? I hope I can support on bahasa if thats really possible.

Thank you.

arfirman1402 avatar Sep 17 '19 07:09 arfirman1402

Are you talking about documentation or the code itself?

MarkusAmshove avatar Sep 17 '19 07:09 MarkusAmshove

the code for support multi language. For example like this one : JUnit: assertEquals("hello", "hello");

Kluent (English): "hello" shouldEqual "hello"

Kluent (Bahasa): "hello" samaDengan "hello"

arfirman1402 avatar Sep 17 '19 07:09 arfirman1402

Ah I see. I think that would be too much of a maintenance burden for me and also contributors or the changes would have to wait for translation/translates artifact don't get the newest features.

I'm writing code in German at my company for everything we write ourselves, but live with English 3rd party libraries for that particular reason. If you really need that, I would suggest that you set up a project which uses translated names as a proxy for the English assertions, that way you can depend on a specific version of Kluent and keep your translations in sync with that. That way the translations don't have to live in this repository/project, but can be curated at your pace within your project :-)

MarkusAmshove avatar Sep 17 '19 10:09 MarkusAmshove