Skip to content

Commit

Permalink
update strings.json so it will translate for users
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey0000 committed Aug 11, 2024
1 parent 7d8b79d commit 12d4fca
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/mammotion/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MammotionNumberEntityDescription(NumberEntityDescription):

NUMBER_ENTITIES: tuple[MammotionNumberEntityDescription, ...] = (
MammotionNumberEntityDescription(
key="working_speed",
key="start_progress",
min_value=0,
max_value=100,
step=1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"config": {
"abort": {
"already_configured": "Device is already configured",
"already_in_progress": "Configuration flow is already in progress",
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
"no_devices_found": "Could not find devices",
"no_longer_present": "Device is no longer present",
"not_supported": "Device not supported"
Expand Down Expand Up @@ -72,6 +72,64 @@
"start_map_sync": {
"name": "Sync maps"
}
},
"switch": {
"blades_on_off": {
"name": "Blades On/Off",
"description": "Turn the blades on or off."
},
"mowing_on_off": {
"name": "Mowing On/Off",
"description": "Start or stop mowing."
},
"dump_grass_on_off": {
"name": "Dump Grass On/Off",
"description": "Enable or disable grass dumping."
},
"rain_detection_on_off": {
"name": "Rain Detection On/Off",
"description": "Turn rain detection on or off."
},
"side_led_on_off": {
"name": "Side LED On/Off",
"description": "Enable or disable the side LED."
},
"perimeter_on_off": {
"name": "Perimeter First",
"description": "Perimeter first or lines/zigzag first mowing."
}
},
"select": {
"cutting_mode": {
"name": "Cutting Mode",
"description": "Select the cutting mode for the mower."
},
"border_patrol_mode": {
"name": "Border Patrol Mode",
"description": "Select the border patrol mode for the mower."
},
"obstacle_laps_mode": {
"name": "Obstacle Laps Mode",
"description": "Select the obstacle laps mode for the mower."
},
"mow_order": {
"name": "Mow Order",
"description": "Select the order in which the areas should be mowed."
}
},
"number": {
"start_progress": {
"name": "Start Progress",
"description": "Set the start progress percentage."
},
"cutter_height": {
"name": "Cutter Height",
"description": "Adjust the height of the cutter in increments."
},
"working_speed": {
"name": "Working Speed",
"description": "Set the working speed of the mower."
}
}
},
"exceptions": {
Expand Down

0 comments on commit 12d4fca

Please sign in to comment.