1
1
import server from "../../services/server.js" ;
2
2
import utils from "../../services/utils.js" ;
3
+ import { t } from "../../services/i18n.js" ;
3
4
import BasicWidget from "../basic_widget.js" ;
4
5
5
6
const TPL = `
6
7
<div class="about-dialog modal fade mx-auto" tabindex="-1" role="dialog">
7
8
<div class="modal-dialog modal-lg" role="document">
8
9
<div class="modal-content">
9
10
<div class="modal-header">
10
- <h5 class="modal-title mr-auto">About TriliumNext Notes </h5>
11
+ <h5 class="modal-title mr-auto">${ t ( "about.title" ) } </h5>
11
12
12
13
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0;">
13
14
<span aria-hidden="true">×</span>
@@ -16,33 +17,33 @@ const TPL = `
16
17
<div class="modal-body">
17
18
<table class="table table-borderless">
18
19
<tr>
19
- <th>Homepage: </th>
20
+ <th>${ t ( "about.homepage" ) } </th>
20
21
<td><a href="https://github.com/TriliumNext/Notes" class="external">https://github.com/TriliumNext/Notes</a></td>
21
22
</tr>
22
23
<tr>
23
- <th>App version: </th>
24
+ <th>${ t ( "about.app_version" ) } </th>
24
25
<td class="app-version"></td>
25
26
</tr>
26
27
<tr>
27
- <th>DB version: </th>
28
+ <th>${ t ( "about.db_version" ) } </th>
28
29
<td class="db-version"></td>
29
30
</tr>
30
31
<tr>
31
- <th>Sync version: </th>
32
+ <th>${ t ( "about.sync_version" ) } </th>
32
33
<td class="sync-version"></td>
33
34
</tr>
34
35
<tr>
35
- <th>Build date: </th>
36
+ <th>${ t ( "about.build_date" ) } </th>
36
37
<td class="build-date"></td>
37
38
</tr>
38
39
39
40
<tr>
40
- <th>Build revision: </th>
41
+ <th>${ t ( "about.build_date" ) } </th>
41
42
<td><a href="" class="build-revision external" target="_blank"></a></td>
42
43
</tr>
43
44
44
45
<tr>
45
- <th>Data directory: </th>
46
+ <th>${ t ( "about.data_directory" ) } </th>
46
47
<td class="data-directory"></td>
47
48
</tr>
48
49
</table>
0 commit comments