From 097a8cfdc6cfb4240fb830dd663b7dbc07aedf78 Mon Sep 17 00:00:00 2001 From: Adam Mills Date: Fri, 22 Dec 2017 14:22:13 -0500 Subject: [PATCH] Translations for logbook/history panels (#741) * 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. --- gulp/tasks/translations.js | 2 ++ panels/history/ha-panel-history.html | 18 +++++++++++------- panels/logbook/ha-panel-logbook.html | 12 ++++++++---- src/translations/en.json | 14 ++++++++++++++ 4 files changed, 35 insertions(+), 11 deletions(-) diff --git a/gulp/tasks/translations.js b/gulp/tasks/translations.js index b425d15593..c650148640 100755 --- a/gulp/tasks/translations.js +++ b/gulp/tasks/translations.js @@ -18,6 +18,8 @@ const outDir = workDir + '/output'; // should mirror the fragment definitions in polymer.json, so that we load // additional resources at equivalent points. const TRANSLATION_FRAGMENTS = [ + 'history', + 'logbook', 'shopping-list', ]; diff --git a/panels/history/ha-panel-history.html b/panels/history/ha-panel-history.html index fe690fd4ab..ea6a4703e6 100644 --- a/panels/history/ha-panel-history.html +++ b/panels/history/ha-panel-history.html @@ -14,6 +14,7 @@ +