Invalid locales when testing email
(version 1.24.2) when i send a test email from the admin settings, an error pops up on the screen about invalid locales, and i can also see this in the log:
2025-03-07T18:46:56.495Z info: Send test email to xxxx@xxxxx with locale en
2025-03-07T18:46:56.498Z error: [MAIL] Invalid locales: sr-Latn, sr-Cyrl
Error: Invalid locales: sr-Latn, sr-Cyrl
at new I18N (/usr/local/share/.config/yarn/global/node_modules/@ladjs/i18n/index.js:66:13)
at Email.render (/usr/local/share/.config/yarn/global/node_modules/email-templates/index.js:234:20)
at async Promise.all (index 0)
at async Email.renderAll (/usr/local/share/.config/yarn/global/node_modules/email-templates/index.js:263:37)
at async Email.send (/usr/local/share/.config/yarn/global/node_modules/email-templates/index.js:333:20)
at async testSMTP (/usr/local/share/.config/yarn/global/node_modules/gancio/server/api/controller/settings.js:158:7)
and the email does not get sent.
i have created a workaround by removing the 2 locales from this file and restarting gancio.
.config/yarn/global/node_modules/gancio/locales/index.js