Skip to content

Commit

Permalink
update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
QuocAnh189 committed Nov 9, 2024
1 parent 7b4976e commit 91cd1a1
Show file tree
Hide file tree
Showing 22 changed files with 1,493 additions and 126 deletions.
2 changes: 1 addition & 1 deletion src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const resources = {
vn: locale_vietnam
}

const defaultNS = 'home'
const defaultNS = 'common'

i18n.use(initReactI18next).init({
resources,
Expand Down
140 changes: 139 additions & 1 deletion src/translate/china/common.json
Original file line number Diff line number Diff line change
@@ -1 +1,139 @@
{}
{
"header": {
"search": "搜索..."
},
"not_data": {
"text": "抱歉,数据不可用或数据尚未更新"
},
"signin_btn": "登录",
"notification": {
"title": "通知",
"all": "全部",
"follow": "关注",
"order": "订单",
"follow_text": "关注了你",
"order_text": "订购了你的活动",
"hours ago": "小时前",
"confirm_btn": "确认",
"decline_btn": "拒绝"
},
"message": {
"title": "消息",
"all": "全部",
"latest": "最新",
"archived": "已归档",
"reply_btn": "回复",
"mark_btn": "标记为已读"
},
"invitation": {
"title": "邀请",
"view_btn": "查看",
"mark_btn": "标记为已读"
},
"category": {
"label": "类别",
"Visual Arts": "视觉艺术",
"Sports & Active Life": "运动与活跃生活",
"Politics": "政治",
"Performing Arts": "表演艺术",
"Other": "其他",
"Nightlife": "夜生活",
"Music": "音乐",
"Lectures & Books": "讲座与书籍",
"Kids & Family": "儿童与家庭",
"Holidays": "节日",
"Food & Drink": "美食与饮品",
"Film": "电影",
"Festivals & Fairs": "节日与展会",
"Fashion": "时尚",
"Concerts": "音乐会",
"Conferences": "会议",
"Community": "社区",
"Charities": "慈善",
"Anniversary": "周年纪念",
"Academic": "学术"
},
"filter": {
"ALL": "全部",
"PUBLIC": "公开",
"PRIVATE": "私人"
},
"footer": {
"left": {
"description": "在这里连接每一个活动,轻松高效",
"or": ""
},
"right": {
"box_one": {
"title": "我的账户",
"sub_one": "我的账户",
"sub_two": "评论",
"sub_three": "状态",
"sub_four": "愿望清单"
},
"box_two": {
"title": "帮助",
"sub_one": "联系",
"sub_two": "常见问题",
"sub_three": "条款与条件",
"sub_four": "隐私政策"
},
"box_three": {
"title": "功能",
"sub_one": "甘特图",
"sub_two": "仪表盘",
"sub_three": "思维导图",
"sub_four": "自动化"
},
"box_four": {
"title": "对比",
"sub_one": "对比 Jira",
"sub_two": "对比 Notion",
"sub_three": "对比 Trello",
"sub_four": "对比 Smartsheet"
}
}
},
"box_message": {
"left": {
"placeholder": "搜索...",
"my_event": "我的活动",
"chat_event": "活动聊天"
},
"right": {
"to": "发送给",
"first": "发送消息开始对话",
"nochat_text_one": "欢迎",
"nochat_text_two": "选择聊天开始消息",
"nologin_text_one": "你好",
"nologin_text_two": "登录后聊天",
"placeholder": "发送消息"
}
},
"routes": {
"home": "首页",
"dashboard": {
"parent": "仪表盘",
"overview": "概览",
"event analysis": "活动分析",
"customer": "客户",
"payment": "付款"
},
"event": {
"parent": "活动",
"top events": "热门活动",
"my events": "我的活动",
"trash events": "回收站",
"create event": "创建活动"
},
"calendar": "日历",
"orders": "订单",
"reviews": "评论",
"faq": "常见问题",
"settings": {
"parent": "设置",
"profile": "个人资料"
},
"permissions": "权限"
}
}
52 changes: 51 additions & 1 deletion src/translate/china/home.json
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
{}
{
"search home": {
"title": "为您和您的朋友提供正确的目的地",
"sub_title": "参与多个活动将帮助您更好地发现您的个性",
"explore": "立即探索",
"event": "事件",
"event_placeholder": "请输入您的事件名称",
"status": "状态",
"category": "类别",
"search": "搜索",
"events_to_explore": "待探索的事件",
"view_event_btn": "查看",
"All": "全部",
"Upcoming": "即将到来",
"Opening": "正在开放",
"Closed": "已关闭",
"categories": {
"Visual Arts": "视觉艺术",
"Sports & Active Life": "体育与活跃生活",
"Politics": "政治",
"Performing Arts": "表演艺术",
"Other": "其他",
"Nightlife": "夜生活",
"Music": "音乐",
"Lectures & Books": "讲座与书籍",
"Kids & Family": "儿童与家庭",
"Holidays": "假期",
"Food & Drink": "食物与饮料",
"Film": "电影",
"Festivals & Fairs": "节日与集市",
"Fashion": "时尚",
"Concerts": "音乐会",
"Conferences": "会议",
"Community": "社区",
"Charities": "慈善",
"Anniversary": "周年纪念",
"Academic": "学术"
}
},
"best events": {
"title": "最佳活动推荐"
},
"upcoming events": {
"title": "即将到来的活动"
},
"about us": {
"title": "关于我们",
"description_one": "活动管理和票务是您无缝活动策划和票务解决方案的首选目的地。凭借一支专业的团队,我们专注于策划量身定制的难忘体验。从公司会议到音乐节,以及介于两者之间的所有活动,我们都以精确和创造力处理每一个活动协调方面。我们的用户友好票务平台确保组织者和参与者的顺畅交易,使活动管理变得轻松高效。信任我们,让您的活动焕发生命,留下难忘的印象和回忆。",
"description_two": "无论您是组织小型聚会还是大型盛会,我们对细节的关注和对卓越的承诺每次都能确保成功。让我们为您减轻活动策划的压力,让您专注于真正重要的事情:为您的客人创造难忘的时刻。"
}
}
3 changes: 3 additions & 0 deletions src/translate/english/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"header": {
"search": "Search..."
},
"not_data": {
"text": "Sorry, data is not available or data has not been updated"
},
Expand Down
3 changes: 0 additions & 3 deletions src/translate/english/home.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"header": {
"search": "Search..."
},
"search home": {
"title": "The right destination for you and your friends",
"sub_title": "Participating in many events will help you better discover your personality",
Expand Down
Loading

0 comments on commit 91cd1a1

Please sign in to comment.