rubyforgood / growhaus_sign_in

Growhaus Sign in
3 stars 2 forks source link

Adding i18n support #3

Closed rjbeers closed 9 years ago

rjbeers commented 9 years ago

Part of fixing this issue is providing instructions to the team members on how to define text in the views, so it is dynamic.

rjbeers commented 9 years ago

We can set the locale by locale = :en or locale = :es.

We get messages from the config files by using t 'some.key.name'.

Messages are set in config/locales/*.yml.

Example config file setup we can use:

en:
  pagename:
    sectionofthepage:
      messagetitle: "Hello world"
rjbeers commented 9 years ago

Closed by #19