Add support for Sinhala language

Open Beginner friendly
#2,773 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start by reading the repository’s existing language definitions and tests to find how language codes, aliases, and plural formulas are represented. Add Sinhala (si) with the supplied aliases (sin and si_LK) and plural formula, then run the relevant language definition tests to confirm it is recognized.

Written by the indexing model from the issue text.

Description

Language code

si

English language name

Sinhala

Number of plural forms

2

Plural formula

n > 1

Sources

Unicode CLDR v50 - Sinhala plural rules:
https://unicode.org/cldr/charts/50/supplemental/language_plural_rules.html

Weblate Sinhala language definitions:
https://weblate.overte.org/languages/si/

Weblate language configuration documentation:
https://docs.weblate.org/en/latest/admin/languages.html

Aliases or legacy codes

sin -> si
si_LK -> si

Additional context

Sinhala (සිංහල) is an Indo-Aryan language primarily spoken in Sri Lanka. Its ISO 639-1 language code is si, and its ISO 639-2 code is sin.

According to Unicode CLDR v50, Sinhala has two cardinal plural categories: one and other. For integer values, one applies to 0 and 1, while other applies to values greater than 1.

Sinhala is written in the Sinhala script and uses left to right text direction.

The proposed plural formula is n > 1, consistent with CLDR integer plural rules.

Dominant language
Python
Stars
31
Forks
28
Avg merge
51m
Merged PRs (30d)
53

Getting set up

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.

More from WeblateOrg/language-data

All issues in WeblateOrg/language-data

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.