as an example, i have a default english locale file "en.yml" with contents:
en:
messages: messages
users: users
now, there is a customer which wants messages to be named discussions in his product, but users should remain users. so what i want to do is to create "customer.en.yml" file
en:
messages: discussions
which would override the default "messages" translation, but would keep all the other words same. how can i achieve it?
because if i load en.yml with :
config.i18n.load_path += Dir[File.join(RAILS_ROOT, config , locales , *.{rb,yml} )]
and afterwards load customer.en.yml (APP_CONFIG[ customer_name ] is defined before) with
config.i18n.load_path += Dir[File.join(RAILS_ROOT, config , custom_locales , APP_CONFIG[ customer_name ]+ .{rb|yml} )]
it will just overwrite my "en" locale, and "users" translation will disappear, right?