ruby on rails - String constant for use in en.yml file -
in locales/en.yml, have following:
en: activerecord: attributes: ticket: customer_name: "customer name" inventory: quantity: 'quantity' resources: quantity: 'quantity' hours: quantity: 'quantity'
is there way me define string 'quantity' string constant can re-use constant in en.yml?
example:
default: &default adapter: mysql2 encoding: utf8 username: username password: yourdbpassword development: <<: *default test: <<: *default
also see answer: reuse block of code in yaml
Comments
Post a Comment