nextcloud / nextcloud/text

[i18n] Incorrect usage of translation function

Open
#9,175 0 comments 0 reactions 1 assignee View on GitHub

@hweihwang is already working on this.

Since Sep 8, 2026.

bug
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

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.

The code should roughly look like this, instead:

			return h('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,
			},

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.