Unlike localized strings merged in the home-assistant repository, custom components cannot take advantage of Lokalise for user submitted translations. However, custom component authors can still include translation with their components. These will be read from the
.translations directory, adjacent to the component source file. They are named
<component/platform name>.<language_code>.json, unless the custom component exists in its own directory, in which case the file is simply named
<language_code>.json in the
These files follow the same formatting as backend translation string files, but a copy will exist for each translated language.
The frontend will serve these files after Home Assistant is restarted.