# polylang/trunk/src/modules/Blocks/Language_Switcher/Standard/block.json

Polylang, version trunk. 81 lines.

- Page: https://pluginprobe.com/plugins/polylang/trunk/code/src/modules/Blocks/Language_Switcher/Standard/block.json
- Raw: https://pluginprobe.com/plugins/polylang/trunk/raw/src/modules/Blocks/Language_Switcher/Standard/block.json
- Modified: 2026-09-14T16:30:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/polylang/trunk/code/src/modules/Blocks/Language_Switcher/Standard/block.json#L10-L20`.

```json
{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "name": "polylang/language-switcher",
    "version": "3.9",
    "title": "Language Switcher",
    "category": "widgets",
    "description": "Language switcher to insert in content or as a widget.",
    "example": {},
	"attributes": {
		"layout": {
			"type": "string",
			"enum": ["vertical", "horizontal", "dropdown", "select"],
			"default": "vertical"
		},
		"show_labels": {
			"type": "string",
			"enum": ["names", "codes", ""],
			"default": "names"
		},
		"show_flags": {
			"type": "boolean",
			"default": false
		},
		"force_home": {
			"type": "boolean",
			"default": false
		},
		"hide_current": {
			"type": "boolean",
			"default": false
		},
		"hide_if_no_translation": {
			"type": "boolean",
			"default": false
		},
		"flag_aspect_ratio": {
			"type": "string",
			"enum": ["3:2", "1:1"],
			"default": "3:2"
		},
		"flag_border_radius": {
			"type": "number",
			"default": 0
		},
		"flag_width": {
			"type": "string",
			"default": "18px"
		},
		"flag_label_spacing": {
			"type": "string",
			"default": "0.3em"
		},
		"className": {
			"type": "string",
			"default": ""
		}
	},
	"supports": {
		"spacing": {
			"margin": true,
			"padding": true,
			"blockGap": true
		},
		"align": true,
		"color": {
			"background": true
		},
		"typography": {
			"fontSize": true,
			"lineHeight": true,
			"textAlign": true
		}
	},
	"textdomain": "polylang",
	"style": "pll-language-switcher",
	"editorStyle": "pll-language-switcher-editor",
	"editorScript": "pll_blocks",
	"viewScript": "pll-language-switcher"
}

```
