Skip to content

Commit 2b7d8af

Browse files
committed
Fix date translation interpolation
1 parent 57bf0d1 commit 2b7d8af

4 files changed

Lines changed: 64 additions & 15 deletions

File tree

frontend/viewer/src/locales/en.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"origin": [
1919
[
2020
"src/project/SyncDialog.svelte",
21-
234
21+
233
2222
]
2323
],
2424
"translation": "{0} - FieldWorks"
@@ -1060,7 +1060,24 @@
10601060
237
10611061
]
10621062
],
1063-
"translation": "Last change: "
1063+
"translation": "Last change: ",
1064+
"obsolete": true
1065+
},
1066+
"rZkl7/": {
1067+
"message": "Last change: {0}",
1068+
"placeholders": {},
1069+
"comments": [],
1070+
"origin": [
1071+
[
1072+
"src/project/SyncDialog.svelte",
1073+
196
1074+
],
1075+
[
1076+
"src/project/SyncDialog.svelte",
1077+
236
1078+
]
1079+
],
1080+
"translation": "Last change: {0}"
10641081
},
10651082
"Cb8zzH": {
10661083
"message": "Lexbox logo",
@@ -1910,7 +1927,7 @@
19101927
],
19111928
[
19121929
"src/project/SyncDialog.svelte",
1913-
219
1930+
218
19141931
],
19151932
[
19161933
"src/project/ProjectSidebar.svelte",
@@ -1930,7 +1947,7 @@
19301947
],
19311948
[
19321949
"src/project/SyncDialog.svelte",
1933-
217
1950+
216
19341951
]
19351952
],
19361953
"translation": "Synchronizing..."

frontend/viewer/src/locales/es.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"origin": [
1919
[
2020
"src/project/SyncDialog.svelte",
21-
234
21+
233
2222
]
2323
],
2424
"translation": ""
@@ -1060,6 +1060,23 @@
10601060
237
10611061
]
10621062
],
1063+
"translation": "",
1064+
"obsolete": true
1065+
},
1066+
"rZkl7/": {
1067+
"message": "Last change: {0}",
1068+
"placeholders": {},
1069+
"comments": [],
1070+
"origin": [
1071+
[
1072+
"src/project/SyncDialog.svelte",
1073+
196
1074+
],
1075+
[
1076+
"src/project/SyncDialog.svelte",
1077+
236
1078+
]
1079+
],
10631080
"translation": ""
10641081
},
10651082
"Cb8zzH": {
@@ -1910,7 +1927,7 @@
19101927
],
19111928
[
19121929
"src/project/SyncDialog.svelte",
1913-
219
1930+
218
19141931
],
19151932
[
19161933
"src/project/ProjectSidebar.svelte",
@@ -1930,7 +1947,7 @@
19301947
],
19311948
[
19321949
"src/project/SyncDialog.svelte",
1933-
217
1950+
216
19341951
]
19351952
],
19361953
"translation": ""

frontend/viewer/src/locales/fr.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"origin": [
1919
[
2020
"src/project/SyncDialog.svelte",
21-
234
21+
233
2222
]
2323
],
2424
"translation": ""
@@ -1060,6 +1060,23 @@
10601060
237
10611061
]
10621062
],
1063+
"translation": "",
1064+
"obsolete": true
1065+
},
1066+
"rZkl7/": {
1067+
"message": "Last change: {0}",
1068+
"placeholders": {},
1069+
"comments": [],
1070+
"origin": [
1071+
[
1072+
"src/project/SyncDialog.svelte",
1073+
196
1074+
],
1075+
[
1076+
"src/project/SyncDialog.svelte",
1077+
236
1078+
]
1079+
],
10631080
"translation": ""
10641081
},
10651082
"Cb8zzH": {
@@ -1910,7 +1927,7 @@
19101927
],
19111928
[
19121929
"src/project/SyncDialog.svelte",
1913-
219
1930+
218
19141931
],
19151932
[
19161933
"src/project/ProjectSidebar.svelte",
@@ -1930,7 +1947,7 @@
19301947
],
19311948
[
19321949
"src/project/SyncDialog.svelte",
1933-
217
1950+
216
19341951
]
19351952
],
19361953
"translation": ""

frontend/viewer/src/project/SyncDialog.svelte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { QueryParamStateBool } from '$lib/utils/url.svelte';
1111
import Loading from '$lib/components/Loading.svelte';
1212
import { useSyncStatusService } from '$lib/services/sync-status-service';
13-
import { FormatDate } from '$lib/components/ui/format';
13+
import { formatDate } from '$lib/components/ui/format';
1414
import { watch } from 'runed';
1515
import { fade } from 'svelte/transition';
1616
import { delay } from '$lib/utils/time';
@@ -193,8 +193,7 @@
193193
</span>
194194
{#if lastLocalSyncDate}
195195
<span class="text-foreground/80">
196-
{$t`Last change: `}
197-
<FormatDate date={lastLocalSyncDate} />
196+
{$t`Last change: ${formatDate(lastLocalSyncDate)}`}
198197
</span>
199198
{/if}
200199
</div>
@@ -234,8 +233,7 @@
234233
{$t`${serverName} - FieldWorks`}
235234
</span>
236235
<span class="text-foreground/80">
237-
{$t`Last change: `}
238-
<FormatDate date={lastFlexSyncDate} />
236+
{$t`Last change: ${formatDate(lastFlexSyncDate)}`}
239237
</span>
240238
</div>
241239
</div>

0 commit comments

Comments
 (0)