-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Format date and numbers based on locale (#238)
- Loading branch information
1 parent
9b466a7
commit 6a28226
Showing
14 changed files
with
134 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,44 @@ | ||
<?php | ||
|
||
/** | ||
* Locales | ||
* ------- | ||
* For a list of supported locale codes, see https://gist.github.com/DenverCoder1/f61147ba26bfcf7c3bf605af7d3382d5 | ||
* | ||
* Date Format | ||
* ----------- | ||
* Supplying a date format is optional and will be used instead of the default locale date format. | ||
* If the default date format for the locale displays correctly, you should omit the date_format parameter. | ||
* | ||
* Different year Same year Format string | ||
* -------------- --------- ------------- | ||
* 10/8/2016 10/8 j/n[/Y] | ||
* 8/10/2016 8/10 n/j[/Y] | ||
* 2016.8.10 8.10 [Y.]n.j | ||
* | ||
* For info on valid date_format strings, see https://github.com/DenverCoder1/github-readme-streak-stats#date-formats | ||
*/ | ||
|
||
return [ | ||
"currentStreak" => [ | ||
"en" => "Current Streak", | ||
"de" => "Aktuelle Serie", | ||
"es" => "Racha Actual", | ||
"ja" => "現在のストリーク", | ||
"en" => [ | ||
"Total Contributions" => "Total Contributions", | ||
"Current Streak" => "Current Streak", | ||
"Longest Streak" => "Longest Streak", | ||
], | ||
"de" => [ | ||
"Total Contributions" => "Gesamte Beiträge", | ||
"Current Streak" => "Aktuelle Serie", | ||
"Longest Streak" => "Längste Serie", | ||
], | ||
"totalContributions" => [ | ||
"en" => "Total Contributions", | ||
"de" => "Gesamte Beiträge", | ||
"es" => "Todas Contribuciones", | ||
"ja" => "総コントリビューション数", | ||
"es" => [ | ||
"Total Contributions" => "Todas Contribuciones", | ||
"Current Streak" => "Racha Actual", | ||
"Longest Streak" => "Racha Más Larga", | ||
], | ||
"longestStreak" => [ | ||
"en" => "Longest Streak", | ||
"de" => "Längste Serie", | ||
"es" => "Racha Más Larga", | ||
"ja" => "最長のストリーク", | ||
"ja" => [ | ||
"date_format" => "[Y.]n.j", | ||
"Total Contributions" => "総コントリビューション数", | ||
"Current Streak" => "現在のストリーク", | ||
"Longest Streak" => "最長のストリーク", | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.