abartov / bybeconv

Project Ben-Yehuda's content management system.
https://benyehuda.org/
Other
10 stars 5 forks source link

Made it possible to switch UI to english in development #384

Closed damisul closed 2 weeks ago

damisul commented 2 weeks ago

If BY_LANGUAGE env variable is provided it will try to use given locale as default. For now only en or he locale is accepted (and only in dev environment)

I've added dotenv gem to simply manage env variables in development and test. I plan to use it also in https://github.com/abartov/bybeconv/issues/166

You can create .env.development.local file and override BY_LANGUAGE value there instead of overwriting .env.development