{
    "content": [
        {
            "type": "text",
            "text": "# locale-gen(8) (man)\n\n## TLDR\n\n> Generate locales defined in `/etc/locale.gen`.\n\n- Generate locales:\n  `sudo locale-gen`\n- Do not delete undefined locales:\n  `sudo locale-gen --keep-existing`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** locale-gen — generates localisation files from templates\n\n## See Also\n\n- localedef(1)\n- locale(1)\n- locale.gen(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 1 subsections\n  - locale-gen (1 lines)\n- **DESCRIPTION** (15 lines)\n- **FILES** (1 lines) — 2 subsections\n  - /etc/locale.gen (3 lines)\n  - /var/lib/locales/supported.d/ (3 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (9 lines)\n\n## Full Content\n\n### NAME\n\nlocale-gen — generates localisation files from templates\n\n### SYNOPSIS\n\n#### locale-gen\n\n### DESCRIPTION\n\nThis manual page documents briefly the locale-gen command.\n\nBy default, the locale package which provides the base support for localisation of libc-based\nprograms does not contain usable localisation files for every supported language. This  limi‐\ntation  has became necessary because of the substantial size of such files and the large num‐\nber of languages supported by libc. As a result, Debian uses a  special  mechanism  where  we\nprepare  the  actual  localisation files on the target host and distribute only the templates\nfor them.\n\nlocale-gen is a program that reads the file /etc/locale.gen and  invokes  localedef  for  the\nchosen  localisation  profiles.   Run  locale-gen after you have modified the /etc/locale.gen\nfile.\n\n### FILES\n\n#### /etc/locale.gen\n\nThe main configuration file, which has a simple format: every line that is not empty and does\nnot begin with a # is treated as a locale definition that is to be built.\n\n#### /var/lib/locales/supported.d/\n\nA  directory  containing locale.gen snippets provided by language-pack packages.  Do not edit\nthese manually, they will be overwritten on package upgrades.\n\n### SEE ALSO\n\nlocaledef(1), locale(1), locale.gen(5).\n\n### AUTHOR\n\nThis manual page was written by Eduard Bloch <blade@debian.org> for the Debian GNU/Linux sys‐\ntem  (but  may  be  used by others).  Permission is granted to copy, distribute and/or modify\nthis document under the terms of the GNU Free Documentation License, Version 1.1 or any later\nversion published by the Free Software Foundation; with no Invariant Sections, no Front-Cover\nTexts and no Back-Cover Texts.\n\n\n\nLOCALE-GEN(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "locale-gen",
        "section": "8",
        "mode": "man",
        "summary": "locale-gen — generates localisation files from templates",
        "synopsis": "",
        "tldr_summary": "Generate locales defined in `/etc/locale.gen`.",
        "tldr_examples": [
            {
                "description": "Generate locales",
                "command": "sudo locale-gen"
            },
            {
                "description": "Do not delete undefined locales",
                "command": "sudo locale-gen --keep-existing"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "localedef",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/localedef/1/json"
            },
            {
                "name": "locale",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/locale/1/json"
            },
            {
                "name": "locale.gen",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/locale.gen/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "locale-gen",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/etc/locale.gen",
                        "lines": 3
                    },
                    {
                        "name": "/var/lib/locales/supported.d/",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 9,
                "subsections": []
            }
        ]
    }
}