Skip to content

Commit d06e5d4

Browse files
committed
add translations/en.json so HA actually loads our strings
1 parent 1f15ec5 commit d06e5d4

2 files changed

Lines changed: 64 additions & 0 deletions

File tree

custom_components/closest_intent/strings.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,67 @@
11
{
2+
"config": {
3+
"step": {
4+
"user": {
5+
"title": "Closest Intent",
6+
"description": "Fuzzy intent matcher. Garbled STT output in, actual intent out. Defaults are sensible -- start with them and tune later via the options.",
7+
"data": {
8+
"threshold": "Match threshold",
9+
"slot_threshold": "Slot match threshold",
10+
"expansion_cap": "Pattern expansion cap",
11+
"denylist": "Intent denylist",
12+
"slot_extraction": "Extract slot values",
13+
"include_builtins": "Include built-in intents",
14+
"builtin_allowlist": "Built-in intent allowlist",
15+
"fallback_agent": "Fallback conversation agent",
16+
"startup_self_check": "Startup self-check"
17+
},
18+
"data_description": {
19+
"threshold": "Minimum fuzzy-match score (0-100). Higher = stricter. Below this, the original text is forwarded unchanged to the fallback agent.",
20+
"slot_threshold": "Minimum score for resolving a captured slot value against its known list. Lower if entity names are frequently misunderstood.",
21+
"expansion_cap": "Maximum number of surface forms generated per pattern. Bounds the alternation/optional explosion. 0 disables expansion entirely.",
22+
"denylist": "Intent names to exclude from matching. Useful when a built-in or imported intent collides with your own.",
23+
"slot_extraction": "Substitute extracted slot values into the canonical sentence forwarded to Hassil. Turn off to only correct slot-less phrases.",
24+
"include_builtins": "Also fuzzy-match against Home Assistant's built-in intents (HassTurnOn etc.). Off by default; prefer the allowlist below.",
25+
"builtin_allowlist": "Specific built-in intent names to always consider, even when the include-builtins toggle above is off.",
26+
"fallback_agent": "Agent consulted only if no intent matches and Hassil also fails. Default is Hassil itself (i.e. no fallback). Set to an LLM agent if you want one.",
27+
"startup_self_check": "On startup, verify that each custom intent's perfect-input still routes to itself. Raises a repair issue if clashes are found. Recommended on."
28+
}
29+
}
30+
},
31+
"abort": {
32+
"already_configured": "Closest Intent is already configured."
33+
}
34+
},
35+
"options": {
36+
"step": {
37+
"init": {
38+
"title": "Closest Intent options",
39+
"description": "Changes apply immediately -- no restart needed.",
40+
"data": {
41+
"threshold": "Match threshold",
42+
"slot_threshold": "Slot match threshold",
43+
"expansion_cap": "Pattern expansion cap",
44+
"denylist": "Intent denylist",
45+
"slot_extraction": "Extract slot values",
46+
"include_builtins": "Include built-in intents",
47+
"builtin_allowlist": "Built-in intent allowlist",
48+
"fallback_agent": "Fallback conversation agent",
49+
"startup_self_check": "Startup self-check"
50+
},
51+
"data_description": {
52+
"threshold": "Minimum fuzzy-match score (0-100). Higher = stricter. Below this, the original text is forwarded unchanged to the fallback agent.",
53+
"slot_threshold": "Minimum score for resolving a captured slot value against its known list. Lower if entity names are frequently misunderstood.",
54+
"expansion_cap": "Maximum number of surface forms generated per pattern. Bounds the alternation/optional explosion. 0 disables expansion entirely.",
55+
"denylist": "Intent names to exclude from matching. Useful when a built-in or imported intent collides with your own.",
56+
"slot_extraction": "Substitute extracted slot values into the canonical sentence forwarded to Hassil. Turn off to only correct slot-less phrases.",
57+
"include_builtins": "Also fuzzy-match against Home Assistant's built-in intents (HassTurnOn etc.). Off by default; prefer the allowlist below.",
58+
"builtin_allowlist": "Specific built-in intent names to always consider, even when the include-builtins toggle above is off.",
59+
"fallback_agent": "Agent consulted only if no intent matches and Hassil also fails. Default is Hassil itself (i.e. no fallback). Set to an LLM agent if you want one.",
60+
"startup_self_check": "On startup, verify that each custom intent's perfect-input still routes to itself. Raises a repair issue if clashes are found. Recommended on."
61+
}
62+
}
63+
}
64+
},
265
"issues": {
366
"self_check_clashes": {
467
"title": "Closest Intent: {count} clashing custom intent(s)",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../strings.json

0 commit comments

Comments
 (0)