{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "rooster/language-switcher",
	"version": "1.0.0",
	"title": "Language switcher",
	"category": "theme",
	"icon": "translation",
	"description": "The site's languages from WPML or Polylang, each linking to the translation of the current page. Server-rendered, no script. Shows nothing on a site with one language.",
	"keywords": [ "language", "translation", "multilingual", "wpml", "polylang" ],
	"textdomain": "ai-eshop-optimizer",
	"attributes": {
		"display": { "type": "string", "enum": [ "menu", "list" ], "default": "menu" },
		"label": { "type": "string", "enum": [ "code", "name" ], "default": "code" },
		"flags": { "type": "boolean", "default": false }
	},
	"supports": {
		"html": false,
		"rooster": { "defer": { "allowed": false } }
	},
	"rooster": {
		"ui": {
			"display": { "label": "Style: a menu that opens, or a list" },
			"label": { "label": "Show each language as its code (EN) or its name (English)" },
			"flags": { "label": "Show flags (the multilingual plugin's images)" }
		}
	},
	"render": "file:./render.php"
}
