Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isn't it possible to only use gettext? #26

Closed
waldyr opened this issue Feb 20, 2019 · 2 comments
Closed

Isn't it possible to only use gettext? #26

waldyr opened this issue Feb 20, 2019 · 2 comments

Comments

@waldyr
Copy link

waldyr commented Feb 20, 2019

Since I'm using gettext I tried to remove every other yml translation file. Long story short I couldn't.

The closest I got was to add the prefixes of keys on the ignored keys but I ended up with an empty translation.*.yml and a populated localization.*.yml.

Env info:

ruby 2.6.0p0

rails 5.2.1

translation (1.17)
      gettext (~> 3.2, >= 3.2.5)
@waldyr waldyr changed the title Isn't possible to only use gettext? Isn't it possible to only use gettext? Feb 20, 2019
@MichaelHoste
Copy link
Member

We weren't aware this use case could be interesting for some users, but it shouldn't be hard to implement.

Thanks for the feedback. We'll keep you in touch.

MichaelHoste added a commit that referenced this issue Apr 5, 2019
@MichaelHoste
Copy link
Member

We added this feature in the last version of the gem (v1.18).

config.disable_yaml = true

See here: https://github.com/translation/rails#disable-gettext-or-yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants