rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

Enforce the locale to be set to `English` #137

Closed manuelvanrijn closed 4 months ago

manuelvanrijn commented 4 months ago

Summary

As reported in #136, we could have a mix of translations when this default_locale is set to another language than English.

This PR resolves this by adding a around_action that set's the locale to English during the execution of the action.

I've also removed a docker volume and the version from the docker-compose.yml because the volume isn't being used, and the version is obsolete.

Fixes #136

Before

SCR-20240703-lyvd

After

image
rosa commented 4 months ago

Thank you so much again! 🙏

n-studio commented 3 months ago

This will cause error I18n::InvalidLocale in MissionControl::Jobs::QueuesController#index for websites that don't have the English locale available.