Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

728 B
Raw Blame
import React from "react"
import { useTranslation } from "react-i18next"
import styles from "./LanguageSwitch.module.css"

const lngs = {
  // English
  en: { nativeName: "English" },
  // Russian
  ru: { nativeName: "Русский" },
  // Chinese
  zh: { nativeName: "中文" },
}

export default function LanguageSwitch() {
  const { i18n } = useTranslation()
  return (
    <div className={styles.languageSwitchWrap}>
      <select
        onChange={(e) => i18n.changeLanguage(e.target.value)}
        value={i18n.resolvedLanguage}
      >
        {Object.keys(lngs).map((lng) => (
          <option key={lng} value={lng}>
            {lngs[lng].nativeName}
          </option>
        ))}
      </select>
    </div>
  )
}