agent-ecosystem/landing/data/content.ts
iliya 0876f192fa feat(landing): enhance localization and improve UI components
- Added support for German (de), French (fr), and Japanese (ja) languages, expanding the localization capabilities of the application.
- Updated the LanguageSwitcher component to include new language options and a search feature for better user experience.
- Enhanced the HeroSection with dynamic download URLs and a release version badge for improved visibility of updates.
- Refactored the ScreenshotsSection to utilize a new data structure for screenshots, improving maintainability and performance.
- Improved the styling of various components, including the addition of search functionality in the LanguageSwitcher and adjustments to the layout of the HeroSection.
- Fixed type handling in several components to ensure better TypeScript compatibility and reduce potential runtime errors.
2026-03-23 20:18:02 +02:00

29 lines
722 B
TypeScript

import en from "~/content/en.json";
import ru from "~/content/ru.json";
import zh from "~/content/zh.json";
import es from "~/content/es.json";
import hi from "~/content/hi.json";
import ar from "~/content/ar.json";
import pt from "~/content/pt.json";
import fr from "~/content/fr.json";
import ja from "~/content/ja.json";
import de from "~/content/de.json";
import type { LandingContent, LocalizedContent } from "~/types/content";
import type { LocaleCode } from "~/data/i18n";
export const contentByLocale: LocalizedContent = {
en,
ru,
zh,
es,
hi,
ar,
pt,
fr,
ja,
de
};
export const getContent = (locale: LocaleCode): LandingContent => {
return contentByLocale[locale] ?? contentByLocale.en;
};