352 lines
14 KiB
TypeScript
352 lines
14 KiB
TypeScript
/**
|
||
* i18n translations for NAC XIC Presale
|
||
* Supports: English (en) | Chinese Simplified (zh)
|
||
*/
|
||
|
||
export type Lang = "en" | "zh";
|
||
|
||
export const translations = {
|
||
en: {
|
||
// Nav
|
||
nav_website: "Website",
|
||
nav_explorer: "Explorer",
|
||
nav_docs: "Docs",
|
||
nav_connect: "Connect Wallet",
|
||
nav_connecting: "Connecting...",
|
||
nav_disconnect: "Disconnect",
|
||
nav_connected: "Connected Wallet",
|
||
|
||
// Hero
|
||
hero_badge: "Presale is LIVE",
|
||
hero_title: "XIC Token Presale",
|
||
hero_subtitle:
|
||
"New AssetChain — The next-generation RWA native blockchain with AI-native compliance, CBPP consensus, and Charter smart contracts.",
|
||
hero_price: "$0.02 per XIC",
|
||
hero_supply: "100B Total Supply",
|
||
hero_networks: "BSC · ETH · TRC20",
|
||
hero_no_min: "No Minimum Purchase",
|
||
|
||
// Stats
|
||
stats_ends_in: "Presale Ends In",
|
||
stats_days: "Days",
|
||
stats_hours: "Hours",
|
||
stats_mins: "Mins",
|
||
stats_secs: "Secs",
|
||
stats_raised: "Funds Raised",
|
||
stats_raised_label: "Raised",
|
||
stats_hard_cap: "Hard Cap",
|
||
stats_tokens_sold: "Tokens Sold",
|
||
stats_participants: "Participants",
|
||
stats_wallets: "Wallets",
|
||
stats_token_price: "Token Price",
|
||
stats_listing: "Listing Price",
|
||
stats_target: "Target",
|
||
stats_live_feed: "Live Purchase Feed",
|
||
stats_live: "Live",
|
||
|
||
// Token Details
|
||
token_details: "Token Details",
|
||
token_name: "Name",
|
||
token_symbol: "Symbol",
|
||
token_network: "Network",
|
||
token_decimals: "Decimals",
|
||
token_supply: "Total Supply",
|
||
token_view_contract: "View Token Contract →",
|
||
|
||
// Purchase
|
||
buy_title: "Buy XIC Tokens",
|
||
buy_subtitle: "1 XIC =",
|
||
buy_no_min: "No Minimum",
|
||
buy_select_network: "Select Network",
|
||
buy_usdt_amount: "USDT Amount",
|
||
buy_usdt_trc20: "USDT Amount (TRC20)",
|
||
buy_placeholder: "Enter any USDT amount",
|
||
buy_you_receive: "You receive",
|
||
buy_price_per: "Price per token",
|
||
buy_step1: "Approve USDT",
|
||
buy_step2: "Confirm Purchase",
|
||
buy_btn: "Buy",
|
||
buy_approving: "Approving USDT...",
|
||
buy_approved: "Approved! Buying...",
|
||
buy_processing: "Processing...",
|
||
buy_max: "Max:",
|
||
buy_no_min_max: "No minimum · Max:",
|
||
buy_success_title: "Purchase Successful!",
|
||
buy_success_msg: "You received",
|
||
buy_success_tokens: "XIC tokens",
|
||
buy_view_explorer: "View on Explorer →",
|
||
buy_more: "Buy More",
|
||
buy_balance: "Balance:",
|
||
buy_wrong_network: "Wrong Network",
|
||
buy_wrong_msg: "Please switch to",
|
||
buy_switch: "Switch to",
|
||
buy_connect_msg: "Connect your wallet to purchase XIC tokens with USDT",
|
||
buy_connect_btn: "Connect Wallet",
|
||
buy_connect_hint: "Supports MetaMask, Trust Wallet, and all EVM-compatible wallets",
|
||
buy_contracts: "Verified Presale Contracts",
|
||
buy_bsc_contract: "BSC Contract ↗",
|
||
buy_eth_contract: "ETH Contract ↗",
|
||
|
||
// TRC20
|
||
trc20_send_to: "Send TRC20 USDT to this address:",
|
||
trc20_copy: "Copy Address",
|
||
trc20_copied: "✓ Copied!",
|
||
trc20_step1: "Send",
|
||
trc20_step1b: "USDT (TRC20) to the address above",
|
||
trc20_step1_any: "any amount of USDT",
|
||
trc20_step2: "Include memo:",
|
||
trc20_step2b: "(optional but recommended)",
|
||
trc20_step3: "You will receive",
|
||
trc20_step3b: "XIC tokens after confirmation (1-24h)",
|
||
trc20_step3_any: "You will receive XIC tokens proportional to your USDT amount after confirmation (1-24h)",
|
||
trc20_step4: "Contact support with your TX hash if tokens are not received within 24 hours",
|
||
trc20_warning: "⚠️ Only send USDT on the TRON network (TRC20). Sending other tokens or using a different network will result in permanent loss.",
|
||
|
||
// Why NAC
|
||
why_rwa_title: "Native RWA Chain",
|
||
why_rwa_desc: "Purpose-built for Real World Asset tokenization with AI-native compliance",
|
||
why_cbpp_title: "CBPP Consensus",
|
||
why_cbpp_desc: "Constitutional Block Production Protocol — next-gen consensus beyond PoS/PoW",
|
||
why_charter_title: "Charter Contracts",
|
||
why_charter_desc: "NAC-native smart contract language with built-in regulatory compliance",
|
||
|
||
// FAQ
|
||
faq_title: "Frequently Asked Questions",
|
||
faq_subtitle: "Everything you need to know about the XIC Token presale and New AssetChain ecosystem.",
|
||
faq_still: "Still have questions?",
|
||
faq_ask: "Ask on Telegram",
|
||
faq: [
|
||
{
|
||
q: "What is XIC Token?",
|
||
a: "XIC is the native utility token of New AssetChain (NAC), a purpose-built RWA (Real World Asset) blockchain featuring AI-native compliance, CBPP consensus, and Charter smart contracts. XIC powers governance, transaction fees, and staking within the NAC ecosystem.",
|
||
},
|
||
{
|
||
q: "What is the presale price?",
|
||
a: "The presale price is $0.02 USD per XIC token. The projected listing price is $0.10 USD, representing a 5x potential return for presale participants.",
|
||
},
|
||
{
|
||
q: "Which payment methods are supported?",
|
||
a: "We accept USDT on three networks: BSC (BEP-20), Ethereum (ERC-20), and TRON (TRC-20). For BSC and ETH, connect your MetaMask or compatible EVM wallet. For TRC-20, send USDT directly to our receiving address.",
|
||
},
|
||
{
|
||
q: "Is there a minimum purchase amount?",
|
||
a: "No, there is no minimum purchase amount. You can buy any amount of XIC tokens starting from any USDT value. The maximum single purchase is $50,000 USDT.",
|
||
},
|
||
{
|
||
q: "When will I receive my XIC tokens?",
|
||
a: "For BSC and ETH purchases, tokens are distributed immediately after the transaction is confirmed on-chain. For TRC-20 manual transfers, token distribution occurs within 1–24 hours after confirmation.",
|
||
},
|
||
{
|
||
q: "When will XIC be listed on exchanges?",
|
||
a: "XIC is planned for listing on major centralized and decentralized exchanges following the presale completion. The target listing price is $0.10 USD. Specific exchange announcements will be made through our official Telegram and Twitter channels.",
|
||
},
|
||
{
|
||
q: "Is the presale contract audited?",
|
||
a: "Yes. Both the BSC and ETH presale contracts are verified on their respective block explorers (BscScan and Etherscan). You can view the contract source code and transaction history directly on-chain.",
|
||
},
|
||
{
|
||
q: "What is NAC's technology advantage?",
|
||
a: "NAC is a fully independent blockchain — not a fork or derivative of Ethereum or any existing chain. It features NVM (NAC Virtual Machine), CBPP consensus protocol, Charter smart contract language, CSNP network protocol, and built-in AI compliance for RWA tokenization.",
|
||
},
|
||
],
|
||
|
||
// Support
|
||
support_title: "NAC Support",
|
||
support_online: "Online",
|
||
support_msg: "👋 Hi! Need help with the XIC presale? Our team is available 24/7 to assist you.",
|
||
support_telegram: "Chat on Telegram",
|
||
support_email: "Email Support",
|
||
support_response: "Avg. response time: < 2 hours",
|
||
|
||
// Footer
|
||
footer_risk: "This presale involves risk. Only invest what you can afford to lose. XIC tokens are not available to US persons or residents of restricted jurisdictions.",
|
||
footer_website: "Website",
|
||
footer_explorer: "Explorer",
|
||
footer_telegram: "Telegram",
|
||
footer_twitter: "Twitter",
|
||
|
||
// Loading
|
||
loading_stats: "Loading on-chain data...",
|
||
stats_live_data: "Live On-Chain Data",
|
||
stats_cached: "Cached",
|
||
stats_updated: "Updated",
|
||
},
|
||
|
||
zh: {
|
||
// Nav
|
||
nav_website: "官网",
|
||
nav_explorer: "浏览器",
|
||
nav_docs: "文档",
|
||
nav_connect: "连接钱包",
|
||
nav_connecting: "连接中...",
|
||
nav_disconnect: "断开连接",
|
||
nav_connected: "已连接钱包",
|
||
|
||
// Hero
|
||
hero_badge: "预售进行中",
|
||
hero_title: "XIC 代币预售",
|
||
hero_subtitle:
|
||
"New AssetChain — 下一代 RWA 原生公链,内置 AI 合规审批、CBPP 共识协议与 Charter 智能合约语言。",
|
||
hero_price: "$0.02 / XIC",
|
||
hero_supply: "总供应量 1000亿",
|
||
hero_networks: "BSC · ETH · TRC20",
|
||
hero_no_min: "无最低购买限制",
|
||
|
||
// Stats
|
||
stats_ends_in: "预售结束倒计时",
|
||
stats_days: "天",
|
||
stats_hours: "时",
|
||
stats_mins: "分",
|
||
stats_secs: "秒",
|
||
stats_raised: "募资进度",
|
||
stats_raised_label: "已募资",
|
||
stats_hard_cap: "硬顶",
|
||
stats_tokens_sold: "已售代币",
|
||
stats_participants: "参与人数",
|
||
stats_wallets: "钱包",
|
||
stats_token_price: "代币价格",
|
||
stats_listing: "上市目标价",
|
||
stats_target: "目标",
|
||
stats_live_feed: "实时购买记录",
|
||
stats_live: "实时",
|
||
|
||
// Token Details
|
||
token_details: "代币信息",
|
||
token_name: "名称",
|
||
token_symbol: "符号",
|
||
token_network: "网络",
|
||
token_decimals: "精度",
|
||
token_supply: "总供应量",
|
||
token_view_contract: "查看代币合约 →",
|
||
|
||
// Purchase
|
||
buy_title: "购买 XIC 代币",
|
||
buy_subtitle: "1 XIC =",
|
||
buy_no_min: "无最低限制",
|
||
buy_select_network: "选择网络",
|
||
buy_usdt_amount: "USDT 数量",
|
||
buy_usdt_trc20: "USDT 数量(TRC20)",
|
||
buy_placeholder: "输入任意 USDT 金额",
|
||
buy_you_receive: "您将获得",
|
||
buy_price_per: "单价",
|
||
buy_step1: "授权 USDT",
|
||
buy_step2: "确认购买",
|
||
buy_btn: "购买",
|
||
buy_approving: "授权中...",
|
||
buy_approved: "授权成功!购买中...",
|
||
buy_processing: "处理中...",
|
||
buy_max: "最大:",
|
||
buy_no_min_max: "无最低限制 · 最大:",
|
||
buy_success_title: "购买成功!",
|
||
buy_success_msg: "您已获得",
|
||
buy_success_tokens: "枚 XIC 代币",
|
||
buy_view_explorer: "在浏览器中查看 →",
|
||
buy_more: "继续购买",
|
||
buy_balance: "余额:",
|
||
buy_wrong_network: "网络错误",
|
||
buy_wrong_msg: "请切换到",
|
||
buy_switch: "切换到",
|
||
buy_connect_msg: "连接钱包后即可使用 USDT 购买 XIC 代币",
|
||
buy_connect_btn: "连接钱包",
|
||
buy_connect_hint: "支持 MetaMask、Trust Wallet 及所有 EVM 兼容钱包",
|
||
buy_contracts: "已验证预售合约",
|
||
buy_bsc_contract: "BSC 合约 ↗",
|
||
buy_eth_contract: "ETH 合约 ↗",
|
||
|
||
// TRC20
|
||
trc20_send_to: "请发送 TRC20 USDT 到以下地址:",
|
||
trc20_copy: "复制地址",
|
||
trc20_copied: "✓ 已复制!",
|
||
trc20_step1: "发送",
|
||
trc20_step1b: "USDT(TRC20)到上方地址",
|
||
trc20_step1_any: "任意数量 USDT",
|
||
trc20_step2: "备注填写:",
|
||
trc20_step2b: "(可选,建议填写)",
|
||
trc20_step3: "您将在确认后(1-24小时内)收到",
|
||
trc20_step3b: "枚 XIC 代币",
|
||
trc20_step3_any: "您将在确认后(1-24小时内)按比例收到 XIC 代币",
|
||
trc20_step4: "如24小时内未收到代币,请携带交易哈希联系客服",
|
||
trc20_warning: "⚠️ 请仅在 TRON 网络(TRC20)上发送 USDT。发送其他代币或使用其他网络将导致永久损失。",
|
||
|
||
// Why NAC
|
||
why_rwa_title: "原生 RWA 公链",
|
||
why_rwa_desc: "专为现实世界资产代币化而生,内置 AI 合规审批",
|
||
why_cbpp_title: "CBPP 共识协议",
|
||
why_cbpp_desc: "宪政区块生产协议 — 超越 PoS/PoW 的下一代共识",
|
||
why_charter_title: "Charter 智能合约",
|
||
why_charter_desc: "NAC 原生智能合约语言,内置监管合规机制",
|
||
|
||
// FAQ
|
||
faq_title: "常见问题",
|
||
faq_subtitle: "关于 XIC 代币预售和 New AssetChain 生态系统的一切您需要了解的信息。",
|
||
faq_still: "还有其他问题?",
|
||
faq_ask: "在 Telegram 提问",
|
||
faq: [
|
||
{
|
||
q: "XIC 代币是什么?",
|
||
a: "XIC 是 New AssetChain(NAC)的原生功能代币,NAC 是专为 RWA(现实世界资产)而生的区块链,具备 AI 原生合规、CBPP 共识和 Charter 智能合约。XIC 用于治理、交易手续费和生态质押。",
|
||
},
|
||
{
|
||
q: "预售价格是多少?",
|
||
a: "预售价格为每枚 XIC 0.02 美元。预计上市价格为 0.10 美元,预售参与者可获得 5 倍潜在收益。",
|
||
},
|
||
{
|
||
q: "支持哪些支付方式?",
|
||
a: "我们接受三个网络上的 USDT:BSC(BEP-20)、以太坊(ERC-20)和 TRON(TRC-20)。BSC 和 ETH 需连接 MetaMask 或兼容 EVM 的钱包;TRC-20 请直接向我们的收款地址转账。",
|
||
},
|
||
{
|
||
q: "有最低购买金额吗?",
|
||
a: "没有最低购买金额限制。您可以购买任意数量的 XIC 代币,单笔最高购买额为 50,000 USDT。",
|
||
},
|
||
{
|
||
q: "何时收到 XIC 代币?",
|
||
a: "BSC 和 ETH 购买:链上确认后立即发放。TRC-20 手动转账:确认后 1-24 小时内发放。",
|
||
},
|
||
{
|
||
q: "XIC 何时上市交易所?",
|
||
a: "预售完成后,XIC 计划在主要中心化和去中心化交易所上市,目标上市价格为 0.10 美元。具体交易所公告将通过官方 Telegram 和 Twitter 发布。",
|
||
},
|
||
{
|
||
q: "预售合约是否经过审计?",
|
||
a: "是的。BSC 和 ETH 预售合约均已在各自的区块链浏览器(BscScan 和 Etherscan)上验证。您可以直接在链上查看合约源代码和交易历史。",
|
||
},
|
||
{
|
||
q: "NAC 的技术优势是什么?",
|
||
a: "NAC 是完全独立的区块链,不是以太坊或任何现有链的分叉或衍生。它具备 NVM(NAC 虚拟机)、CBPP 共识协议、Charter 智能合约语言、CSNP 网络协议,以及用于 RWA 代币化的内置 AI 合规。",
|
||
},
|
||
],
|
||
|
||
// Support
|
||
support_title: "NAC 客服",
|
||
support_online: "在线",
|
||
support_msg: "👋 您好!需要 XIC 预售帮助吗?我们的团队 24/7 全天候为您服务。",
|
||
support_telegram: "Telegram 咨询",
|
||
support_email: "邮件支持",
|
||
support_response: "平均响应时间:< 2 小时",
|
||
|
||
// Footer
|
||
footer_risk: "参与预售存在风险,请仅投入您能承受损失的资金。XIC 代币不向美国公民及受限制司法管辖区居民提供。",
|
||
footer_website: "官网",
|
||
footer_explorer: "浏览器",
|
||
footer_telegram: "Telegram",
|
||
footer_twitter: "Twitter",
|
||
|
||
// Loading
|
||
loading_stats: "正在加载链上数据...",
|
||
stats_live_data: "实时链上数据",
|
||
stats_cached: "缓存",
|
||
stats_updated: "更新于",
|
||
},
|
||
} as const;
|
||
|
||
export type TranslationKey = keyof typeof translations.en;
|
||
|
||
export function useTranslation(lang: Lang) {
|
||
const t = translations[lang];
|
||
return {
|
||
t: (key: TranslationKey) => (t as Record<string, unknown>)[key] as string,
|
||
faq: t.faq,
|
||
lang,
|
||
};
|
||
}
|