agent-ecosystem/landing/data/content.ts
iliya eda6218e67 feat(landing): expand localization support and improve content handling
- Added support for additional languages: Chinese (zh), Spanish (es), Hindi (hi), Arabic (ar), and Portuguese (pt) in the LanguageSwitcher and i18n configuration.
- Updated content files for English and Russian to clarify the free usage of the app.
- Enhanced content management by importing new language files into the content structure.
- Adjusted locale handling to ensure proper recognition of supported languages in the application.
2026-03-23 18:53:43 +02:00

23 lines
596 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 type { LandingContent, LocalizedContent } from "~/types/content";
import type { LocaleCode } from "~/data/i18n";
export const contentByLocale: LocalizedContent = {
en,
ru,
zh,
es,
hi,
ar,
pt
};
export const getContent = (locale: LocaleCode): LandingContent => {
return contentByLocale[locale] ?? contentByLocale.en;
};