public function elfinderLocalizationsAsJson()
    {
        $i18n = [];

        foreach ($this->localizations() as $id => $translations) {
            foreach ($translations->data() as $language => $message) {
                $i18n[$language][$id] = $message;
            }
        }

        return json_encode($i18n, (JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE));
    }