Builds a list of years for selection dropdowns, combining Gregorian and Persian years.
Creates an array of year objects with both Gregorian and Persian year representations.
The list starts from the current year and goes back by the specified number of years.
Parameters
base: number = 50
Number of years to go back from the current year. Defaults to 50.
Returns {id:number;title:string}[]
Array of year objects with title (formatted string) and id (Persian year number).
Builds a list of years for selection dropdowns, combining Gregorian and Persian years.
Creates an array of year objects with both Gregorian and Persian year representations. The list starts from the current year and goes back by the specified number of years.