aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Locale/layout.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-20 23:36:15 -0800
committerFuwn <[email protected]>2024-01-20 23:36:15 -0800
commit49ffcef5238ddbea9d7704ca9de31fb78b1819a6 (patch)
tree3db0281f0746c35c17554601606fa9fa275429d4 /src/lib/Locale/layout.ts
parentrefactor(locale): typed locales (diff)
downloaddue.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.ts40
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;