import React, { useState } from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Globe } from "lucide-react"; const translations = { en: { title: "Grok Use", description: "Learn how to claim a $150 API credit bonus on Grok by xAI with a $5 monthly recharge.", steps: [ "Register: Go to https://accounts.x.ai/sign-in, create an account, and link your email.", "Add Payment Method: Visit https://console.x.ai, navigate to Billing - Payment, and add a credit card. Avoid listing a European country as the billing entity.", "Recharge $5: Go to Billing-Credits - Prepaid credits and click Purchase credits to add $5.", "Claim $150 Credit: Visit https://docs.x.ai/docs/data-sharing#how-it-woks under the Free Credits Program and click the button to participate. You must agree to share data with xAI to receive monthly credits." ], button: "Claim Now" }, fr: { title: "Utilisation de Grok", description: "Apprenez à réclamer un bonus de crédit API de 150 $ sur Grok par xAI avec une recharge mensuelle de 5 $.", steps: [ "Inscription: Rendez-vous sur https://accounts.x.ai/sign-in, créez un compte et liez votre e-mail.", "Ajouter un moyen de paiement: Accédez à https://console.x.ai, ouvrez l’onglet Billing - Payment et ajoutez une carte bancaire. Évitez d’indiquer un pays européen pour la facturation.", "Recharger 5 $: Accédez à Billing-Credits - Prepaid credits et cliquez sur Purchase credits pour ajouter 5 $.", "Réclamer 150 $ de crédit: Allez sur https://docs.x.ai/docs/data-sharing#how-it-woks sous Free Credits Program et cliquez sur le bouton pour participer. Vous devez accepter de partager des données avec xAI pour recevoir les crédits mensuellement." ], button: "Réclamer maintenant" }, de: { title: "Grok Nutzung", description: "Erfahren Sie, wie Sie einen Bonus von 150 US-Dollar API-Guthaben bei xAI's Grok mit einer monatlichen Aufladung von 5 US-Dollar erhalten.", steps: [ "Registrierung: Besuchen Sie https://accounts.x.ai/sign-in, erstellen Sie ein Konto und verknüpfen Sie Ihre E-Mail.", "Zahlungsmethode hinzufügen: Gehen Sie zu https://console.x.ai, navigieren Sie zu Billing - Payment und fügen Sie eine Kreditkarte hinzu. Geben Sie kein europäisches Land als Abrechnungsland an, sonst erhalten Sie den Bonus von 150 US-Dollar nicht.", "Aufladen von 5 US-Dollar: Gehen Sie zu Billing-Credits - Prepaid credits und klicken Sie auf 'Purchase credits', um 5 US-Dollar aufzuladen.", "150 US-Dollar Guthaben erhalten: Besuchen Sie https://docs.x.ai/docs/data-sharing#how-it-woks im Bereich 'Free Credits Program' und klicken Sie auf den Button, um teilzunehmen. Sie müssen zustimmen, Daten mit xAI zu teilen, um monatlich Guthaben zu erhalten." ], button: "Jetzt beanspruchen" }, ja: { title: "Grok利用ガイド", description: "毎月5ドルのチャージで、xAIのGrokで150ドルのAPIクレジットボーナスを受け取る方法を学びましょう。", steps: [ "登録: https://accounts.x.ai/sign-in にアクセスしてアカウントを作成し、メールアドレスを登録してください。", "支払い方法の登録: https://console.x.ai にアクセスし、Billing - Paymentタブを開いてクレジットカードを追加します。請求情報にヨーロッパの国を入力しないでください、そうでないと150ドルのボーナスを受け取れません。", "5ドルのチャージ: Billing-Credits - Prepaid credits にアクセスし、Purchase creditsボタンをクリックして5ドルをチャージしてください。", "150ドルのクレジットを受け取る: https://docs.x.ai/docs/data-sharing#how-it-woks にアクセスし、Free Credits Programの下にあるボタンをクリックして参加してください。xAIとデータを共有することに同意する必要があります。参加後、毎月150ドルのAPIクレジットを受け取ることができます。" ], button: "今すぐ受け取る" }, ko: { title: "Grok 사용법", description: "매달 5달러 충전으로 xAI의 Grok에서 150달러 API 크레딧 보너스를 받는 방법을 알아보세요.", steps: [ "가입: https://accounts.x.ai/sign-in 에 접속하여 계정을 만들고 이메일을 연결하세요.", "결제 수단 등록: https://console.x.ai 에 접속하여 Billing - Payment 탭을 열고 신용카드를 추가하세요. 청구 국가에 유럽 국가를 입력하지 마세요, 그렇지 않으면 150달러 보너스를 받을 수 없습니다.", "5달러 충전: Billing-Credits - Prepaid credits 에 접속하여 Purchase credits 버튼을 클릭해 5달러를 충전하세요.", "150달러 크레딧 받기: https://docs.x.ai/docs/data-sharing#how-it-woks 에 접속하여 Free Credits Program 아래의 버튼을 클릭해 참여하세요. xAI와 데이터 공유에 동의해야 합니다. 참여 후 매달 150달러의 API 크레딧을 받을 수 있습니다." ], button: "지금 받기" }, zh_CN: { title: "Grok 使用指南", description: "了解如何通过每月充值 5 美元,在 xAI 的 Grok 领取 150 美元 API 赠金。", steps: [ "注册:前往 https://accounts.x.ai/sign-in 创建账户,并绑定邮箱。", "绑定付款方式:进入 https://console.x.ai,打开 Billing - Payment,并添加信用卡。计费主体请勿填写欧洲国家,否则无法领取赠金。", "充值 5 美元:进入 Billing-Credits - Prepaid credits,点击 Purchase credits 充值 5 美元。", "领取 150 美元额度:进入 https://docs.x.ai/docs/data-sharing#how-it-woks,在 Free Credits Program 处点击按钮参与。需同意与 xAI 共享数据,方可每月领取额度。" ], button: "立即领取" }, zh_TW: { title: "Grok 使用指南", description: "了解如何通過每月充值 5 美元,在 xAI 的 Grok 領取 150 美元 API 贈金。", steps: [ "註冊:前往 https://accounts.x.ai/sign-in 創建帳戶,並綁定電子郵件。", "綁定付款方式:進入 https://console.x.ai,打開 Billing - Payment,並添加信用卡。計費主體請勿填寫歐洲國家,否則無法領取贈金。", "充值 5 美元:進入 Billing-Credits - Prepaid credits,點擊 Purchase credits 充值 5 美元。", "領取 150 美元額度:進入 https://docs.x.ai/docs/data-sharing#how-it-woks,在 Free Credits Program 處點擊按鈕參與。需同意與 xAI 共享數據,方可每月領取額度。" ], button: "立即領取" } }; function getUserLanguage() { const lang = navigator.language || "en"; if (lang.startsWith("en")) return "en"; if (lang.startsWith("fr")) return "fr"; if (lang.startsWith("de")) return "de"; if (lang.startsWith("ja")) return "ja"; if (lang.startsWith("ko")) return "ko"; if (lang.startsWith("zh")) { // 判断繁简:包含 TW、HK 或 MO 的使用繁体中文 if (lang.includes("TW") || lang.includes("HK") || lang.includes("MO")) { return "zh_TW"; } return "zh_CN"; } return "en"; } const GrokUse = () => { const [language, setLanguage] = useState(getUserLanguage()); const content = translations[language]; return (

{content.title}

{content.description}

    {content.steps.map((step, index) => (
  • {step}
  • ))}
); }; export default GrokUse;