diff --git a/src/lang/ID b/src/lang/ID new file mode 100644 index 0000000..21c7b20 --- /dev/null +++ b/src/lang/ID @@ -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); }