Skip to content

Commit

Permalink
refactor: try format code again
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 2, 2024
1 parent f24ec8d commit 6f26ccd
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ import { initReactI18next } from 'react-i18next';
const resources = {
zh: {
translation: {
AI4SDLC: "生成式 AI 赋能软件研发",
"OS Solution": "开源解决方案",
"Download White Paper": "下载《UnitMesh 技术白皮书》",
AI4SDLC: '生成式 AI 赋能软件研发',
'OS Solution': '开源解决方案',
'Download White Paper': '下载《UnitMesh 技术白皮书》',
// 端到端的开源 AI 赋能软件研发全流程
"E2E open source AI4SDLC": "端到端的开源 AI 赋能软件研发全流程",
'E2E open source AI4SDLC': '端到端的开源 AI 赋能软件研发全流程',
// 构建下一代软件生成式应用开发范式
"Build NG AI4SE": "构建下一代软件生成式应用开发范式",
'Build NG AI4SE': '构建下一代软件生成式应用开发范式',
// AI 编码助手
"AI-Assistant Development": "AI 编码助手",
'AI-Assistant Development': 'AI 编码助手',
},
},
"en-US": {
'en-US': {
translation: {
AI4SDLC: "AI Empowered Software Development",
"OS Solution": "Open Source Solution",
"Download White Paper": "Download White Paper of UnitMesh Technology",
"E2E open source AI4SDLC": "End-to-end open source AI4SDLC",
"Build NG AI4SE": "Build next-gen AI4SDLC",
"AI-Assistant Development": "AI-Assistant Development,
AI4SDLC: 'AI Empowered Software Development',
'OS Solution': 'Open Source Solution',
'Download White Paper': 'Download White Paper of UnitMesh Technology',
'E2E open source AI4SDLC': 'End-to-end open source AI4SDLC',
'Build NG AI4SE': 'Build next-gen AI4SDLC',
'AI-Assistant Development': 'AI-Assistant Development',
},
},
};
Expand All @@ -44,12 +44,13 @@ i18n
// if you're using a language detector, do not define the lng option

interpolation: {
escapeValue: false // react already safes from xss
escapeValue: false, // react already safes from xss
},
},
(err) => {
if (err) return console.log('something went wrong loading', err);
console.log('i18n loaded successfully');
return null;
},
);

Expand Down

0 comments on commit 6f26ccd

Please sign in to comment.