Skip to content

Instantly share code, notes, and snippets.

@stevenyap
Created November 21, 2013 04:25
Show Gist options
  • Select an option

  • Save stevenyap/7576085 to your computer and use it in GitHub Desktop.

Select an option

Save stevenyap/7576085 to your computer and use it in GitHub Desktop.
i18n Internationalization
# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
#     I18n.t 'hello'
#
# In views, this is aliased to just `t`:
#
#     <%= t('hello') %>
#
# To use a different locale, set it with `I18n.locale`:
#
#     I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.

en:
  hello: "Hello world"
  recaptcha:
    errors:
      verification_failed:    'Word verification response is incorrect, please try again.'
      incorrect-captcha-sol:  'Word verification response is incorrect, please try again.'
      invalid-request-cookie: 'Word verification response is incorrect, please try again.'
      recaptcha_unavailable:  'We are not able to verify the recaptcha at the moment.'

  activerecord:
    errors:
      models:
        bid:
          attributes:
            supplier_id:
              taken: "can only bid once for a deal"
        deal:
          attributes:
            expiry_hours:
              less_than_or_equal_to: "must be less than 2 weeks"
  enumerize:
    deal:
      asking_price_currency:
        USD: "USD"
        SGD: "SGD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment