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

Ask specific translations #5560

Merged
merged 5 commits into from
Apr 19, 2020
Merged

Ask specific translations #5560

merged 5 commits into from
Apr 19, 2020

Conversation

balloob
Copy link
Member

@balloob balloob commented Apr 17, 2020

Breaking change

Proposed change

Update the frontend to only request the translations that it needs, instead of loading all translations of all possible integrations that will be encountered.

Requires home-assistant/core#34329

Also adds icons to onboarding

image

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@balloob balloob marked this pull request as ready for review April 17, 2020 21:50
@@ -70,6 +70,7 @@ const createWebpackConfig = ({
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
__VERSION__: JSON.stringify(version),
__DEMO__: false,
__BACKWARDS_COMPAT__: false,
Copy link
Member Author

Choose a reason for hiding this comment

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

This new constant allows us to add some code paths to remain backwards compatibility. This path will be removed if backwards compat is turned off.

Currently only Cast will have this turned on.

@balloob balloob merged commit d45a674 into dev Apr 19, 2020
@balloob balloob deleted the ask-specific-translations branch April 19, 2020 00:14
@lock lock bot locked and limited conversation to collaborators Apr 25, 2020
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.

None yet

3 participants