agent-ecosystem/landing/data/content.ts
infiniti 47cea58543
feat(i18n): add expanded app locale support
* feat(i18n): add CJK app locale support

* feat(i18n): add Spanish Hindi and Portuguese locales

* feat(i18n): add French Arabic and Bengali locales

* feat(i18n): add Urdu Indonesian and German locales

* feat(i18n): add landing locales for Bengali Urdu and Indonesian

* fix(i18n): address locale review feedback

---------

Co-authored-by: iliya <iliyazelenkog@gmail.com>
2026-05-24 22:10:47 +03:00

37 lines
891 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 ko from '~/content/ko.json';
import de from '~/content/de.json';
import bn from '~/content/bn.json';
import ur from '~/content/ur.json';
import id from '~/content/id.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,
ko,
de,
bn,
ur,
id,
};
export const getContent = (locale: LocaleCode): LandingContent => {
return contentByLocale[locale] ?? contentByLocale.en;
};