Skip to content

Commit 37f1080

Browse files
committed
fix: use translated strings
1 parent cf81824 commit 37f1080

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

app/locales/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export const en = {
1919
'nav.logout': 'Logout',
2020
'dashboard.pageTitle': 'Open School Bell',
2121
'dashboard.devices': 'Sounders',
22+
'dashboard.services': 'Services',
23+
'dashboard.services.background': 'Background Worker',
24+
'dashboard.services.tts': 'Text-To-Speech Engine',
2225
'dashboard.table.name': 'Name',
2326
'dashboard.table.status': 'Status',
2427
'dashboard.table.lastSeen': 'Last Seen',

app/routes/_index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default function Index() {
191191
</table>
192192
</div>
193193
<div className="box">
194-
<h2>Services</h2>
194+
<h2>{t('dashboard.services')}</h2>
195195
<table className="box-table">
196196
<thead>
197197
<tr>
@@ -202,7 +202,7 @@ export default function Index() {
202202
</thead>
203203
<tbody>
204204
<tr>
205-
<td>Background Worker</td>
205+
<td>{t('dashboard.services.background')}</td>
206206
<td className="text-center">
207207
{new Date().getTime() / 1000 -
208208
new Date(JSON.parse(workerLastSeen)).getTime() / 1000 <
@@ -218,7 +218,7 @@ export default function Index() {
218218
</td>
219219
</tr>
220220
<tr>
221-
<td>Text-To-Speech Engine</td>
221+
<td>{t('dashboard.services.tts')}</td>
222222
<td className="text-center">
223223
{new Date().getTime() / 1000 -
224224
new Date(JSON.parse(ttsLastSeen)).getTime() / 1000 <

0 commit comments

Comments
 (0)