After upgrading to Discourse version 3.1.0.beta2, users encountered a bug where text customization for chat-related messages fails when the default locale is not English. ProjeDEV reported that while English works fine, other languages like Spanish cause errors—specifically a 500 error when attempting to edit js.chat.retention_reminders.dm via the UI, even after fresh installs or safe mode. JammyDodger reproduced the issue, confirming that editing the text post-upgrade triggers a NoMethodError due to interpolation key validation failures. Attempts to revert or manually edit the text failed, and the UI only showed two translation options in Spanish versus three in English. gerhard initially suggested a workaround similar to another known issue, but ProjeDEV confirmed it didn’t work. Later, gerhard advised reverting the customized string via UI, which partially resolved the issue for some, but ProjeDEV still saw incorrect rendering. gerhard acknowledged a separate bug (fixed via PR #20374) and asked ProjeDEV to file a new report for the remaining issue. The core problem appears tied to locale-specific translation handling post-upgrade, affecting chat retention message customization.
I updated a few days ago. After the upgrade, I encountered a problem.
If “default locale” is in English, there is no problem. The popup message is displayed successfully, but in other languages you encounter issues.
I cannot change some texts related to the chat section. By the way, I tried and I can make changes in other parts. I’m not sure if this problem is only related to the chat part or if there are other areas as well.
I faced the same problem whether I did the update from the interface or with the command.
I tried again today. I uninstalled everything and did a fresh install.
I have a fresh install and no plugins or components are installed.
I’ve just given this a run-through of my test site and I can repro this. I hadn’t updated my test site for a little while and on version f19044af6a it worked fine, but updating to latest 39be3cb619 gave the same behaviour as reported.
I think it’s a little different from the one in the link you mentioned. You see the problem if your default locale is not english and if you change “chat dm retention days” 0 to x days .
Also, the solution you mentioned doesn’t work , you can not change the text (js.chat.retention_reminders.dm) even in safe mode. There’s 500 Error when you try to change.
I tried a few ways, but I couldn’t get it to reset and let me back in to change it manually. Checking back on it now, the text has reverted to its default text but with the raw variable (so no ‘revert’ option available) and trying to edit manually throws the 500 error. I also tried the safe mode workaround for the other topic, which didn’t seem to have any effect.
Searching for js.chat.retention_reminders.dm in English (UK) locale gives me three choices, but in Español it only offers two.