Skip to content

Commit 3bd9659

Browse files
ericyangpanclaude
andcommitted
refactor(types): update i18n references to translations
- Update TypeScript type definitions - Update generated metadata - Update validation script to use new translations field name 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 003b0b7 commit 3bd9659

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

scripts/validate/validate-manifests.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ function loadBaseSchema(schemasDir) {
5151
// Load all ref schemas first
5252
const refDir = path.join(schemasDir, 'ref')
5353

54-
// Load i18n schema
55-
const i18nSchemaPath = path.join(refDir, 'i18n.schema.json')
56-
const i18nSchemaContent = fs.readFileSync(i18nSchemaPath, 'utf8')
57-
const i18nSchema = JSON.parse(i18nSchemaContent)
58-
ajv.addSchema(i18nSchema, 'i18n.schema.json')
54+
// Load translations schema
55+
const translationsSchemaPath = path.join(refDir, 'translations.schema.json')
56+
const translationsSchemaContent = fs.readFileSync(translationsSchemaPath, 'utf8')
57+
const translationsSchema = JSON.parse(translationsSchemaContent)
58+
ajv.addSchema(translationsSchema, 'translations.schema.json')
5959

6060
// Load community-urls schema
6161
const communitySchemaPath = path.join(refDir, 'community-urls.schema.json')

src/lib/generated/metadata.ts

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
128128
specifications: {
129129
title: 'Specifications & Protocols',
130130
description: 'Essential standards and protocols for modern software development',
131-
i18n: {
131+
translations: {
132132
'zh-Hans': {
133133
title: '规范与协议',
134134
description: '现代软件开发的基本标准和协议',
@@ -137,14 +137,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
137137
cards: [
138138
{
139139
title: 'Development Standards',
140-
i18n: {
140+
translations: {
141141
'zh-Hans': {
142142
title: '开发标准',
143143
},
144144
},
145145
items: [
146146
{
147-
i18n: {
147+
translations: {
148148
'zh-Hans': {
149149
name: '语义化版本',
150150
description: '使用 MAJOR.MINOR.PATCH 格式的版本控制方案,传达兼容性和更新影响',
@@ -156,7 +156,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
156156
'Versioning scheme using MAJOR.MINOR.PATCH format to communicate compatibility and impact of updates',
157157
},
158158
{
159-
i18n: {
159+
translations: {
160160
'zh-Hans': {
161161
name: '约定式提交',
162162
description: '结构化提交消息的轻量级约定,支持自动化变更日志生成和语义化版本控制',
@@ -168,7 +168,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
168168
'Lightweight convention for structured commit messages that enable automated changelog generation and semantic versioning',
169169
},
170170
{
171-
i18n: {
171+
translations: {
172172
'zh-Hans': {
173173
name: 'AGENTS.md',
174174
description: '为编码 Agent 提供项目特定指令和上下文的开放格式 Markdown 文件',
@@ -183,14 +183,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
183183
},
184184
{
185185
title: 'Agent Protocols',
186-
i18n: {
186+
translations: {
187187
'zh-Hans': {
188188
title: 'Agent 协议',
189189
},
190190
},
191191
items: [
192192
{
193-
i18n: {
193+
translations: {
194194
'zh-Hans': {
195195
name: '模型上下文协议 (MCP)',
196196
description: '将 AI 应用连接到外部系统(如数据源、工具和工作流)的开放标准',
@@ -202,7 +202,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
202202
'Open standard connecting AI applications to external systems like data sources, tools, and workflows',
203203
},
204204
{
205-
i18n: {
205+
translations: {
206206
'zh-Hans': {
207207
name: 'Agent 间通信协议 (A2A)',
208208
description: '支持不同平台之间 AI Agent 安全通信和协作的开放协议',
@@ -214,7 +214,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
214214
'Open protocol enabling secure communication and collaboration between AI agents across different platforms',
215215
},
216216
{
217-
i18n: {
217+
translations: {
218218
'zh-Hans': {
219219
name: 'Agent 支付协议 (AP2)',
220220
description: '使用可验证数字凭证和授权委托的安全 Agent 支付开放协议',
@@ -226,7 +226,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
226226
'Open protocol for secure agent-led payments using verifiable digital credentials and authorization mandates',
227227
},
228228
{
229-
i18n: {
229+
translations: {
230230
'zh-Hans': {
231231
name: 'Agent 网络协议 (ANP)',
232232
description: '基于 DID 身份和自动协议协商的去中心化无信任 Agent 通信协议',
@@ -238,7 +238,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
238238
'Decentralized protocol for trustless agent communication with DID-based identity and automatic protocol negotiation',
239239
},
240240
{
241-
i18n: {
241+
translations: {
242242
'zh-Hans': {
243243
name: 'Agent 客户端协议 (ACP)',
244244
description: '标准化代码编辑器与 Agent 之间通信的开放协议,用于自主代码修改',
@@ -256,7 +256,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
256256
articles: {
257257
title: 'Featured Articles',
258258
description: 'Must-read articles about AI coding from industry leaders',
259-
i18n: {
259+
translations: {
260260
'zh-Hans': {
261261
title: '精选文章',
262262
description: '来自行业领袖的 AI 编码必读文章',
@@ -265,14 +265,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
265265
cards: [
266266
{
267267
title: 'OpenAI on Coding',
268-
i18n: {
268+
translations: {
269269
'zh-Hans': {
270270
title: 'OpenAI 关于编码',
271271
},
272272
},
273273
items: [
274274
{
275-
i18n: {
275+
translations: {
276276
'zh-Hans': {
277277
name: '构建 AI 驱动的应用',
278278
description: '在生产环境中部署 AI 应用的最佳实践',
@@ -283,7 +283,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
283283
description: 'Best practices for deploying AI applications in production',
284284
},
285285
{
286-
i18n: {
286+
translations: {
287287
'zh-Hans': {
288288
name: '提示工程指南',
289289
description: '制作有效代码生成提示的策略',
@@ -297,14 +297,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
297297
},
298298
{
299299
title: 'Cursor Insights',
300-
i18n: {
300+
translations: {
301301
'zh-Hans': {
302302
title: 'Cursor 见解',
303303
},
304304
},
305305
items: [
306306
{
307-
i18n: {
307+
translations: {
308308
'zh-Hans': {
309309
name: '编程的未来',
310310
description: 'AI 如何重塑开发工作流',
@@ -315,7 +315,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
315315
description: 'How AI is reshaping the development workflow',
316316
},
317317
{
318-
i18n: {
318+
translations: {
319319
'zh-Hans': {
320320
name: 'AI 优先的 IDE 设计',
321321
description: '设计无缝 AI 协作的 IDE',
@@ -329,14 +329,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
329329
},
330330
{
331331
title: 'Claude on AI Coding',
332-
i18n: {
332+
translations: {
333333
'zh-Hans': {
334334
title: 'Claude 关于 AI 编码',
335335
},
336336
},
337337
items: [
338338
{
339-
i18n: {
339+
translations: {
340340
'zh-Hans': {
341341
name: '使用 Claude Code 构建',
342342
description: 'Claude Code 及其功能介绍',
@@ -347,7 +347,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
347347
description: 'Introduction to Claude Code and its capabilities',
348348
},
349349
{
350-
i18n: {
350+
translations: {
351351
'zh-Hans': {
352352
name: 'MCP:新标准',
353353
description: '模型上下文协议如何实现更好的 AI 集成',
@@ -361,14 +361,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
361361
},
362362
{
363363
title: 'Lovable Engineering',
364-
i18n: {
364+
translations: {
365365
'zh-Hans': {
366366
title: 'Lovable 工程',
367367
},
368368
},
369369
items: [
370370
{
371-
i18n: {
371+
translations: {
372372
'zh-Hans': {
373373
name: 'AI 原生开发',
374374
description: '构建为 AI 优先工作流设计的应用',
@@ -379,7 +379,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
379379
description: 'Building applications designed for AI-first workflows',
380380
},
381381
{
382-
i18n: {
382+
translations: {
383383
'zh-Hans': {
384384
name: '编码副驾驶模式',
385385
description: '有效 AI 结对编程的常见模式',
@@ -396,7 +396,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
396396
tools: {
397397
title: 'Ecosystem Tools',
398398
description: 'Curated tools and utilities for AI coding workflows',
399-
i18n: {
399+
translations: {
400400
'zh-Hans': {
401401
title: '生态系统工具',
402402
description: 'AI 编码工作流的精选工具和实用程序',
@@ -405,14 +405,14 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
405405
cards: [
406406
{
407407
title: 'Development Tools',
408-
i18n: {
408+
translations: {
409409
'zh-Hans': {
410410
title: '开发工具',
411411
},
412412
},
413413
items: [
414414
{
415-
i18n: {
415+
translations: {
416416
'zh-Hans': {
417417
name: 'OpenSpec',
418418
description: '为 AI 编码助手设计的规范驱动开发框架,提供组织化的变更管理和活文档',
@@ -424,7 +424,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
424424
'Spec-driven development framework for AI coding assistants with organized change management and living documentation',
425425
},
426426
{
427-
i18n: {
427+
translations: {
428428
'zh-Hans': {
429429
name: 'Spec Kit',
430430
description: '从可执行规范生成工作实现的规范驱动开发工具包',
@@ -436,7 +436,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
436436
'Toolkit for Spec-Driven Development that generates working implementations from executable specifications',
437437
},
438438
{
439-
i18n: {
439+
translations: {
440440
'zh-Hans': {
441441
name: 'ccusage',
442442
description: 'Claude Code 使用跟踪和分析工具',
@@ -447,7 +447,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
447447
description: 'Claude Code usage tracking and analytics tool',
448448
},
449449
{
450-
i18n: {
450+
translations: {
451451
'zh-Hans': {
452452
name: 'BMAD-METHOD',
453453
description:
@@ -460,7 +460,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
460460
'Breakthrough Method for Agile AI-Driven Development with specialized AI agents for planning, architecture, and implementation',
461461
},
462462
{
463-
i18n: {
463+
translations: {
464464
'zh-Hans': {
465465
name: 'Anthropic Skills',
466466
description:
@@ -476,7 +476,7 @@ export const collectionsMetadata: Record<string, CollectionSection> = {
476476
},
477477
{
478478
title: 'Productivity Utilities',
479-
i18n: {
479+
translations: {
480480
'zh-Hans': {
481481
title: '生产力工具',
482482
},

src/types/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface ManifestApp extends ManifestEntity {
4646

4747
/**
4848
* Internationalization translations
49-
* Based on: /manifests/$schemas/ref/i18n.schema.json
49+
* Based on: /manifests/$schemas/ref/translations.schema.json
5050
*/
5151
export interface ManifestI18n {
5252
[locale: string]: {

0 commit comments

Comments
 (0)