From 80d974cad924167406425aa0d9983283e2301ba7 Mon Sep 17 00:00:00 2001 From: Kim MinJae Date: Mon, 26 Apr 2021 23:57:11 +0900 Subject: [PATCH] Edited Time format logic it was forcing using 'en' or 'id' time format --- src/routes/calculator/_resin.svelte | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/routes/calculator/_resin.svelte b/src/routes/calculator/_resin.svelte index d9633edb..7f14bea5 100644 --- a/src/routes/calculator/_resin.svelte +++ b/src/routes/calculator/_resin.svelte @@ -120,11 +120,7 @@ />

{$t('calculator.resin.currentTime')}: - {#if $t('calculator.resin.timeFormat') === 'en'} - {currentTime.locale('en').format('dddd HH:mm:ss')} - {:else} - {currentTime.locale('id').format('dddd HH:mm:ss')} - {/if} + {currentTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')}

@@ -188,11 +184,7 @@ {$t('calculator.resin.fullTime')}: - {#if $t('calculator.resin.timeFormat') === 'en'} - {fullTime.locale('en').format('dddd HH:mm:ss')} ({fullTime.locale('en').fromNow()}) - {:else} - {fullTime.locale('id').format('dddd HH:mm:ss')} ({fullTime.locale('id').fromNow()}) - {/if} + {fullTime.locale($t('calculator.resin.timeFormat')).format('dddd HH:mm:ss')} ({fullTime.locale($t('calculator.resin.timeFormat')).fromNow()})