Can custom components use common strings?

There are various “common” strings that can be used for localization.

For example:

[%key:common::config_flow::error::already_configured%]

I am trying to uses these in my component’s strings.json but I’m only seeing the literal value in the web interface and not the “friendly” value that [%key:common::config_flow::error::already_configured%] would “resolve” to.

Is there something that I’m missing?

Short answer: not really.
Those are only used in strings.json and translated automatically during deployment for core integrations. Since custom components only use the translated files under the translations folder that won’t work.

1 Like

Thanks for clarifying that!

I added “open PR against HA dev docs to explicitly call this out” to my todo list for sometime this week.