diff options
| author | Fuwn <[email protected]> | 2024-01-20 23:36:15 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-20 23:36:15 -0800 |
| commit | 49ffcef5238ddbea9d7704ca9de31fb78b1819a6 (patch) | |
| tree | 3db0281f0746c35c17554601606fa9fa275429d4 /src/lib/Locale/layout.ts | |
| parent | refactor(locale): typed locales (diff) | |
| download | due.moe-49ffcef5238ddbea9d7704ca9de31fb78b1819a6.tar.xz due.moe-49ffcef5238ddbea9d7704ca9de31fb78b1819a6.zip | |
feat(locale): more localisation for display category
Diffstat (limited to 'src/lib/Locale/layout.ts')
| -rw-r--r-- | src/lib/Locale/layout.ts | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/src/lib/Locale/layout.ts b/src/lib/Locale/layout.ts index 45c58a33..3e86fa8d 100644 --- a/src/lib/Locale/layout.ts +++ b/src/lib/Locale/layout.ts @@ -1,4 +1,4 @@ -type LocaleValue = string | LocaleValue[] | { [key: string]: LocaleValue }; +type LocaleValue = string | LocaleValue[]; // | { [key: string]: LocaleValue }; export interface LocaleDictionary { [key: string]: LocaleDictionary | string | Array<string | LocaleDictionary> | null; @@ -32,12 +32,46 @@ export interface Locale { display: { title: LocaleValue; categories: { - media: LocaleValue; + media: { + title: LocaleValue; + fields: { + outboundLinks: LocaleValue; + mediaTitleFormat: { + title: LocaleValue; + options: { + english: LocaleValue; + romaji: LocaleValue; + native: LocaleValue; + }; + fields: { + showFurigana: LocaleValue; + }; + }; + }; + }; date_and_time: LocaleValue; - motion_and_accessibility: LocaleValue; + motionAndAccessibility: { + title: LocaleValue; + fields: { + disablePageTransitionAnimations: LocaleValue; + disableNotifications: LocaleValue; + limitPanelAreaToScreenHeight: LocaleValue; + interfaceLanguage: LocaleValue; + }; + }; collapse_panels_by_default: LocaleValue; hide_panels: LocaleValue; include_additional_media: LocaleValue; + helper: { + title: LocaleValue; + options: { + mai: LocaleValue; + nodoka: LocaleValue; + kaede: LocaleValue; + none: LocaleValue; + }; + hint: LocaleValue; + }; }; tooltips: { beta: LocaleValue; |