Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indonesian Language for ezTime #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/lang/ID
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
String monthStr(const uint8_t month) {
switch(month) {
case 1: return F("januari");
case 2: return F("februari");
case 3: return F("maret");
case 4: return F("april");
case 5: return F("mei");
case 6: return F("juni");
case 7: return F("juli");
case 8: return F("agustus");
case 9: return F("september");
case 10: return F("oktober");
case 11: return F("november");
case 12: return F("desember");
}
return "";
}

String monthShortStr(const uint8_t month) { return monthStr(month).substring(0,3); }

String dayStr(const uint8_t day) {
switch(day) {
case 1: return F("minggu");
case 2: return F("senin");
case 3: return F("selasa");
case 4: return F("rabu");
case 5: return F("kamis");
case 6: return F("jumat");
case 7: return F("sabtu");
}
return "";
}

String dayShortStr(const uint8_t day) { return dayStr(day).substring(0,2); }