Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4631

How can I use locales in my gem from another gem?

$
0
0

I have a gem that uses another gem. That other gem has translations (I18n). When localization is applied in my library, instead of text I see a value with a missing translation:

Translation missing: en.some_field.a.b.c

Now there is one solution for me - this is to move the config directory from that library to my own.

But I wouldn't want to copy these files, which are essentially useless for my library. Moreover, these files will have to be maintained, updated, etc.

Is it possible to somehow automatically load these files into the current gem from another?


Viewing all articles
Browse latest Browse all 4631

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>