Skip to content

Commit f845333

Browse files
committed
feat: Add completions for external babelbox plugin
1 parent cdf295d commit f845333

File tree

2 files changed

+41
-7
lines changed

2 files changed

+41
-7
lines changed

res/schemas/beet_pipeline.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696
},
9797
{
9898
"const": "beet.contrib.babelbox",
99-
"description": "Plugin that loads translations from csv files"
99+
"description": "Plugin that loads translations from csv files. Uses a minimal custom implementation"
100+
},
101+
{
102+
"const": "babelbox.integration.beet",
103+
"description": "Plugin that loads translations from csv files. Uses https://pypi.org/project/babelbox/"
100104
},
101105
{
102106
"const": "mcanitexgen.integration.beet",
@@ -127,25 +131,29 @@
127131
"type": "string"
128132
},
129133
"function_header": {
130-
"description": "Function-header plugin configuration",
134+
"description": "Config for beet.contrib.function_header plugin",
131135
"$ref": "contrib/function_header.json"
132136
},
133137
"lantern_load": {
134-
"description": "Lantern-load plugin configuration",
138+
"description": "Config for beet.lantern_load plugin",
135139
"$ref": "contrib/lantern_load.json"
136140
},
137141
"render": {
138-
"description": "Render plugin configuration",
142+
"description": "Config for beet.contrib.render plugin",
139143
"$ref": "contrib/render.json"
140144
},
141145
"sandstone": {
142-
"description": "Sandstone plugin configuration",
146+
"description": "Config for beet.contrib.sandstone plugin",
143147
"$ref": "contrib/sandstone.json"
144148
},
145-
"babelbox": {
146-
"description": "Babelbox plugin configuration",
149+
"babelbox-contrib": {
150+
"description": "Config for beet.contrib.babelbox plugin",
147151
"$ref": "contrib/babelbox.json"
148152
},
153+
"babelbox": {
154+
"description": "Config for babelbox.integration.beet plugin",
155+
"$ref": "plugins/babelbox.json"
156+
},
149157
"mcanitexgen": {
150158
"description": "Mcanitexgen plugin configuration",
151159
"$ref": "plugins/mcanitexgen.json"

res/schemas/plugins/babelbox.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"type": "object",
4+
"properties": {
5+
"load": {
6+
"description": "Load csv translations",
7+
"type": "array",
8+
"items": {
9+
"type": "string"
10+
}
11+
},
12+
"dialect": {
13+
"description": "Use a specific csv dialect instead of relying on sniffing",
14+
"type": "string", "enum": ["excel", "excel-tab", "unix"]
15+
},
16+
"prefix_identifiers": {
17+
"description": "Whether translation keys should be prefixed by the filename",
18+
"type": "boolean"
19+
},
20+
"delimiter": {
21+
"description": "String used to delimit csv columns",
22+
"type": "string",
23+
"minLength": 1
24+
}
25+
}
26+
}

0 commit comments

Comments
 (0)