-
-
Save Bluefissure/0b099327f8c742c42491a50c150e1c3c to your computer and use it in GitHub Desktop.
Enable Japanese locale on Steam Deck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is enabling (uncommenting) the Chinese&Japanese locale and regenerates them | |
sudo steamos-readonly disable | |
sudo pacman-key --init | |
sudo pacman-key --populate archlinux | |
sudo pacman -S glibc | |
sudo sed -i "s%#ja_JP.UTF-8 UTF-8%ja_JP.UTF-8 UTF-8%" /etc/locale.gen | |
sudo sed -i "s%#zh_CN.UTF-8 UTF-8%zh_CN.UTF-8 UTF-8%" /etc/locale.gen | |
sudo locale-gen | |
sudo steamos-readonly enable | |
echo "Done! Be sure to put `LANG=ja_JP.UTF-8 %command%` or `LANG=zh_CN.UTF-8 %command%` in the game's startup options on Steam to enable the locale." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment