1. 看浏览器打印显示哪里错误 如果没有发现错误看下一条
2. 直接看在运行里面看一目了然,在第几行出现的错误,一般用 ^ 指向错误位置
我在写国际化的时候报的这个错误: 1. 必须使用驼峰命名法 2. 不能数字开头 3. 不能有任何符号非常严格
**
一.如下
**
module.exports = {
Home:{
NewArrivals: "New Arrivals", // 新品推荐
TopRankedProducts: "Top-rankedProducts", // 顶级产品
Dropshipping: "Dropshipping", // 直运
PremiumOEMFactorie: "Premium OEM Factorie", // 优质OEM代理
TopRankingSupplier: "Top-rankingSupplier", // 顶级供应商
FastDispatch: "Fast Dispatch", // 快速调度
WeeklyDeals: "Weekly Deals", // 每周交易
JUSTFORYOU: "JUST FOR YOU", // 只为你
Featured: "Featured", // 作为特色的
YouMayAlsoLike: "You may also like", // 你可能也喜欢
BeautyPicks: "Beauty picks", // 选美
ComputersAccessories: "Computers & Accessories", // 电脑及配件
ShopTopCategories: "Shop top categories", // 选购顶级品类
GetFitAtHome: "Get fit at home", // 在家里健身
FindYourIdealTV: "Find your ideal TV", // 找到你理想的电视
OURTRADESERVICESAREHEREFORYOU:"OUR TRADE SERVICES ARE HERE FOR YOU", // 我们的贸易服务在这里为您服务
SignInToSeePersonalizedRecommendations: "Sign in to see personalized recommendations", //登录查看个性化推荐
},
Common:{
header:{
TSBYTC: "TSBYTC",
Products: "Products", // 产品
WhatAreYouLooking: "What are you looking", // 你在看什么
Search: "Search", // 搜索
SignIn: "Sign in", // 登录
Messagest: "Messagest", // 消息
Cart: "Cart", // 推车
},
footer:{
CustomerServices: "Customer Services", // 客户服务
HelpCenter: "Help Center", // 帮助中心
ContactUs: "Contact Us", // 联系我们
ReportAbuse: "Report Abuse", // 举报虐待
SubmitADispute: "Submit a Dispute", // 提出争议
PoliciesRules: "Policies & Rules", // 政策和规则
GetPaidForYourFeedback: "Get Paid for Your Feedback", // 为你的反馈获得报酬
AboutUsTsbytcCom: "About Us Tsbytc.com", // 关于我们Tsbytc.com
AboutBOYUTsbytcCom: "About BOYU Tsbytc.com", // 博宇Tsbytc.com简介
Sitemap: "Sitemap", // 网站地图
SourceOnTsbytcCom: "Source on Tsbytc.com", // Source on Tsbytc.com
Resources: "Resources", // 资源
AllCategories: "All Categories", // 所有类别
RequestForQuotation:"Request for Quotation", // 报价邀请函
ReadyToShip: "Ready to Ship", // 准备装运
BuyerPartners: "Buyer Partners", // 买方合作伙伴
SellOnTsbytcCom: "Sell on Tsbytc.com", // 这里是Tsbytc.com
SupplierMemberships:" Supplier Memberships", // 供应商成员资格
LearningCenter: "Learning Center", // 学习中心
PartnerProgram: "Partner Program", // 合作伙伴计划
TradeServices: "Trade Services", // 贸易服务
TradeAssurance: "Trade Assurance", // 贸易保证
BusinessIdentity: " Business Identity", // 商业身份
LogisticsService: "Logistics Service", // 物流服务
ProductionMonitoring: "Production Monitoring &", // 生产监控&
InspectionServices: "Inspection Services", // 检查服务
LetterOfCredit: "Letter of Credit", // 信用证
ProductListingPolicyIntellectualPropertyProtectionPrivacyPolicyTermsOfUseUserInformationLegalEnquiryGuide: "Product Listing Policy - Intellectual Property Protection - Privacy Policy - Terms of Use - User Information Legal Enquiry Guide", // 产品上市政策.知识产权保护.隐私政策.使用条款.用户信息法律查询指南
TsbytcComAllRightsReserved20212021: "© 2021-2021 Tsbytc.com. All rights reserved.", // © 2021-2021 Tsbytc.com。版权所有。
冀公网安备33010002001245号冀B220210001: "No.33010002001245, Anbei, jigong.com Ji b2-20210001", // 冀公网安备 33010002001245号 冀B2-20210001
}
}
}