Skip to content

fix(plyr): add l10n to components#3194

Open
szaimen wants to merge 2 commits into
masterfrom
enh/noid/plyr-l10n
Open

fix(plyr): add l10n to components#3194
szaimen wants to merge 2 commits into
masterfrom
enh/noid/plyr-l10n

Conversation

@szaimen

@szaimen szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen added this to the Nextcloud 35 milestone Jun 9, 2026
@szaimen szaimen added bug Something isn't working 2. developing Work in progress feature: language l10n and translations labels Jun 9, 2026
@szaimen

szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@szaimen

szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Jun 9, 2026
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 9, 2026
@szaimen

szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/compile

@szaimen szaimen marked this pull request as ready for review June 9, 2026 08:42
@szaimen szaimen requested review from artonge and skjnldsv June 9, 2026 08:42
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@szaimen

szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

CI failure unrelated afaics

@szaimen

szaimen commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable32

*
* @param t the Nextcloud translation function (`this.t` in components)
*/
export function getPlyrTranslations(t: TranslateFn): Record<string, string> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could simply import import { translate as t } from '@nextcloud/l10n' in this file and use it instead of passing it as an argument. Then this would be a static object instead of a function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews backport-request Pending backport by the backport-bot bug Something isn't working feature: language l10n and translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants