From 8652996b65f6c0e5748c88ab4bdb813bd7cab674 Mon Sep 17 00:00:00 2001 From: thekiwismarthome Date: Mon, 18 May 2026 20:29:48 +1200 Subject: [PATCH] fix: add translations/en.json to resolve 500 on options flow --- .../translations/en.json | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 custom_components/shopping_list_manager/translations/en.json diff --git a/custom_components/shopping_list_manager/translations/en.json b/custom_components/shopping_list_manager/translations/en.json new file mode 100644 index 0000000..62771bc --- /dev/null +++ b/custom_components/shopping_list_manager/translations/en.json @@ -0,0 +1,33 @@ +{ + "config": { + "step": { + "user": { + "title": "Shopping List Manager", + "description": "Set up the Shopping List Manager integration. Country and other settings can be configured after setup via the Configure button." + } + }, + "abort": { + "single_instance_allowed": "Only a single instance of Shopping List Manager is allowed." + } + }, + "options": { + "step": { + "init": { + "title": "Shopping List Manager Options", + "description": "Changing country will reload the product catalog on next restart.", + "data": { + "country": "Country", + "enable_price_tracking": "Enable price tracking", + "enable_image_search": "Enable image search", + "metric_units_only": "Metric units only" + }, + "data_description": { + "country": "Used to localise product catalog and pricing.", + "enable_price_tracking": "Track and display product prices.", + "enable_image_search": "Search for product images automatically.", + "metric_units_only": "Show only metric units (g, kg, ml, L)." + } + } + } + } +}