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

Dashboard Missing Translation? #1192

Closed
lloydpick opened this issue Dec 18, 2023 · 2 comments
Closed

Dashboard Missing Translation? #1192

lloydpick opened this issue Dec 18, 2023 · 2 comments

Comments

@lloydpick
Copy link

Just started to play with GoodJob and the Dashboard seems to be throwing up a lot of missing translation errors...

Screenshot_2023-12-18_at_1_20_44_PM

I do have i18n with in the Rails app I have, but I don't see anything that could be causing issues.

Rails 7.1.2
GoodJob 3.21.5

@bensheldon
Copy link
Owner

bensheldon commented Dec 18, 2023

That's strange! You can see what it's supposed to look like on the Demo, which is also running Rails 7.1.2: https://goodjob-demo.herokuapp.com/good_job/jobs

I noticed that the translation key it's looking for is a little strange:

Translation missing: en.good_job.datetime.distance_in_words.minutes

The Rails distance_of_time_in_words key is .x_minutes whereas yours just shows .minutes.

Any chance you're monkeypatching time helpers?

@lloydpick
Copy link
Author

Ugh, my bad. I forgot I had this gem loaded... https://github.com/radar/distance_of_time_in_words as it appears in the Gemfile as dotiw.

If I remove it, then it works correctly.

@github-project-automation github-project-automation bot moved this from Inbox to Done in GoodJob Backlog v2 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants