PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / modules / Blocks / Language_Switcher / Standard / block.json

block.json in Polylang trunk, at src/modules/Blocks/Language_Switcher/Standard/block.json

81 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "polylang/language-switcher",
5 "version": "3.9",
6 "title": "Language Switcher",
7 "category": "widgets",
8 "description": "Language switcher to insert in content or as a widget.",
9 "example": {},
10 "attributes": {
11 "layout": {
12 "type": "string",
13 "enum": ["vertical", "horizontal", "dropdown", "select"],
14 "default": "vertical"
15 },
16 "show_labels": {
17 "type": "string",
18 "enum": ["names", "codes", ""],
19 "default": "names"
20 },
21 "show_flags": {
22 "type": "boolean",
23 "default": false
24 },
25 "force_home": {
26 "type": "boolean",
27 "default": false
28 },
29 "hide_current": {
30 "type": "boolean",
31 "default": false
32 },
33 "hide_if_no_translation": {
34 "type": "boolean",
35 "default": false
36 },
37 "flag_aspect_ratio": {
38 "type": "string",
39 "enum": ["3:2", "1:1"],
40 "default": "3:2"
41 },
42 "flag_border_radius": {
43 "type": "number",
44 "default": 0
45 },
46 "flag_width": {
47 "type": "string",
48 "default": "18px"
49 },
50 "flag_label_spacing": {
51 "type": "string",
52 "default": "0.3em"
53 },
54 "className": {
55 "type": "string",
56 "default": ""
57 }
58 },
59 "supports": {
60 "spacing": {
61 "margin": true,
62 "padding": true,
63 "blockGap": true
64 },
65 "align": true,
66 "color": {
67 "background": true
68 },
69 "typography": {
70 "fontSize": true,
71 "lineHeight": true,
72 "textAlign": true
73 }
74 },
75 "textdomain": "polylang",
76 "style": "pll-language-switcher",
77 "editorStyle": "pll-language-switcher-editor",
78 "editorScript": "pll_blocks",
79 "viewScript": "pll-language-switcher"
80 }
81