Skip to content

Commit a45943b

Browse files
committed
push13
1 parent bdcc1bd commit a45943b

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ jobs:
2626
shell: pwsh
2727

2828
- name: Install Japanese Language Pack
29-
run: Install-Language ja-JP
3029
shell: pwsh
31-
32-
- name: Set Japanese Language Pack
3330
run: |
34-
$LangList = New-WinUserLanguageList -Language ja-JP
35-
$LangList[0].InputMethodTips.Add("0411:00000411")
36-
Set-WinUserLanguageList -LanguageList $LangList -Force
37-
Set-WinUILanguageOverride -Language ja-JP
38-
Set-WinUserLocale -UserLocale ja-JP
31+
# Install Japanese language pack
32+
Add-WindowsCapability -Online -Name "Language.Basic~~~ja-JP~0.0.1.0"
33+
Add-WindowsCapability -Online -Name "Language.Handwriting~~~ja-JP~0.0.1.0"
34+
Add-WindowsCapability -Online -Name "Language.OCR~~~ja-JP~0.0.1.0"
35+
Add-WindowsCapability -Online -Name "Language.Speech~~~ja-JP~0.0.1.0"
36+
Add-WindowsCapability -Online -Name "Language.TextToSpeech~~~ja-JP~0.0.1.0"
37+
38+
# Set Japanese as the default system locale
3939
Set-WinSystemLocale -SystemLocale ja-JP
40-
Set-Culture -CultureInfo ja-JP
41-
shell: pwsh
4240
43-
- name: Reboot to Apply Changes (if necessary)
44-
run: shutdown /r /t 0
45-
shell: cmd
41+
# Set Japanese as the default user locale
42+
Set-WinUserLanguageList -LanguageList ja-JP -Force
43+
44+
# Restart the system to apply changes
45+
Restart-Computer -Force
4646

0 commit comments

Comments
 (0)