mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 18:41:24 +02:00
- Add 6-language support: original, de, en, it, fr, es - Add quote metadata: source, year, tags, imageUrl, authorBio, verified - Add originalLanguage field to preserve original quote language (la, el, zh, sa, etc.) - Update all 50 quotes with full translations and metadata - Add new utility functions: getQuoteText, getQuotesByTag, getAllTags, getQuotesByAuthor, getVerifiedQuotes, getQuotesByYearRange, getQuotesByOriginalLanguage - Update matrix-zitare-bot to use new multilingual schema
39 lines
816 B
TypeScript
39 lines
816 B
TypeScript
// Types
|
|
export type {
|
|
Quote,
|
|
TranslatedText,
|
|
AuthorBio,
|
|
SupportedLanguage,
|
|
OriginalLanguage,
|
|
} from './types';
|
|
export { SUPPORTED_LANGUAGES, ORIGINAL_LANGUAGES } from './types';
|
|
export type { Category } from './categories';
|
|
|
|
// Data
|
|
export { QUOTES, QUOTE_COUNT } from './quotes';
|
|
export { CATEGORIES, CATEGORY_LABELS } from './categories';
|
|
|
|
// Utilities
|
|
export {
|
|
getRandomQuote,
|
|
getDailyQuote,
|
|
getQuotesByCategory,
|
|
getRandomQuoteByCategory,
|
|
searchQuotes,
|
|
getQuoteById,
|
|
getQuoteByIndex,
|
|
getAllCategories,
|
|
getCategoryByName,
|
|
getQuoteText,
|
|
formatQuote,
|
|
formatQuoteWithNumber,
|
|
getTotalCount,
|
|
getQuotesByTag,
|
|
getAllTags,
|
|
getQuotesByAuthor,
|
|
getVerifiedQuotes,
|
|
getQuotesByYearRange,
|
|
getQuotesByOriginalLanguage,
|
|
} from './utils';
|
|
|
|
export { getCategoryLabel, isValidCategory } from './categories';
|