<?php

class LSD_API_Controllers_I18n extends LSD_API_Controller
{
    public function languages(WP_REST_Request $request): WP_REST_Response
    {
        // Response
        return $this->response([
            'data' => [
                'success' => 1,
                'languages' => LSD_i18n::languages(),
            ],
            'status' => 200,
        ]);
    }
}
