From a4ec0365f257d28b1ea010d64959ff66ec33dbb1 Mon Sep 17 00:00:00 2001 From: Kim MinJae Date: Mon, 26 Apr 2021 23:58:03 +0900 Subject: [PATCH] Edited Time format logic it was forcing using 'en' or 'id' time format --- src/routes/calculator/_resinTable.svelte | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/routes/calculator/_resinTable.svelte b/src/routes/calculator/_resinTable.svelte index f1433ba3..38641b69 100644 --- a/src/routes/calculator/_resinTable.svelte +++ b/src/routes/calculator/_resinTable.svelte @@ -46,15 +46,9 @@ {originalResin.label} - {#if $t('calculator.resin.timeFormat') === 'en'} {dayjs(new Date(stepTime[i + 1])) - .locale('en') + .locale($t('calculator.resin.timeFormat')) .fromNow()} - {:else} - {dayjs(new Date(stepTime[i + 1])) - .locale('id') - .fromNow()} - {/if} {/each}