Repository navigation
馃棯 Add Translations to Streak Stats聽#236
Description
If you are a native speaker of a language that is not yet supported by Streak Stats, you can help by opening a PR!
See the Locales section of the Readme for a list of currently supported locales and percentages translated.
The locales are maintained in the /src/translations.php file.
The locale code added to file should be a 2-letter abbreviation from ISO 639-1 or a 4-letter code with a language and country code (eg. ja or pt_BR). Anything appearing in this list should be fine.
There is no need to update the README! It will get updated automatically by a bot.
Adding a locale
Option 1: Running locally
You may refer to CONTRIBUTING.md for details on installing dependencies and running the project locally.
- Fork the repository and clone your fork to your computer
- Create a new branch (you can name it with the name of your locale)
- Edit
translations.phpto have your locale by adding each phrase mapped to a translation under your new locale. Try to keep the locale list in alphabetical order. - [Optional] Run the project and preview the card on the demo site (e.g.
https://localhost:8000/demo/) to make sure it displays correctly - Commit and push your changes to your fork
- Open a pull request for merging your branch into this repo's main branch, including a screenshot would be appreciated
Option 2: Using the GitHub website
- Open
translations.phpand click the pencil above the README to fork the repo and start editing

- Edit the file to have your locale by adding each phrase mapped to a translation under your new locale. Try to keep the locale list in alphabetical order.
- Add a message and create a new branch with your changes

- Click Propose Changes to open a pull request for merging your branch into this repo's main branch
There is no need to update the README! It will get updated automatically by a bot.
Make sure to keep the spacing and formatting consistent.
Your locale will become available when your Pull Request is approved.
If you have any questions, feel free to ask!
Activity
tejas-nagchandi commentedon Jul 4, 2022
Added Dutch translations #269
ooliver1 commentedon Aug 6, 2022
Should date abbreviations such as
Dec => dicbe included for languages such as Spanish? Months are not capitalised and the spellings are different.DenverCoder1 commentedon Aug 7, 2022
The
IntlDateFormatteris used for that. Using the default settings for the date format, it will generate the date pattern using the locale specified. Same applies with number formatting.ooliver1 commentedon Aug 7, 2022
The demo doesn't seem to show that working though
DenverCoder1 commentedon Aug 7, 2022
What do you mean by that? For me, it seems to work as expected.
nishith-p-shetty commentedon Sep 10, 2022
Added Kannada Translation #324
11 remaining items
feat: Added Hungarian translations (#539)
feat: Updated Russian translations (DenverCoder1#236)
rainpaw commentedon Jan 16, 2025
Added Bhojpuri (India) translations #763
neeyahbright088-del commentedon Sep 10, 2025
NICE
feat: Updated Italian translations (DenverCoder1#420)
feat: Added Hungarian translations (DenverCoder1#539)