diff --git a/package.json b/package.json index 9bc703c4..12dd0ef6 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,9 @@ "rollup-plugin-terser": "^7.0.0", "sapper": "^0.28.0", "svelte": "^3.17.3", - "svelte-countdown": "^1.0.0", "svelte-i18n": "^3.3.6", "svelte-preprocess": "^4.5.1", "svelte-simple-modal": "^0.6.1", - "svelte-time": "^0.3.0", "tailwindcss": "^1.9.5" } } diff --git a/src/routes/calculator/_resin.svelte b/src/routes/calculator/_resin.svelte index d519e142..28c648a2 100644 --- a/src/routes/calculator/_resin.svelte +++ b/src/routes/calculator/_resin.svelte @@ -1,12 +1,18 @@
- {$t('calculator.resin.currentTime')}: {new Intl.DateTimeFormat( - $t('calculator.resin.timeFormat'), - dateTimeOptions, - ).format($time)} + {$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}
+ | + {$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} + | +