Add locale for use with date range facet

<?php
/** filter locale text strings for use with the date range facet **/
add_filter( 'facetwp_render_output', function( $output, $params ) {
    if ( isset( $output['settings']['my_date_range'] ) ) {
        $output['settings']['my_date_range']['locale'] = [
            'weekdays_short' => ['Dg', 'Dl', 'Dt', 'Dc', 'Dj', 'Dv', 'Ds'], //abbreviations for Sun to Sat
            'months_short' => ['Gen', 'Febr', 'Març', 'Abr', 'Maig', 'Juny', 'Jul', 'Ag', 'Set', 'Oct', 'Nov', 'Des'], // abreviations for months Jan to Dec
            'months' => ['Gener', 'Febrer', 'Març', 'Abril', 'Maig', 'Juny', 'Juliol', 'Agost', 'Setembre', 'Octubre', 'Novembre', 'Desembre'],  //full name of months Jan to Dec
            'firstDayOfWeek' => 1, // 1 is Monday, 0 is Sunday
			'clearText' => 'Clear' // text for clear button
        ];
    }
    return $output;
}, 10, 2 );