Skip to content

Commit 43fd762

Browse files
committed
fix: i18n 参数
1 parent 5712cab commit 43fd762

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

MaiChartManager/Front/src/locales/en.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ chart:
262262
Will add {padding} seconds of silence to ensure first note is in second
263263
bar
264264
trimPadding: Will trim {padding} seconds of audio to ensure first note is in second bar
265-
addFirst: Will add {first} seconds of silence to match &first value
266-
trimFirst: Will trim {first} seconds of audio to match &first value
265+
addFirst: Will add {padding} seconds of silence to match &first value
266+
trimFirst: Will trim {padding} seconds of audio to match &first value
267267
addBar: Will add 1 bar of silence at the beginning of the chart to ensure the first note is after the second bar
268268
error:
269269
noMaidata: maidata.txt not found

MaiChartManager/Front/src/locales/zh-TW.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ chart:
240240
folderHint: 包含以下檔案的資料夾,或者,一個包含一些這樣的資料夾的資料夾
241241
addPadding: 將在音訊前面加上 {padding} 秒空白以保證第一押在第二小節
242242
trimPadding: 將裁剪 {padding} 秒音訊以保證第一押在第二小節
243-
addFirst: 將在音訊前面加上 {first} 秒空白以對應 &first 的值
244-
trimFirst: 將裁剪 {first} 秒音訊以對應 &first 的值
243+
addFirst: 將在音訊前面加上 {padding} 秒空白以對應 &first 的值
244+
trimFirst: 將裁剪 {padding} 秒音訊以對應 &first 的值
245245
addBar: 將在譜面開頭加上1小節空白,以保證第一押出現在第二小節之後
246246
error:
247247
noMaidata: 未找到 maidata.txt

MaiChartManager/Front/src/locales/zh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ chart:
240240
folderHint: 包含以下文件的文件夹,或者,一个包含一些这样的文件夹的文件夹
241241
addPadding: 将在音频前面加上 {padding} 秒空白以保证第一押在第二小节
242242
trimPadding: 将裁剪 {padding} 秒音频以保证第一押在第二小节
243-
addFirst: 将在音频前面加上 {first} 秒空白以对应 &first 的值
244-
trimFirst: 将裁剪 {first} 秒音频以对应 &first 的值
243+
addFirst: 将在音频前面加上 {padding} 秒空白以对应 &first 的值
244+
trimFirst: 将裁剪 {padding} 秒音频以对应 &first 的值
245245
addBar: 将在谱面开头加上1小节空白,以保证第一押出现在第二小节之后
246246
error:
247247
noMaidata: 未找到 maidata.txt

MaiChartManager/Front/src/views/Charts/ImportCreateChartButton/ImportChartButton/ImportAlert.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineComponent({
3636
else if (padding > 0){
3737
return <div key={i} class="p-3 rounded border border-blue/30 bg-blue/10">
3838
<div class="font-bold mb-1">{error.name}</div>
39+
{/* i18n 中的参数始终使用 padding,因为要动态选择 key */}
3940
{t('chart.import.add' + i18nPostfix.value, {padding: padding.toFixed(3)})}
4041
</div>
4142
}

0 commit comments

Comments
 (0)