Skip to content

fix(i18n): fix Arabic pluralization for ayahs count (#1991) - #3309

Open
ahmedelesawy511 wants to merge 1 commit into
quran:productionfrom
ahmedelesawy511:production
Open

fix(i18n): fix Arabic pluralization for ayahs count (#1991)#3309
ahmedelesawy511 wants to merge 1 commit into
quran:productionfrom
ahmedelesawy511:production

Conversation

@ahmedelesawy511

@ahmedelesawy511 ahmedelesawy511 commented Jul 5, 2026

Copy link
Copy Markdown

Fix issue #1991

This PR fixes an issue where the string translation for "ayahs" count is improperly rendered in Arabic in the home page (e.g. سورة البقرة ٢٨٦ آيات instead of سورة البقرة ٢٨٦ آية) due missing Arabic plural forms for ayah counts in the Arabic Locale

Changes Made:

  • Added ayahs_one and ayahs_other keys to the English common.json locale file. (expecting the Lokalise team to automatically add the relevant plural forms for ayah counts for other languages)
  • Added Arabic plural forms for ayah counts in the Arabic Locale
  • Passed the dynamic { count } object to the translation hook inside the following components to enable proper singular/plural switching:
    • ReadingStats component
    • ChapterAndJuzList component
    • JuzView component
  • Preserved the regular t('common:ayahs') key where static headers or labels are required

Test Steps:

617165465-9402571c-742d-4dda-804f-3d1b7025dff2

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aaa019c2fd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/components/chapters/ChapterAndJuzList.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant