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()})