Skip to content

Commit

Permalink
build: 1.2.1
Browse files Browse the repository at this point in the history
翻译自身
  • Loading branch information
wszgrcy committed Mar 23, 2024
1 parent 287d533 commit 8230ba1
Show file tree
Hide file tree
Showing 7 changed files with 404 additions and 21 deletions.
170 changes: 170 additions & 0 deletions i18n-meta/en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"8854798582008352047": {
"id": "8854798582008352047",
"text": "输出格式",
"meaning": "",
"description": "",
"messageParts": [
"输出格式"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Output Format"
},
"9148710629420152102": {
"id": "9148710629420152102",
"text": "待翻译代码文件夹",
"meaning": "",
"description": "",
"messageParts": [
"待翻译代码文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Code folder to be translated"
},
"8228150899955189359": {
"id": "8228150899955189359",
"text": "元数据输出文件夹",
"meaning": "",
"description": "",
"messageParts": [
"元数据输出文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Metadata output folder"
},
"5764505695883366666": {
"id": "5764505695883366666",
"text": "正则匹配",
"meaning": "",
"description": "",
"messageParts": [
"正则匹配"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "pattern"
},
"172425973619832421": {
"id": "172425973619832421",
"text": "元数据名",
"meaning": "",
"description": "",
"messageParts": [
"元数据名"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "metadata name"
},
"6644092824683945049": {
"id": "6644092824683945049",
"text": "更新翻译元数据(会更新输出文件夹内的所有文件)",
"meaning": "",
"description": "",
"messageParts": [
"更新翻译元数据(会更新输出文件夹内的所有文件)"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Update translation metadata (will update all files in the output folder)"
},
"4602536547892723040": {
"id": "4602536547892723040",
"text": "提取代码中的 $localize 标签模板函数内容;使用 --update 可以直接更新文件夹内的翻译元数据,可以创建一个空翻译文件再执行更新",
"meaning": "",
"description": "",
"messageParts": [
"提取代码中的 $localize 标签模板函数内容;使用 --update 可以直接更新文件夹内的翻译元数据,可以创建一个空翻译文件再执行更新"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Extract the content of the $localize tag template function from the code; Use --update to directly update the translation metadata in the folder, and create an empty translation file before executing the update"
},
"1359707629255117030": {
"id": "1359707629255117030",
"text": "元数据文件夹",
"meaning": "",
"description": "",
"messageParts": [
"元数据文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Metadata folder"
},
"7325030709800272957": {
"id": "7325030709800272957",
"text": "输出 key-value 格式;用于直接引用",
"meaning": "",
"description": "",
"messageParts": [
"输出 key-value 格式;用于直接引用"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Output key-value format; Used for direct reference"
},
"4550868467630390053": {
"id": "4550868467630390053",
"text": "翻译元数据转换为代码可以引用的 key-value 格式",
"meaning": "",
"description": "",
"messageParts": [
"翻译元数据转换为代码可以引用的 key-value 格式"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Translate metadata into key-value format that can be referenced by code"
},
"7019652923141591278": {
"id": "7019652923141591278",
"text": "导出文件夹",
"meaning": "",
"description": "",
"messageParts": [
"导出文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Export folder"
},
"7673149086666070464": {
"id": "7673149086666070464",
"text": "翻译文件夹列表",
"meaning": "",
"description": "",
"messageParts": [
"翻译文件夹列表"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Translation folder list"
},
"3463923311488963679": {
"id": "3463923311488963679",
"text": "语言映射;第一个语言为输出名比如: en,en-us;cn,zh-cn 输出 en.json cn.json",
"meaning": "",
"description": "",
"messageParts": [
"语言映射;第一个语言为输出名比如: en,en-us;cn,zh-cn 输出 en.json cn.json"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Language mapping; The first language is the output name, for example: en,en-us;cn,zh-cn output en.json cn.json"
},
"4382030543399306865": {
"id": "4382030543399306865",
"text": "用于合并多个包的翻译文件/元数据",
"meaning": "",
"description": "",
"messageParts": [
"用于合并多个包的翻译文件/元数据"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "Translation files/metadata for merging multiple packages"
}
}
170 changes: 170 additions & 0 deletions i18n-meta/zh-Hans.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"8854798582008352047": {
"id": "8854798582008352047",
"text": "输出格式",
"meaning": "",
"description": "",
"messageParts": [
"输出格式"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "输出格式"
},
"9148710629420152102": {
"id": "9148710629420152102",
"text": "待翻译代码文件夹",
"meaning": "",
"description": "",
"messageParts": [
"待翻译代码文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "待翻译代码文件夹"
},
"8228150899955189359": {
"id": "8228150899955189359",
"text": "元数据输出文件夹",
"meaning": "",
"description": "",
"messageParts": [
"元数据输出文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "元数据输出文件夹"
},
"5764505695883366666": {
"id": "5764505695883366666",
"text": "正则匹配",
"meaning": "",
"description": "",
"messageParts": [
"正则匹配"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "正则匹配"
},
"172425973619832421": {
"id": "172425973619832421",
"text": "元数据名",
"meaning": "",
"description": "",
"messageParts": [
"元数据名"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "元数据名"
},
"6644092824683945049": {
"id": "6644092824683945049",
"text": "更新翻译元数据(会更新输出文件夹内的所有文件)",
"meaning": "",
"description": "",
"messageParts": [
"更新翻译元数据(会更新输出文件夹内的所有文件)"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "更新翻译元数据(会更新输出文件夹内的所有文件)"
},
"4602536547892723040": {
"id": "4602536547892723040",
"text": "提取代码中的 $localize 标签模板函数内容;使用 --update 可以直接更新文件夹内的翻译元数据,可以创建一个空翻译文件再执行更新",
"meaning": "",
"description": "",
"messageParts": [
"提取代码中的 $localize 标签模板函数内容;使用 --update 可以直接更新文件夹内的翻译元数据,可以创建一个空翻译文件再执行更新"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "提取代码中的 $localize 标签模板函数内容;使用 --update 可以直接更新文件夹内的翻译元数据,可以创建一个空翻译文件再执行更新"
},
"1359707629255117030": {
"id": "1359707629255117030",
"text": "元数据文件夹",
"meaning": "",
"description": "",
"messageParts": [
"元数据文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "元数据文件夹"
},
"7325030709800272957": {
"id": "7325030709800272957",
"text": "输出 key-value 格式;用于直接引用",
"meaning": "",
"description": "",
"messageParts": [
"输出 key-value 格式;用于直接引用"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "输出 key-value 格式;用于直接引用"
},
"4550868467630390053": {
"id": "4550868467630390053",
"text": "翻译元数据转换为代码可以引用的 key-value 格式",
"meaning": "",
"description": "",
"messageParts": [
"翻译元数据转换为代码可以引用的 key-value 格式"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "翻译元数据转换为代码可以引用的 key-value 格式"
},
"7019652923141591278": {
"id": "7019652923141591278",
"text": "导出文件夹",
"meaning": "",
"description": "",
"messageParts": [
"导出文件夹"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "导出文件夹"
},
"7673149086666070464": {
"id": "7673149086666070464",
"text": "翻译文件夹列表",
"meaning": "",
"description": "",
"messageParts": [
"翻译文件夹列表"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "翻译文件夹列表"
},
"3463923311488963679": {
"id": "3463923311488963679",
"text": "语言映射;第一个语言为输出名比如: en,en-us;cn,zh-cn 输出 en.json cn.json",
"meaning": "",
"description": "",
"messageParts": [
"语言映射;第一个语言为输出名比如: en,en-us;cn,zh-cn 输出 en.json cn.json"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "语言映射;第一个语言为输出名比如: en,en-us;cn,zh-cn 输出 en.json cn.json"
},
"4382030543399306865": {
"id": "4382030543399306865",
"text": "用于合并多个包的翻译文件/元数据",
"meaning": "",
"description": "",
"messageParts": [
"用于合并多个包的翻译文件/元数据"
],
"placeholderNames": [],
"associatedMessageIds": {},
"target": "用于合并多个包的翻译文件/元数据"
}
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"scripts": {
"sync:localize": "code-recycle ./script/sync-localize.ts --cwd ./src ",
"test": "rimraf ./test/fixture-output && node --import tsx --inspect ./node_modules/.bin/mocha \"test/**/*.ts\"",
"build": "rimraf ./dist && tsx ./script/build.cli.ts && tsc -p ./tsconfig.build-import.json && tsx ./script/build.import.ts && cpx \"./*.md\" ./dist && cpx ./src/package.json ./dist",
"release-publish": "npm run build && npm --registry=http://192.168.31.88:5555 publish ./dist"
"build": "rimraf ./dist && tsx ./script/build.cli.ts && tsc -p ./tsconfig.build-import.json && tsx ./script/build.import.ts && cpx \"./*.md\" ./dist && cpx ./src/package.json ./dist && npm run i18n:convert",
"release-publish": "npm run build && npm --registry=http://192.168.31.88:5555 publish ./dist",
"i18n:init": "tsx ./src/bin/index.ts ./src ./i18n-meta --update --name zh-Hans",
"i18n:convert": "tsx ./src/bin/index.ts convert ./i18n-meta ./dist/bin/i18n"
},
"bin": {
"i18n": "./lib/bin/index.js",
Expand Down
Loading

0 comments on commit 8230ba1

Please sign in to comment.