-
Notifications
You must be signed in to change notification settings - Fork 71
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
exclude translations from libraries #135
Comments
@koenhandekyn you can define array of key prefixes in Lit.ignored_keys = %w[active_admin simple_form formtastic] |
some feedback
maybe i'm still doing something wrong, but feels a bit unintuitive that the ignored_keys setting is ignored for keys that still are in the cache. maybe the if statement can be written differently? i'm not doing a PR because i haven't figured out the intent of the current logic fully :) ps: further, ignoring keys is a good workaround for now, but because some gems don't namespace their translations nicely (or they follow the standard and have keys in a common global namespace), it still feels an interesting extension to be able to play with the load-path. |
@koenhandekyn for future reference: |
you probably noticed the wiki addition on this topics at https://github.com/prograils/lit/wiki/Advanced-configuration - feel free to ammend ;) |
confirming that Lit.init.cache.reset seems to do the job on HEROKU |
is there a way to exclude translations from gems, currently the tool also imports translations from devise-i18n, active_admin, etc if these are in the project ...
after some analysis, i'm concluding that LIT is using the i18n load path, which is extended by some gems. i think the proposal would be to have an option in LIT to 'discard' the i18n loadpath, or have a configurable load path.
The text was updated successfully, but these errors were encountered: