Skip to content

Commit

Permalink
Merge pull request #15 from wxy/i8n
Browse files Browse the repository at this point in the history
完成多语言支持
  • Loading branch information
wxy authored Apr 22, 2024
2 parents 792736d + 7e7cef0 commit 089e69a
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 61 deletions.
86 changes: 86 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"extensionDescription": {
"message": "This extension calculates statistics for table rows and columns instantly and in-place."
},

"optionsMenuTitle": {
"message": "Options"
},

"algorithmNameCNT": {
"message": "count"
},
"algorithmNameSUM": {
"message": "sum"
},
"algorithmNameAVG": {
"message": "average"
},
"algorithmNameVAR": {
"message": "variance"
},
"algorithmNameMIN": {
"message": "minimum"
},
"algorithmNameMAX": {
"message": "maximum"
},
"algorithmNameRNG": {
"message": "range"
},
"algorithmNameMED": {
"message": "median"
},
"algorithmNameSTD": {
"message": "std dev"
},

"statisticsTitle": {
"message": "$1$ $2$ $3$: $4$",
"placeholders": {
"1": {
"content": "$1",
"example": "Column"
},
"2": {
"content": "$2",
"example": "1"
},
"3": {
"content": "$3",
"example": "count"
},
"4": {
"content": "$4",
"example": "10"
}
}
},

"column": {
"message": "Column"
},
"row": {
"message": "Row"
},

"optionsTitle": {
"message": "HiTable Extension Options"
},
"boxColor": {
"message": "Box Color:"
},
"algorithm": {
"message": "Algorithm:"
},
"optionsSave": {
"message": "Save"
},
"optionsSaved": {
"message": "Saved"
},

"_": {
"message": "_"
}
}
85 changes: 85 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"extensionDescription": {
"message": "该扩展可以即时且原地计算表格行和列的统计数据。"
},
"optionsMenuTitle": {
"message": "选项"
},

"algorithmNameCNT": {
"message": "计数"
},
"algorithmNameSUM": {
"message": "求和"
},
"algorithmNameAVG": {
"message": "平均值"
},
"algorithmNameVAR": {
"message": "方差"
},
"algorithmNameMIN": {
"message": "最小值"
},
"algorithmNameMAX": {
"message": "最大值"
},
"algorithmNameRNG": {
"message": "范围"
},
"algorithmNameMED": {
"message": "中位数"
},
"algorithmNameSTD": {
"message": "标准差"
},

"statisticsTitle": {
"message": "$1$ $2$ 的$3$: $4$",
"placeholders": {
"1": {
"content": "$1",
"example": ""
},
"2": {
"content": "$2",
"example": "1"
},
"3": {
"content": "$3",
"example": "计数"
},
"4": {
"content": "$4",
"example": "10"
}
}
},
"column": {
"message": ""
},
"row": {
"message": ""
},

"optionsTitle": {
"message": "HiTable 扩展选项"
},
"boxColor": {
"message": "盒子颜色:"
},
"algorithm": {
"message": "统计算法:"
},

"optionsSave": {
"message": "保存"
},
"optionsSaved": {
"message": "已保存"
},

"_": {
"message": "_"
}
}
80 changes: 80 additions & 0 deletions _locales/zh_HK/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"extensionDescription": {
"message": "該擴展可以即時且原地計算表格行和列的統計數據。"
},
"optionsMenuTitle": {
"message": "選項"
},
"algorithmNameCNT": {
"message": "計數"
},
"algorithmNameSUM": {
"message": "總和"
},
"algorithmNameAVG": {
"message": "平均值"
},
"algorithmNameVAR": {
"message": "方差"
},
"algorithmNameMIN": {
"message": "最小值"
},
"algorithmNameMAX": {
"message": "最大值"
},
"algorithmNameRNG": {
"message": "範圍"
},
"algorithmNameMED": {
"message": "中位數"
},
"algorithmNameSTD": {
"message": "標準差"
},
"statisticsTitle": {
"message": "$1$ $2$ 的$3$: $4$",
"placeholders": {
"1": {
"content": "$1",
"example": ""
},
"2": {
"content": "$2",
"example": "1"
},
"3": {
"content": "$3",
"example": "計數"
},
"4": {
"content": "$4",
"example": "10"
}
}
},
"column": {
"message": ""
},
"row": {
"message": ""
},
"optionsTitle": {
"message": "HiTable 擴展選項"
},
"boxColor": {
"message": "盒子顏色:"
},
"algorithm": {
"message": "統計算法:"
},
"optionsSave": {
"message": "保存"
},
"optionsSaved": {
"message": "已保存"
},
"_": {
"message": "_"
}
}
80 changes: 80 additions & 0 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"extensionDescription": {
"message": "該擴展可以即時且原地計算表格行和列的統計數據。"
},
"optionsMenuTitle": {
"message": "選項"
},
"algorithmNameCNT": {
"message": "計數"
},
"algorithmNameSUM": {
"message": "加總"
},
"algorithmNameAVG": {
"message": "平均數"
},
"algorithmNameVAR": {
"message": "變異數"
},
"algorithmNameMIN": {
"message": "最小值"
},
"algorithmNameMAX": {
"message": "最大值"
},
"algorithmNameRNG": {
"message": "範圍"
},
"algorithmNameMED": {
"message": "中位數"
},
"algorithmNameSTD": {
"message": "標準差"
},
"statisticsTitle": {
"message": "$1$ $2$ 的$3$: $4$",
"placeholders": {
"1": {
"content": "$1",
"example": ""
},
"2": {
"content": "$2",
"example": "1"
},
"3": {
"content": "$3",
"example": "計數"
},
"4": {
"content": "$4",
"example": "10"
}
}
},
"column": {
"message": ""
},
"row": {
"message": ""
},
"optionsTitle": {
"message": "HiTable 擴展選項"
},
"boxColor": {
"message": "盒子顏色:"
},
"algorithm": {
"message": "統計算法:"
},
"optionsSave": {
"message": "保存"
},
"optionsSaved": {
"message": "已保存"
},
"_": {
"message": "_"
}
}
5 changes: 3 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"manifest_version": 3,
"name": "HiTable",
"description": "This extension calculates statistics for table rows and columns instantly and in-place.",
"version": "0.0.3",
"description": "__MSG_extensionDescription__",
"version": "0.0.4",
"default_locale": "en",
"background": {
"service_worker": "scripts/background.js"
},
Expand Down
Loading

0 comments on commit 089e69a

Please sign in to comment.