Moin
July 1, 2024, 9:18am
11
I think this is related to
This happens when there’s a translation override for a key that previously was a translatable string, but was converted into a Hash at a later time. That’s exactly what happened with chatbot.prompt.system.
This seems like a regression. I’m pretty sure this used to work in the past.
I can easily reproduce this with a locale file like this:
en:
foo: "this is foo"
Go to Customize → Text and override “foo” with a different value.
Then, change the locale file to look like this:
en:
foo:
…
I was able to reproduce the issue that the string for preferences in Turkish was broken. I customized js.user.preferences before updating and after the update the new js.user.preferences.title was broken.
Then I ran
TranslationOverride.where(translation_key: "js.user.preferences").delete_all
TranslationOverride.send(:reload_locale!)
and this fixed it
But I would wait for confirmation from someone with more knowledge before I would try to do this myself on a production site
3 Likes