Skip to content

Ask specific translations#5560

Merged
balloob merged 5 commits intodevfrom
ask-specific-translations
Apr 19, 2020
Merged

Ask specific translations#5560
balloob merged 5 commits intodevfrom
ask-specific-translations

Conversation

@balloob
Copy link
Copy Markdown
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:

Comment thread src/state/translations-mixin.ts Outdated
Comment thread src/state/translations-mixin.ts Outdated
@balloob balloob force-pushed the ask-specific-translations branch from 1dffabe to 4745072 Compare April 17, 2020 21:49
@balloob balloob marked this pull request as ready for review April 17, 2020 21:50
Comment thread build-scripts/webpack.js
__BUILD__: JSON.stringify(latestBuild ? "latest" : "es5"),
__VERSION__: JSON.stringify(version),
__DEMO__: false,
__BACKWARDS_COMPAT__: false,
Copy link
Copy Markdown
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.

3 participants