Open ndbroadbent opened 3 years ago
@ndbroadbent Just an idea: I recently found https://direnv.net/, which is a more general solution to the same problem and should fix your problem as well.
This would be good for DeepL as well, which can't be controlled by environment variables at all.
you can do the following to pick up variables from dotenv:
bundle exec dotenv -f ".env.development" i18n-tasks translate-missing
This would be good for DeepL as well, which can't be controlled by environment variables at all.
@glebm ok, it's been there for years, apparently :D I think this should be mentioned in the README.md though, as it's only obvious from reading the source.
Hello, I use the
dotenv-rails
gem to define configuration vars in.env
,.env.test
,.env.development
, etc. This doesn't seem to be working withi18n-tasks
. I've setGOOGLE_TRANSLATE_API_KEY
in my.env.development
file, but it looks likei18n-tasks
doesn't load the Rails environment, so I get this error:It would be nice if
i18n-tasks
could work together withdotenv-rails
to load these env vars from.env
files.Also I realize that it's very difficult to maintain an open source project, so if this is too much work or no-one else wants it, then please feel free to close it. Thanks for all your work!