Core POC support for polymer i18n (#6344)

* Core POC support for polymer i18n

* Add gulp to build_frontend

* Remove frontend build

* Updated translations format

* Eliminate translation namespace from panel names

* Only register translations path in dev mode
This commit is contained in:
Adam Mills 2017-10-27 00:46:21 -04:00 committed by Paulus Schoutsen
parent 9d0c2a8dae
commit 583e57042b
4 changed files with 6 additions and 4 deletions

View file

@ -276,9 +276,11 @@ def async_setup(hass, config):
if is_dev:
hass.http.register_static_path("/home-assistant-polymer", repo_path)
hass.http.register_static_path(
"/static/translations",
os.path.join(repo_path, "build/translations"))
sw_path = os.path.join(repo_path, "build/service_worker.js")
static_path = os.path.join(repo_path, 'hass_frontend')
else:
sw_path = os.path.join(frontend_path, "service_worker.js")
static_path = frontend_path