title: Avoid duplication in localization files
body: <p>I am currently working in a project where, for some reason, there are two files for each language that have almost the same content:</p>
  
  <pre><code>config/locales/en/my_translations.yml
  config/locales/en/my_special_translations.yml
  config/locales/pt/my_translations.yml
  config/locales/pt/my_special_translations.yml
  </code></pre>
  
  <p>The files with the same name have the same content, translated to different languages. The problem here is that <code>my_translations</code> and <code>my_special_translations</code> have a really lot of duplicated code. Below I show an example with fake data to show where is the duplication and the differences:</p>
  
  <p><code>config/locales/en/my_translations.yml</code></p>
  
  <pre><code>es:
    animals:
      happy_animals:
        dog: Dog
        cat: Cat
        horse: Horse
      sad_animals:
        cow: Cow
        elephant: Elephant
  </code></pre>
  
  <p><code>config/locales/en/my_special_translations.yml</code></p>
  
  <pre><code>es:
    special_animals:    # This line is different
      happy_animals:
        dog: Dog
        cat: Cat
        horse: Horse
      sad_animals:
        cow: Farm cow   # This line is different
        elephant: Elephant
  </code></pre>
  
  <p>This is just an example, but I have files with hundreds of lines where just a few or them are different. Is there any way to reduce or avoid this duplication between files?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I am using this code the following way: </p>
  
  <pre><code>animals_scope = special? ? 'special_animals' : 'animals'
  animals_hash = I18n.translate(animals_scope, locale: current_locale)
  animals_hash.keys.each do|animal_key|
    # Stuff
  end
  </code></pre>
  
  <p>That is, for each element in the .yml file I am performing some actions</p>