@rr0/cms
Version:
RR0 Content Management System (CMS)
111 lines (110 loc) • 3.07 kB
TypeScript
import { CountryMessagesList } from "../org/CountryMessagesList.js";
import { CaseConclusion } from "../science/crypto/ufo/enquete/dossier/RR0Case.js";
import { PeopleMessages } from "../people/PeopleMessages.js";
import { OrgRR0Messages } from "../org/OrgRR0Messages.js";
import { PlaceMessages } from "@rr0/place";
export declare class MessageUtils {
static plural(n: number, word: string): string;
static pluralWord(n: number, word: string): string;
}
export type CaseConclusionMessages = {
[key in CaseConclusion]: string;
};
export type CaseClassificationMessages = {
hynek: {
NL: {
short: string;
long: string;
};
DD: {
short: string;
long: string;
};
RV: {
short: string;
long: string;
};
CE1: {
short: string;
long: string;
};
CE2: {
short: string;
long: string;
};
CE3: {
short: string;
long: string;
};
CE4: {
short: string;
long: string;
};
CE5: {
short: string;
long: string;
};
};
};
export type CaseMessages = {
classification: CaseClassificationMessages;
conclusion: CaseConclusionMessages;
};
export interface RR0PlaceMessages extends PlaceMessages {
}
export interface RR0Messages {
nonSignificantWords: string[];
context: {
time: {
duration: {
days: (d: number) => string;
hours: (h: number) => string;
minutes: (mn: number) => string;
seconds: (mn: number) => string;
lastSeparator: string;
approximate(txt: string): string;
};
relative: {
hour: {
before: string;
after: string;
};
year: {
before: string;
after: string;
};
month: {
before: string;
after: string;
later: string;
};
day: {
before: string;
after: string;
};
};
fromTo(startReplacement: string, endReplacement: string): string;
on(approximate: boolean): string;
in(approximate: boolean): string;
starting(approximate: boolean): string;
};
place: RR0PlaceMessages;
};
case: CaseMessages;
org: OrgRR0Messages;
people: PeopleMessages;
place: PlaceMessages;
country: CountryMessagesList;
nav: {
start: string;
contents: string;
prev: string;
next: string;
};
unit: {
smi: (miles: number) => string;
fot: (feet: number) => string;
hm: (milesPerHour: number) => string;
inh: (inches: number) => string;
};
}