mirror of
https://github.com/acamarata/hijri-core.git
synced 2026-06-30 18:54:27 +00:00
779 B
779 B
hijri-core / registerCalendar
Function: registerCalendar()
registerCalendar(
name,engine):void
Defined in: registry.ts:14
Register a calendar engine under the given name.
Once registered, the engine can be selected via { calendar: name } in any
conversion function or retrieved directly with getCalendar.
Parameters
name
string
unique identifier for the calendar (e.g. 'uaq', 'fcna')
engine
an object implementing the CalendarEngine interface
Returns
void