managarten/apps/zitare/packages/content/src/index.ts
Till-JS 742aa0e046 feat(zitare): add multilingual support and expanded quote metadata
- 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
2026-02-13 12:42:50 +01:00

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';