component information: add translation support

This commit is contained in:
Beat Küng
2023-03-20 21:57:25 -04:00
committed by Daniel Agar
parent 631046b962
commit 22c94f805a
5 changed files with 73 additions and 5 deletions
+26
View File
@@ -11,6 +11,32 @@ class JsonOutput():
all_params=[]
all_json['parameters']=all_params
all_json["translation"] = {
"items": {
"parameters": {
"list": {
"key": "name",
"translate": [ "shortDesc", "longDesc" ],
"translate-global": ["category", "group"],
"items": {
"bitmask": {
"list": {
"key": "index",
"translate": [ "description" ]
}
},
"values": {
"list": {
"key": "value",
"translate": [ "description" ]
}
}
}
}
}
}
}
schema_map = {
"short_desc": "shortDesc",
"long_desc": "longDesc",