public function shortcodeLocale(Event $event, array $atts, $content, $tag)
    {
        $option = array_keys((array)$atts);
        $locale = I18n::locale();
        $languages = quickapps('languages');
        $out = '';

        if (!isset($languages[$locale])) {
            return $out;
        }

        if (empty($option)) {
            $option = 'code';
        } else {
            $option = $option[0];
        }

        if ($info = $languages[$locale]) {
            switch ($option) {
                case 'code':
                    $out = $info['code'];
                    break;

                case 'name':
                    $out = $info['name'];
                    break;

                case 'direction':
                    $out = $info['direction'];
                    break;
            }
        }

        return $out;
    }