Skip to content

Commit ae454ed

Browse files
committed
JiLuo.Xterminal: Set release notes locale
1 parent 97e5e3b commit ae454ed

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Tasks/JiLuo.Xterminal/Script.ps1

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,21 @@ switch -Regex ($this.Check()) {
2121
}
2222

2323
try {
24-
# ReleaseNotesUrl
24+
# ReleaseNotesUrl (zh-CN)
2525
$this.CurrentState.Locale += [ordered]@{
26-
Key = 'ReleaseNotesUrl'
27-
Value = 'https://host.terminal.icu/category/1'
26+
Locale = 'zh-CN'
27+
Key = 'ReleaseNotesUrl'
28+
Value = 'https://host.terminal.icu/category/1'
2829
}
2930

3031
$Object2 = (Invoke-RestMethod -Uri 'https://host.terminal.icu/api/category/1').topics.Where({ $_.title.Contains($this.CurrentState.Version) }, 'First')
3132

3233
if ($Object2) {
33-
# ReleaseNotesUrl
34+
# ReleaseNotesUrl (zh-CN)
3435
$this.CurrentState.Locale += [ordered]@{
35-
Key = 'ReleaseNotesUrl'
36-
Value = "https://host.terminal.icu/topic/$($Object2[0].tid)"
36+
Locale = 'zh-CN'
37+
Key = 'ReleaseNotesUrl'
38+
Value = "https://host.terminal.icu/topic/$($Object2[0].tid)"
3739
}
3840

3941
$Object3 = Invoke-RestMethod -Uri "https://host.terminal.icu/api/topic/$($Object2[0].tid)"

0 commit comments

Comments
 (0)