Skip to content

i18n messages in the scaffolding

snoyberg edited this page Nov 19, 2014 · 4 revisions

The scaffolding used to include a messages folder for i18n messages. However, since this is a commonly unused feature, it was removed. To add back this feature, do the following:

  1. In Foundation.hs, add the line mkMessage "App" "messages" "en". Replace "en" with your default language.
  2. Create a directory "messages".
  3. Create a file "message/en.msg" with the following dummy content: MsgHello.
Clone this wiki locally