Skip to content
Snippets Groups Projects
Unverified Commit 82e667fa authored by Jean Brito's avatar Jean Brito Committed by GitHub
Browse files

fix: New version banner text translation (#34217)

parent 5c423d77
No related branches found
No related tags found
No related merge requests found
---
"@rocket.chat/meteor": patch
---
Fixes an issue where the update banner wasn't showing the new version number
...@@ -27,7 +27,12 @@ export const useUserBanners = () => { ...@@ -27,7 +27,12 @@ export const useUserBanners = () => {
banners.open({ banners.open({
id: firstBanner.id, id: firstBanner.id,
title: i18n.exists(firstBanner.title) ? t(firstBanner.title) : firstBanner.title, title: i18n.exists(firstBanner.title) ? t(firstBanner.title) : firstBanner.title,
text: i18n.exists(firstBanner.text) ? t(firstBanner.text, firstBanner.textArguments) : firstBanner.text, text: i18n.exists(firstBanner.text)
? t(firstBanner.text, {
postProcess: 'sprintf',
sprintf: firstBanner.textArguments,
})
: firstBanner.text,
modifiers: firstBanner.modifiers, modifiers: firstBanner.modifiers,
action() { action() {
if (firstBanner.link) { if (firstBanner.link) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment