feat(amlich): add Vietnamese lunar calendar conversion module

/amlich converts duong lich to am lich (defaults to today, Asia/Saigon);
/duonglich converts am lich to duong lich with a nhuan flag for leap
months. Dates accept d, d/m, or d/m/yyyy - missing parts fill from today
in the input's calendar. Conversion is a dependency-free port of Ho Ngoc
Duc's algorithm at UTC+7, with rejection of impossible lunar inputs,
anchored by known Tet/leap-month dates and a 1950-2050 round-trip test.
This commit is contained in:
tiennm99 committed 2026-08-08 22:40:03 +07:00
1 parent f727bc6b5c
commit 7312dcf7ea
8 files changed
+813

No files matched your search

+2
View File
@@ -58,6 +58,8 @@ func TestCommandDiscovery_AllPublicCommandsHaveSafeMetadata(t *testing.T) {
}
expectedParameters := map[string]string{
"amlich": "[date]",
"duonglich": "<date> [nhuan]",
"coin_price": "<coin>",
"coin_topup": "<usd_amount>",
"coin_buy": "<coin> <usd_to_spend>",