wordpress-mobile / wordpress-mobile/release-toolkit

Add RtL support for draw_text_attachment_to_canvas

Open
#279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
31
Forks
10
Avg merge
5h 45m
Merged PRs (30d)
2

Description

Description

Text alignment for screenshot overlay text must be flipped for RtL languages.

Background Context

Ref: https://github.com/wordpress-mobile/WordPress-iOS/pull/16707

While adding the ar-SA (Arabic) and he (Hebrew) locales to screenshot generation, I realized that the overlay text alignment needs to to be flipped for RtL languages.

In the Jetpack app, the splash image has text that's left-aligned for LtR languages, which needs to be flipped to be right-aligned for RtL languages.

JP

iPhone XS Max-0-Splash iPhone XS Max-1-MySite iPhone XS Max-2-ActivityLog iPhone XS Max-3-JetpackScan iPhone XS Max-4-JetpackBackup iPhone XS Max-5-Stats

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

Search the repository for the draw_text_attachment_to_canvas entry point and inspect the screenshot-generation code around it. Check for existing tests covering overlay text alignment or locale handling. Done means overlay text is right-aligned for RTL languages such as Arabic and Hebrew while preserving the current left alignment for LTR languages.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
internationalization, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.