Open DenverCoder1 opened 2 years ago
Added Dutch translations #269
Should date abbreviations such as Dec => dic
be included for languages such as Spanish? Months are not capitalised and the spellings are different.
Should date abbreviations such as
Dec => dic
be included for languages such as Spanish? Months are not capitalised and the spellings are different.
The IntlDateFormatter
is 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.
Should date abbreviations such as
Dec => dic
be included for languages such as Spanish? Months are not capitalised and the spellings are different.The
IntlDateFormatter
is 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.
The demo doesn't seem to show that working though
The demo doesn't seem to show that working though
What do you mean by that? For me, it seems to work as expected.
Added Kannada Translation #324
Added Pashto translations #396
Added Bulgarian Translations #398
Added Yoruba translations #407
Added Urdu (Pakistan)(ur_PK) Translations #425
added Haitian Creole translation #444
Added tamil translations https://github.com/DenverCoder1/github-readme-streak-stats/pull/445
Added Armenian translations #479
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
orpt_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.translations.php
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.https://localhost:8000/demo/
) to make sure it displays correctlyOption 2: Using the GitHub website
translations.php
and click the pencil above the README to fork the repo and start editingThere 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!