import type { Localize , LocalizeFn } from '../../../types' ; import type { Quarter } from '../../../../types' ; import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index' ; const eraValues = { narrow : [ 'MÖ' , 'MS' ] as const , abbreviated : [ 'MÖ' , 'MS' ] as const , wide : [ 'Milattan Önce' , 'Milattan Sonra' ] as const , } ; const quarterValues = { narrow : [ '1' , '2' , '3' , '4' ] as const , abbreviated : [ '1Ç' , '2Ç' , '3Ç' , '4Ç' ] as const , wide : [ 'İlk çeyrek' , 'İkinci Çeyrek' , 'Üçüncü çeyrek' , 'Son çeyrek' ] as const , } ; const monthValues = { narrow : [ 'O' , 'Ş' , 'M' , 'N' , 'M' , 'H' , 'T' , 'A' , 'E' , 'E' , 'K' , 'A' ] as const , abbreviated : [ 'Oca' , 'Şub' , 'Mar' , 'Nis' , 'May' , 'Haz' , 'Tem' , 'Ağu' , 'Eyl' , 'Eki' , 'Kas' , 'Ara' , ] as const , wide : [ 'Ocak' , 'Şubat' , 'Mart' , 'Nisan' , 'Mayıs' , 'Haziran' , 'Temmuz' , 'Ağustos' , 'Eylül' , 'Ekim' , 'Kasım' , 'Aralık' , ] as const , } ; const dayValues = { narrow : [ 'P' , 'P' , 'S' , 'Ç' , 'P' , 'C' , 'C' ] as const , short : [ 'Pz' , 'Pt' , 'Sa' , 'Ça' , 'Pe' , 'Cu' , 'Ct' ] as const , abbreviated : [ 'Paz' , 'Pzt' , 'Sal' , 'Çar' , 'Per' , 'Cum' , 'Cts' ] as const , wide : [ 'Pazar' , 'Pazartesi' , 'Salı' , 'Çarşamba' , 'Perşembe' , 'Cuma' , 'Cumartesi' , ] as const , } ; const dayPeriodValues = { narrow : { am : 'öö' , pm : 'ös' , midnight : 'gy' , noon : 'ö' , morning : 'sa' , afternoon : 'ös' , evening : 'ak' , night : 'ge' , } , abbreviated : { am : 'ÖÖ' , pm : 'ÖS' , midnight : 'gece yarısı' , noon : 'öğle' , morning : 'sabah' , afternoon : 'öğleden sonra' , evening : 'akşam' , night : 'gece' , } , wide : { am : 'Ö.Ö.' , pm : 'Ö.S.' , midnight : 'gece yarısı' , noon : 'öğle' , morning : 'sabah' , afternoon : 'öğleden sonra' , evening : 'akşam' , night : 'gece' , } , } ; const formattingDayPeriodValues = { narrow : { am : 'öö' , pm : 'ös' , midnight : 'gy' , noon : 'ö' , morning : 'sa' , afternoon : 'ös' , evening : 'ak' , night : 'ge' , } , abbreviated : { am : 'ÖÖ' , pm : 'ÖS' , midnight : 'gece yarısı' , noon : 'öğlen' , morning : 'sabahleyin' , afternoon : 'öğleden sonra' , evening : 'akşamleyin' , night : 'geceleyin' , } , wide : { am : 'ö.ö.' , pm : 'ö.s.' , midnight : 'gece yarısı' , noon : 'öğlen' , morning : 'sabahleyin' , afternoon : 'öğleden sonra' , evening : 'akşamleyin' , night : 'geceleyin' , } , } ; const ordinalNumber = ( dirtyNumber , _options ) => { const number = Number ( dirtyNumber ) ; return number + '.' ; } ; const localize = { ordinalNumber , era : buildLocalizeFn ( { values : eraValues , defaultWidth : 'wide' , } ) , quarter : buildLocalizeFn ( { values : quarterValues , defaultWidth : 'wide' , argumentCallback : ( quarter ) => ( Number ( quarter ) - 1 ) as Quarter , } ) , month : buildLocalizeFn ( { values : monthValues , defaultWidth : 'wide' , } ) , day : buildLocalizeFn ( { values : dayValues , defaultWidth : 'wide' , } ) , dayPeriod : buildLocalizeFn ( { values : dayPeriodValues , defaultWidth : 'wide' , formattingValues : formattingDayPeriodValues , defaultFormattingWidth : 'wide' , } ) , } ; export default localize ;