# Hash of all translations

**URL:** <https://www.ruby-forum.com/t/hash-of-all-translations/199596>\
**Category:** Rails I18n\
**Created:** [November 24, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/hash-of-all-translations/199596 "2010-11-24T18:23:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 24, 2010, 6:23pm UTC](https://www.ruby-forum.com/t/hash-of-all-translations/199596/1 "2010-11-24T18:23:56Z")

</div>

I’m trying to switch from yaml translation files to database  
translations.

I thought I would just access \>\> I18n.backend.send(:translations) from  
a rake task and insert them all, but from the rails console, that is  
producing { }. Why do I get no translations?

---

<div class="post-metadata">

**Author:** ![nebj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8baadc/32.png) [@nebj](https://www.ruby-forum.com/u/nebj)\
**Post date:** [November 24, 2010, 6:38pm UTC](https://www.ruby-forum.com/t/hash-of-all-translations/199596/2 "2010-11-24T18:38:58Z")

</div>

Translations, are not loaded by default. Use  
I18n.backend.send(:init\_translations) or call I18n.translate to load  
them.

2010/11/24 Benjamin Moses L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![nebj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8baadc/32.png) [@nebj](https://www.ruby-forum.com/u/nebj)\
**Post date:** [November 24, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/hash-of-all-translations/199596/3 "2010-11-24T18:43:21Z")

</div>

I freaking love you. This has taken way too long to figure out. Thank  
you Thank you. : )

On Nov 24, 12:37pm, Krzysztof K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
