Skip to content

Commit

Permalink
var
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-blackson committed Aug 3, 2023
1 parent 10d2704 commit e7b78b1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"time": "Time",
"totalNoOfDays": "Total number of days",
"totalNoOfHours": "Total number of hours",
"totalNoOfWeeks": "Total number of weeks"
"totalNoOfWeeks": "Total number of weeks",
"countdowns": "Countdowns"
}
4 changes: 2 additions & 2 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab col s2"><a href="#tab-addcountdown" class="translate">overview</a></li>
<li class="tab col s2"><a href="#tab-settings" class="translate active">settings</a></li>
<li class="tab col s2"><a href="#tab-addcountdown" class="translate">countdowns</a></li>
</ul>
</div>

Expand Down Expand Up @@ -334,7 +334,7 @@
</div>
<div class="input-field col s6">
<input type="checkbox" id="endDate" class="value" />
<label for="endDate" class="translate">endDate</label>
<label for="endDate" class="translate">date</label>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ async function loadValuesforTable(){

if (adapter.config.endDate){
let endDate = await adapter.getStateAsync('countdowns.' + id1.common.name + '.endDate')
tempTable[translateObject.headerEndDate + ' '] = endDate.val
tempTable[translateObject.headerDate + ' '] = endDate.val
}
countdownData.push(tempTable);

Expand Down
14 changes: 14 additions & 0 deletions translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var textWeeks = '';
var headerCountdown = '';
var headerName = '';
var headerEndDate = '';
var headerDate = '';


module.exports = class A {
Expand All @@ -55,6 +56,7 @@ module.exports = class A {
headerCountdown = 'Countdown';
headerName = 'Name';
headerEndDate = 'Enddatum';
headerDate = 'Datum';
break;
case 'en':
textYear = 'Year';
Expand All @@ -76,6 +78,7 @@ module.exports = class A {
headerCountdown = 'Countdown';
headerName = 'Name';
headerEndDate = 'Enddate';
headerDate = 'Date';
break;
case 'ru':
textYear = 'Год';
Expand All @@ -97,6 +100,7 @@ module.exports = class A {
headerCountdown = 'Отсчет';
headerName = 'Имя';
headerEndDate = 'конец';
headerDate = 'Дата';
break;
case 'pt':
textYear = 'ano';
Expand All @@ -118,6 +122,7 @@ module.exports = class A {
headerCountdown = 'Contagem';
headerName = 'Nome';
headerEndDate = 'Data de término';
headerDate = 'Data';
break;
case 'nl':
textYear = 'jaar';
Expand All @@ -139,6 +144,7 @@ module.exports = class A {
headerCountdown = 'Aftellen';
headerName = 'Naam';
headerEndDate = 'Vertaling';
headerDate = 'Datum';
break;
case 'fr':
textYear = 'année';
Expand All @@ -160,6 +166,7 @@ module.exports = class A {
headerCountdown = 'Compte à rebours';
headerName = 'Nom';
headerEndDate = 'Enddate';
headerDate = 'Date';
break;
case 'it':
textYear = 'anno';
Expand All @@ -181,6 +188,7 @@ module.exports = class A {
headerCountdown = 'Conteggio';
headerName = 'Nome';
headerEndDate = 'Termine';
headerDate = 'Data';
break;
case 'es':
textYear = 'año';
Expand All @@ -202,6 +210,7 @@ module.exports = class A {
headerCountdown = 'Cuenta atrás';
headerName = 'Nombre';
headerEndDate = 'Fecha final';
headerDate = 'Fecha';
break;
case 'pl':
textYear = 'rok';
Expand All @@ -223,6 +232,7 @@ module.exports = class A {
headerCountdown = 'Countdown';
headerName = 'Nazwa';
headerEndDate = 'Data końcowa';
headerDate = 'Data';
break;
case 'zh-cn':
textYear = '年';
Expand All @@ -244,6 +254,7 @@ module.exports = class A {
headerCountdown = '倒数';
headerName = '姓名';
headerEndDate = '日期';
headerDate = '日期';
break;
default:
textYear = 'Year';
Expand All @@ -265,6 +276,7 @@ module.exports = class A {
headerCountdown = 'Countdown';
headerName = 'Name';
headerEndDate = 'Enddate';
headerDate = 'Date';
break;
}

Expand Down Expand Up @@ -293,6 +305,8 @@ module.exports = class A {
translateObject.headerName = headerName
translateObject.textWeeks = textWeeks
translateObject.headerEndDate = headerEndDate
translateObject.headerDate = headerDate


return translateObject
}
Expand Down

0 comments on commit e7b78b1

Please sign in to comment.