Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Change System Language Mac Command Line

· 6 min read · Home Tech

In this article
  1. What the Command Does
  2. How to Use languagesetup
  3. Checking the Current Language
  4. What the Command Changes vs. What It Doesn't
  5. Common Problems and Solutions
  6. Alternative: Using System Settings
  7. Safety and Precautions
  8. Frequently Asked Questions

Yes, you can change the system language on a Mac from the command line, and the primary command is sudo languagesetup. This command opens an interactive menu that lists all available languages, letting you select one to set as the system-wide language. It changes the language for the login window and for all user accounts on the Mac, though individual users can override it in System Settings.

What the Command Does

The languagesetup utility is a built-in macOS tool that manages the system language. When you run it with sudo, it presents a numbered list of languages. You type the number of the language you want and press Return. The system then updates the language configuration files that control the login window and the default language for new users. It does not change the language for already-logged-in users unless they also change their own setting.

After running the command, you must restart your Mac for the change to take full effect, especially for the login screen and system services.

How to Use languagesetup

Here are the exact steps to change the system language via the command line:

  1. Open Terminal (found in /Applications/Utilities/).
  2. Type sudo languagesetup and press Return.
  3. Enter your administrator password when prompted (you won't see characters as you type).
  4. A list of languages appears. Find the one you want and type its number, then press Return.
  5. Restart your Mac to apply the change system-wide.

For example, if you want to set the system to French, you'd look for the number next to “French” and enter that number. The list is long, so you may need to scroll or use the terminal's search (if available) to find the language.

Checking the Current Language

Before changing, you might want to see what language is currently set. You can check the system language with the command:

sudo languagesetup -h

This shows help options, but to see the current setting, run sudo languagesetup and look at the list—the current language is usually marked with an asterisk (*). Alternatively, you can check the property list file that stores the setting:

defaults read /Library/Preferences/.GlobalPreferences AppleLanguages

This returns an array of language codes, with the first one being the primary system language. For example, ( en, fr ) means English is primary, French is secondary.

What the Command Changes vs. What It Doesn't

The command line method affects the system-level language, which is the language used for the login screen, system dialogs, and the default language for all user accounts. However, each user account has its own language preference that overrides the system setting. If a user has set a specific language in System Settings > General > Language & Region, that user's apps and menus will use their chosen language, not the system one.

To change just your own user language via the command line, you can use:

defaults write NSGlobalDomain AppleLanguages -array en fr

This sets your user account's preferred languages to English first, French second. You need to log out and back in for it to take effect.

Common Problems and Solutions

  • Command not found: If you get “command not found,” make sure you're using the full path /usr/sbin/languagesetup or that your PATH includes /usr/sbin. Usually it does.
  • Permission denied: You must use sudo; otherwise, you'll get a permission error.
  • Language not in the list: The list includes all languages macOS supports, but if you don't see one, it might be a regional variant. For example, “Chinese” might be listed as “简体中文” or “繁體中文.”
  • Change doesn't stick after reboot: Make sure you restart fully, not just log out. Also, if you have FileVault enabled, the login screen might still show the old language until you log in once.
  • Apps still show old language: Some apps have their own language settings. Check the app's preferences or delete the app's language preference files (not recommended unless you know what you're doing).

Alternative: Using System Settings

If you're not comfortable with the command line, you can change the system language through the GUI: Go to System Settings > General > Language & Region. Click the “+” button to add a language, then drag it to the top of the list to make it primary. You'll be prompted to restart or log out. This method is more user-friendly and less error-prone, but the command line is faster for scripting or remote management.

Safety and Precautions

Changing the system language is generally safe, but there are a few things to keep in mind:

  • Backup your data before making system-level changes, just in case.
  • Don't remove the primary language entirely; keep at least one language you understand. If you set a language you can't read, you might have trouble navigating back to change it.
  • Using sudo requires care—only run commands you understand. The languagesetup command is harmless, but always double-check.
  • If you get stuck with an unreadable language, you can boot into Recovery Mode (hold Command+R at startup) and use the Terminal there to reset the language.

Frequently Asked Questions

Can I use the command line to change the language without sudo?

No, changing the system language affects the whole system, so it requires administrator privileges. You must use sudo and enter your password. For your own user account, you can use defaults write without sudo, but that only affects your user, not the system.

Will changing the system language delete any of my files?

No, changing the language does not affect your files, documents, or applications. It only changes the display language for the system interface and default apps. Your data remains untouched.

How do I revert to the original language?

Simply run sudo languagesetup again, select the original language from the list, and restart. You can also use the System Settings GUI to change it back. There's no permanent change; it's fully reversible.

Does the command line method work on Apple Silicon (M1/M2) Macs?

Yes, languagesetup works on both Intel and Apple Silicon Macs. The command is part of macOS and hasn't changed in this regard. Just make sure you're running a recent version of macOS.

Why does the login screen still show the old language after I changed it?

This usually happens because you haven't restarted the Mac. The login screen reads the system language at boot, so a full restart is required. If it still persists, check if you have multiple volumes or if the setting was applied to the wrong volume (e.g., a recovery volume).

Can I change the language for a single app using the command line?

Yes, you can force an app to use a specific language by setting the AppleLanguages key in the app's preferences, but it's more complex. A simpler way is to use the “Open in Specific Language” feature in Finder (right-click the app, Get Info, then select a language under “Open with”). The command line method for this involves editing the app's Info.plist, which is not recommended for most users.