nextcloud / nextcloud/talk-android

Code blocks should always be LTR regardless of the message text direction

Open
#5,071 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop feature: chat 🗨️
Dominant language
Kotlin
Stars
739
Forks
321
Avg merge
14h 59m
Merged PRs (30d)
151

Description

In accordance with https://github.com/nextcloud/spreed/issues/15362

Is your feature request related to a problem? Please describe.
It has always been the case that a message written in RTL language (Arabic) would have the code block rendered in RTL as well. Along with Nextcloud 10 and complete RTL support, I would have assumed this case would have been considered and code blocks would have been rendered in LTR always.

Describe the solution you'd like
Code blocks should always render in LTR.

Describe alternatives you've considered
N/A

Additional context
Example of how code blocks are rendered in RTL:

share_2337513589072262744.png

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.

Research direction

The issue does not name a file, test, or entry point. Start by reproducing the example with an Arabic message containing a code block and locate the Android message-rendering code responsible for its text direction. Done means code blocks render left-to-right even when the surrounding message is right-to-left.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
internationalization, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.