Skip to content

Instantly share code, notes, and snippets.

@XargonWan
Last active April 11, 2024 00:54
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save XargonWan/cc660daf92c224b7241cbf5a2bf12c47 to your computer and use it in GitHub Desktop.
Save XargonWan/cc660daf92c224b7241cbf5a2bf12c47 to your computer and use it in GitHub Desktop.
Enable Japanese locale on Steam Deck
#!/bin/bash
# This script is enabling (uncommenting) the 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 locale-gen
sudo steamos-readonly enable
echo "Done! Be sure to put `LANG=ja_JP.UTF-8 %command%` in the game's startup options on Steam to enable the locale."
@helderlopes97
Copy link

FYI I just finished running this on Konsole in my Steam Deck and in the end it echoed "Done! Be sure to put in the game's startup options on Steam to enable the locale." so the ` you have before and after the launch option might be causing it not to print.

Besides that the script ran fine and the locale is working in my game so very much thank you!

Copy link

ghost commented Sep 8, 2023

I will definitely try this on the Steam Deck when I get one this fall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment