Localizing an IHP application

51 Views Asked by At

Some features of the Haskell web framework IHP produce strings that are sen by the user, e.g. the error messages from validators like nonEmpty, and they are all in English.

How would I use IHP to produce a page with a non-English audience? Or, even more interesting, produce a webpage that adjusts its language to the preferences of the user?

1

There are 1 best solutions below

0
On BEST ANSWER

Right now I18n is not yet supported directly in IHP. You'd need to manually deal with this for now. Validation error messages can be overriden using withCustomErrorMessage.