Moin
Julho 1, 2024, 9:18am
11
Acho que isso está relacionado a
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:
…
Consegui reproduzir o problema de que a string para preferências em turco estava quebrada. Eu personalizei js.user.preferences antes de atualizar e, após a atualização, o novo js.user.preferences.title estava quebrado.
Então executei
TranslationOverride.where(translation_key: "js.user.preferences").delete_all
TranslationOverride.send(:reload_locale!)
e isso corrigiu
Mas eu esperaria a confirmação de alguém com mais conhecimento antes de tentar fazer isso em um site de produção.
3 curtidas