Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load and subscribe to backend translations #894

Merged
merged 3 commits into from
Mar 1, 2018
Merged

Conversation

emlove
Copy link
Contributor

@emlove emlove commented Feb 16, 2018

Description

This PR allows the frontend to fetch and listen for updates to backend-defined translations. The intention here is that platforms will register platform-specific strings (configurator prompts, custom sensor states, etc.), which the frontend will load dynamically from the backend.

Backend PR: home-assistant/core#12453

@emlove emlove changed the title [WIP] Load and subscribe to backend translations Load and subscribe to backend translations Feb 25, 2018
@balloob balloob merged commit 101794c into master Mar 1, 2018
@balloob balloob deleted the backend-translations branch March 1, 2018 03:32
@@ -122,10 +122,10 @@
loadBackendTranslations() {
if (!this.hass.language) return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to change this to selectedLanguage too. See home-assistant/core#13035, we're requesting /api/translations/null on startup.

if (!this.hass. selectedLanguage) return;

@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants