1
0
mirror of https://github.com/nikolaydubina/calendarheatmap.git synced 2024-12-05 03:58:50 +02:00

Merge pull request #12 from nikolaydubina/feature/korean

Feature/korean
This commit is contained in:
Nikolay Dubina 2020-09-29 20:19:05 +08:00 committed by GitHub
commit ca4f788388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 20 deletions

View File

@ -209,7 +209,7 @@ func (d *MonthLabelsVisitor) Visit(iter *DayIterator) {
// All weekday labels assumed to have same width, which really depends on font.
// offset argument is top right corner of where to insert column of weekday labels.
func drawWeekdayLabels(img *image.RGBA, offset image.Point, weekdays map[time.Weekday]bool, boxSize int, margin int, color color.RGBA, lp LabelsProvider) {
width := 300
width := 250
height := 100
y := offset.Y + height
for _, w := range weekdayOrder {

View File

@ -32,27 +32,27 @@ var localeConfig = map[string]LabelsProvider{
},
"ko_KR": LabelsProvider{
months: map[time.Month]string{
time.January: "월",
time.February: "월",
time.March: "월",
time.April: "월",
time.May: "월",
time.June: "월",
time.July: "월",
time.August: "월",
time.September: "월",
time.October: "월",
time.November: "십일월",
time.December: "십이월",
time.January: "1월",
time.February: "2월",
time.March: "3월",
time.April: "4월",
time.May: "5월",
time.June: "6월",
time.July: "7월",
time.August: "8월",
time.September: "9월",
time.October: "10월",
time.November: "11월",
time.December: "12월",
},
weekdays: map[time.Weekday]string{
time.Monday: "월요일",
time.Tuesday: "화요일",
time.Wednesday: "수요일",
time.Thursday: "목요일",
time.Friday: "금요일",
time.Saturday: "토요일",
time.Sunday: "일요일",
time.Monday: "월",
time.Tuesday: "화",
time.Wednesday: "수",
time.Thursday: "목",
time.Friday: "금",
time.Saturday: "토",
time.Sunday: "일",
},
},
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 86 KiB