This ensures that if the master build gets cancelled when translations
change, or if any other weird situation happens, we know the
translations will be uploaded after the next build.
The Lokalise server has a bug that the internal portion of key
references was misinterpreted as a symfony key, and was getting auto
converted by the convert placeholders feature. Since we don't use this
we're turning it off to work around the bug.
* Translations for logbook/history panels
* Switch to base localize function
* Move periods to generic durations keys
These are going to end up part of a duration class of keys that will be
more widely used.
* Move flatten to separate gulp task
* Split translation fragments into separate files
* Load translation fragments when switching panels
* Fix gulpfile lint
* Move app-location to home-assistant.html
* Compute panel navigation in home-assistant.html
* Only pass down panelUrl from home-assistant.html
* Store panelUrl on hass
* Store computed panel on hass object
* Revert "Store computed panel on hass object"
This reverts commit 0f150b1faa2b91588a432ab346821b633b349d1a.
IMO this didn't really make the code cleaner. Just wanted to see how it
would look. Keeping it here as a reverted commit in case we do want to
use it.
* Move computeDomain and format functions to js
* Add tests for computeStateDisplay
* Always recalculate state display
* Remove LANGUAGE from hassUtils object
* Move AppLocalizeBehavior import to mixins
* Import mixins to state-card-display
* Safety check on computeStateDisplay
* Don't store computed domains on stateObj
* Integration tests for state-card-display
* Include extractDomain code in polymer repo
* Remove util function null checking
* Dont render test element without hass and stateObj
* Revert "Don't store computed domains on stateObj"
This reverts commit e3509d71823ff5e42a4dcf4849a98c5bb6cb391c.
* Revert "Always recalculate state display"
This reverts commit 27c24e2694ee6f7c147782532268b3a67998d49b.
* MVP tests for hass-util.html
* MVP util.js to allow individual JS function export
* Use mocha to unit test js logic
* Isolate mocha test directory
* Move mocha opts to separate file
* Default export of util function
* Use reify for mocha tests instead of babel
* Fix deeper nested translations build
* Make fallback to message optional
* Use translated state names
* Remove unused switch cases
* Use src en.json as fallback instead of downloaded
* Use separate translations for badge states
* Eliminate unnecessary StatesMixin
* Remove now unused localize fallback parameter
* Fix capitalization to match material guidelines
* Move media player text generation back to model
* Make localize args object
* Change Mixin to use computed function
* Revert to normal args spread for haLocalize
* Rename to computeHaLocalize
* Allow state to default for badge and media player
* Denormalize en.json with Lokalise placeholders
* Fix cleanups missed after master merge
* Split zwave query stage states to separate keys
* Throw error to fail gulp build
* Fix zwave template and regression on general state
* Update zwave to use new state values
* Support for zwave initializing state
* Show query stage on card for zwave entities
* Move logic to compteStateState
* Store current translations in git
* Handle empty strings in translation downloads
* Use more consice filtering
* Skip empty keys on translation download
* Core POC support for polymer i18n
* Move translation from core.js to html
* Replace fetch with XHR
* Convert translation pipeline to gulp
* Convert from polyglot to Polymer localize
* Pass through missing keys for custom panels
* Store promise to be reused
* Use cacheFirst sw handler for translations
* Write full filenames to translationFingerprints
* Precache en translation
* Convert home-assistant-main to ES6 class
* Create a localization mixin
* Cleanup
* Add polymer tags to annotate for linter
* Rename fingerprints to translationMetadata
* Build translation native names into metadata
* Add language selection UI to sidebar
* Provide separate message namespace argument
* Store language/resources on hass object
* Store translationMetadata on hass
* Move language selector to config panel
* Temporarily hide language selector
* Small cleanups
* Use dynamic-align for more flexible layout
* Migrate to fetch API
* Only send change events for user selection events
* Update for new linting rules
* Migrate build_frontend changes
* ES6 class upgrade ha-sidebar and home-assistant
* Remove unused imports
* Fix linter errors
* Added event fire mixin
* By some miracle that still worked
* Ignore class-methods-use-this
* Add mixin annotation
* Install gulp as dev dependency
* Placeholder gulpfile
* Replace rollup invocations with gulp
* Consolidate duplicated code
* Big cleanup of gulpfile
* Without cache test
* Revert "Without cache test"
This reverts commit 0e3881d8d79b81faa514669fa2836e415dcc5c95.
With the removal of moment.js, dates and times are no longer formatted
using the native locale. This allows the browser to format if the
functionality is available (Everyone but Safari).
Also included is a correction in relativeTime. Times in the future were
being displaed incorrectly -xxx seconds, and the in/ago verbage was
reintroduced.