Hi everyone!
Some context on my question: right now you can only arm alarm systems in English with the Google Assistant. However, I’ve seen that Google’s Smart Home Reference mentions that we can provide translations of each armed state (or arm levels, as defined by Google), something which isn’t currently done by the Google Assistant component (see //homeassistant/components/google_assistant/trait.py:1139).
My intention is to create a PR which provides these translations (which already exist at //core/homeassistant/components/alarm_control_panel/strings.json), so the alarm can be armed using any language.
The change is simple, however I’d like to ask the community whether there’s a common way of accessing the translation strings. I mean, I could directly parse the JSON strings in the translations
folder, but if there’s a library/function which encapsulates that, using it would be great from the point of view of maintainability.
I’d appreciate any guidance, thanks in advance!