You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Артур Файзрахманов edited this page Mar 8, 2017
·
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:
In Foundation.hs, add the line mkMessage "App" "messages" "en". Replace "en" with your default language.
Create a directory "messages".
Create a file "messages/en.msg" with the following dummy content: Hello: Hello.
Then it will be possible to refer to the message in Hamlet templates with _{MsgHello}.