aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Locale/japanese.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Locale/japanese.ts')
-rw-r--r--src/lib/Locale/japanese.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/Locale/japanese.ts b/src/lib/Locale/japanese.ts
index 3e3fcc35..6010f2bf 100644
--- a/src/lib/Locale/japanese.ts
+++ b/src/lib/Locale/japanese.ts
@@ -1,4 +1,6 @@
+import { get } from 'svelte/store';
import type { Locale } from './layout';
+import settings from '$stores/settings';
const Japanese: Locale = {
navigation: {
@@ -241,7 +243,19 @@ const Japanese: Locale = {
comma: '、',
commaNoSpace: '、',
ampersand: '',
- ended: '終了'
+ ended: '終了',
+ dateFormatter: new Intl.DateTimeFormat('ja-JP', {
+ // era: 'long',
+ // year: 'numeric',
+ month: 'long',
+ day: 'numeric',
+ // weekday: 'long',
+ hour: 'numeric',
+ hour12: !get(settings).display24HourTime,
+ minute: 'numeric'
+ // second: 'numeric'
+ // timeZoneName: 'short'
+ }).format
}
};