Skip to content

Add reading challenge translations#5822

Open
tonisevener wants to merge 26 commits intoreading-challengefrom
reading-challenge-localizations-2
Open

Add reading challenge translations#5822
tonisevener wants to merge 26 commits intoreading-challengefrom
reading-challenge-localizations-2

Conversation

@tonisevener
Copy link
Copy Markdown
Collaborator

@tonisevener tonisevener commented Apr 22, 2026

Phabricator: https://phabricator.wikimedia.org/T421501

Notes

This manually adds widget localizations, plus commits a readme and prompt file for us to use in the future. This was mostly done through Copilot.

Since future manual translation spreadsheets will likely be formatted differently, I decided to have Copilot write and commit its own generic prompt instructions instead of a script for us to run. This way, Copilot can write whatever script it feels is best in-the-moment based on the translations we are trying to import.

Test Steps

(We can lean on QA for extensive testing)

  1. Change device or simulator primary app language. Confirm app-side widget code (announcement, collect prize modals) and widget text is translated. Note there are some missing translations. It is decided that we will let Translatewiki add those.

Checklist

  • Checked against Swift 6 strict concurrency

Screenshots/Videos

@tonisevener tonisevener requested review from a team and l-olson1214 and removed request for a team April 22, 2026 13:51
@tonisevener tonisevener added the reading-challenge Reading challenge widget label Apr 22, 2026


let defaultSubtitleAndGlobe: (String, String) = (WMFLocalizedString("reading-challenge-not-yet-read-subtitle-drift", value: "Don't let today drift by, save your streak.", comment: "Subtitle shown on the reading challenge widget when the user has not yet read today."), "sleepyglobe")
let defaultSubtitleAndGlobe: (String, String) = (WMFLocalizedString("reading-challenge-not-yet-read-subtitle-drift", value: "Dont let today drift by, your reading streak is waiting.", comment: "Subtitle shown on the reading challenge widget when the user has not yet read today."), "sleepyglobe")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we have any concerns over the specific apostrophe being used? I see it changed it but I'm not sure if that's important

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think that the one added is an accent since it leans forward. It won't cause parse errors (a backtick would), but it could be better for readability to maintain the single quote

),
value: "Join the challenge anytime between %1$@ and %2$@, complete your 25 days on your own timeline.",
comment: "Subtitle for reading challenge onboarding first item. %1$@ is a localized start day and month name, %2$@ is a localized end date and month name."
), startText, endText),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ooooh nice!

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

Labels

8.0.1 reading-challenge Reading challenge widget

Development

Successfully merging this pull request may close these issues.

3 participants