From cd208021273571d056cbee7ed083d0fd416090b1 Mon Sep 17 00:00:00 2001 From: flan Date: Mon, 3 Aug 2026 18:48:30 +0000 Subject: [PATCH] Add English translations for entity and config-flow strings Custom integrations read translations/en.json rather than strings.json, so without this the entity names fall back to their translation keys. --- CHANGELOG.md | 2 ++ .../freshharvest/translations/en.json | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 custom_components/freshharvest/translations/en.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 017d9a4..f560592 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,3 +23,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 count, open order delivery date, and shopping window. - Parser tests covering totals, contents, the locked/open distinction, money parsing, and year rollover on undated cart tabs. +- English translations under `translations/en.json`, which is where custom + integrations read entity and config-flow strings from. diff --git a/custom_components/freshharvest/translations/en.json b/custom_components/freshharvest/translations/en.json new file mode 100644 index 0000000..7ae2955 --- /dev/null +++ b/custom_components/freshharvest/translations/en.json @@ -0,0 +1,29 @@ +{ + "config": { + "step": { + "user": { + "description": "Sign in with your freshharvest.com account.", + "data": { + "email": "Email", + "password": "Password" + } + } + }, + "error": { + "cannot_connect": "Failed to connect", + "invalid_auth": "Invalid authentication" + }, + "abort": { + "already_configured": "This account is already configured" + } + }, + "entity": { + "sensor": { + "next_delivery": { "name": "Next delivery" }, + "next_delivery_total": { "name": "Next delivery total" }, + "next_delivery_items": { "name": "Next delivery items" }, + "open_order_delivery": { "name": "Open order delivery" }, + "shop_window": { "name": "Shopping window" } + } + } +}