Closed matiaseche closed 7 months ago
With zero extra config, you should be able to put files under packs/my_pack/config/locales
like you would with the standard config/locales
. packs-rails
adds pack paths to config.paths["config/locales"]
, which should be enough to get the files working.
Thank you @TastyPi for the comment. @matiaseche , can you confirm if that worked for you? If not, do you think you'd be able to write a test case (as a PR or branch) that fails and replicates the issue?
I have a suspicion that this occurs in Rails 6.x, but I'm not sure. I will try to replicate this in an isolated project later
Hey @matiaseche were you able to replicate this issue?
Hey @alexevanczuk, unfortunately I haven't had the time to try and replicate this on an isolated environment. I might be able to try today though
Hi! I am having an issue with my translations inside my pack.
I have a pack with some attribute translations inside
packs/my_pack/config/locales/models/entity.rb
. The only way I have managed to make it work is adding the following line insideconfig/application.rb
:This looks like something that should be done inside the gem, doesn't it? I managed to make it work adding the following to the gem:
Is this something that should be added or not? If it is I can create a PR :smile: