LOCALE-GEN(8)

๐Ÿ“ฆ
version 2.44 ยท 3 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

Hey bestie! ๐ŸŽ€ Here's the LOCALE-GEN(8) page from the System Manager's Manual, all tea, no filler. โœจ


โœจ NAME โœจ

locale-gen โ€” generate localisation files from templates ๐ŸŒธ

๐Ÿงš SYNOPSIS ๐Ÿงš

locale-gen [--keep-existing]

๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so compiled locales are huge ๐Ÿ˜ญ which is why only the templates get shipped in the default locales package, and only the locales you actually want get compiled on your own machine. lowkey genius.

after you pick your locales in /etc/locale.gen (through dpkg package configuration, for example), you run locale-gen to compile them with localedef(1). it's giving tidy, no cap. ๐Ÿซถ

๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

  • --keep-existing โ€” don't delete /usr/lib/locale/locale-archive. it only compiles the brand new locales and leaves the rest alone. โœจ

๐Ÿ“ FILES ๐Ÿ“

  • /etc/locale.gen โ€” the main list ๐Ÿ’œ It's a whitespace-separated, newline-delimited list of locale charset pairs that locale-gen builds. Lines starting with # are comments, so you can leave yourself notes.
  • /var/lib/locales/supported.d โ€” a directory full of locale.gen snippets that language-pack packages drop in ๐ŸŒˆ Please don't hand-edit these, bestie, they get overwritten on package upgrades. ๐Ÿ’€

๐Ÿ”— SEE ALSO ๐Ÿ”—

locale(1), localedef(1), locale.gen(5) ๐Ÿ“

  • /usr/share/i18n/SUPPORTED (or /usr/local/share/i18n/SUPPORTED) โ€” the list of every supported locale on the current system. main character energy ๐Ÿ‘‘
  • The locales-all package โ€” has every supported locale already compiled, so you don't have to do it yourself. iconic. ๐Ÿ”ฅ

Sign-off: this page is from Debian, dated May 5, 2022, and it's the LOCALE-GEN(8) manual. periodt! ๐Ÿ’–๐Ÿฆ‹โœจ