News for hackers. Stuff that matters.
Re:Show HN: Localization and translations should be code, no... by LeviticusMB on Wednesday July 06, 2022 @10:49AM (#32001825)
Building complex sentences absolutely require some form of logic. Different languages have very different rules for gender, plural, sexus, classes ( animated/humane/plants/etc).

I'm arguing that each implemented language in a program should be able to define its own set of utility functions that makes sense for that particular language.

Also, since translations as code can return both plain strings and (for example) HTML fragments, security is instead increased, because encoding/decoding would no longer be an issue.

There are no comments on this comment yet.