You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[i18n] Incorrect usage of translation function #9175
The file MardownSourceComparison.vue contains an incorrect usage of the t() function for loading translated UI strings. Therefore, it is not possible to translate the strings that are supposed to be displayed to users.
'aria-label': operation&&t('text', operation==='removed'?'Removed line {line}':'Added line {line}', { line: value!.number }),
Because of the inline logic in the second parameter of the t() function, the strings Removed line {line} and Added line {line} are not detected and offered for translation in Transifex.
The code should roughly look like this, instead:
returnh('div',{class: ['text-source-comparison__line',operation&&`text-source-comparison__line--${operation}`],hidden: rowProps.layoutMode==='single'&&rowProps.activeSide!==side,'aria-label': operation&&operation==='removed' ? t('text','Removed line {line}',{line: value!.number}) : t('text','Added line {line}',{line: value!.number}),'data-source-operation': operation,},
Activity