Files
Custom-Local-Bible-Ref/src/i18n/models.ts
2026-01-03 14:49:29 +11:00

78 lines
1.3 KiB
TypeScript

import { PassageFormat } from 'src/passage-reference';
import { QuoteReferencePosition } from 'src/settings';
export interface Book {
id: string;
name: string;
aliases: string[];
}
export interface CommonLabels {
folderDoesNotExist: string;
settingsNotConfigured: string;
}
export interface SettingsLabels {
required: {
name: string;
controls: {
biblesPath: TextControl;
};
};
optional: {
name: string;
controls: {
defaultVersion: TextControl;
defaultPassageFormat: Control & {
options: {
[PassageFormat.Manuscript]: string;
[PassageFormat.Paragraph]: string;
[PassageFormat.Quote]: string;
[PassageFormat.Callout]: string;
};
};
bibleFormat: Control;
};
};
quoteFormat: {
name: string;
description: string;
controls: {
includeReference: Control;
referencePosition: Control & {
options: {
[QuoteReferencePosition.Beginning]: string;
[QuoteReferencePosition.End]: string;
};
};
linkToPassage: Control;
};
};
calloutFormat: {
name: string;
description: string;
controls: {
calloutType: Control;
linkToPassage: Control;
};
};
issues: {
before: string;
link: string;
after?: string;
};
}
interface Control {
name: string;
description: string;
}
interface TextControl extends Control {
placeholder: string;
}