{
    "content": [
        {
            "type": "text",
            "text": "# validlocale(8) (man)\n\n**Summary:** validlocale - Test if a given locale is available\n\n## Examples\n\n- `If you give a valid locale as parameter, it outputs a string specifying this on stderr:`\n- `% validlocale C`\n- `locale 'C' valid and available`\n- `When given a invalid (not generated or just nonexistent),  it  outputs  a  string  on  stderr`\n- `telling  that  this  is  an  invalid locale, and a string to stdout with the string to add to`\n- `/etc/locale.gen to have this locale generated:`\n- `% validlocale deAU@euro`\n- `locale 'deAU@euro' not available`\n- `deAU@euro ISO-8859-15`\n\n## See Also\n\n- locale-gen(8)\n- localedef(1)\n- locale(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNTAX** (2 lines)\n- **DESCRIPTION** (4 lines)\n- **FILES** (3 lines)\n- **ENVIRONMENT VARIABLES** (4 lines)\n- **EXAMPLES** (13 lines)\n- **AUTHORS** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nvalidlocale - Test if a given locale is available\n\n### SYNTAX\n\nvalidlocale <locale>\n\n### DESCRIPTION\n\nTest  if  the  locale  given as argument is a valid locale.  If it isn't, print on stdout the\nstring to add to /etc/locale.gen to make locale-gen generate the  locale  (if  it  exists  at\nall).\n\n### FILES\n\n/usr/sbin/validlocale\n/usr/share/i18n/SUPPORTED\n\n### ENVIRONMENT VARIABLES\n\nDEFAULTCHARSET\nWhich  charset to assume if the given locale is missing from the list of supported lo‐\ncales.\n\n### EXAMPLES\n\nIf you give a valid locale as parameter, it outputs a string specifying this on stderr:\n\n% validlocale C\nlocale 'C' valid and available\n\nWhen given a invalid (not generated or just nonexistent),  it  outputs  a  string  on  stderr\ntelling  that  this  is  an  invalid locale, and a string to stdout with the string to add to\n/etc/locale.gen to have this locale generated:\n\n% validlocale deAU@euro\nlocale 'deAU@euro' not available\ndeAU@euro ISO-8859-15\n\n### AUTHORS\n\nPetter Reinholdtsen <pere@hungry.com>\n\n### SEE ALSO\n\nlocale-gen(8), localedef(1), locale(1)\n\n\n\nPetter Reinholdtsen                              0.1                                  validlocale(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "validlocale",
        "section": "8",
        "mode": "man",
        "summary": "validlocale - Test if a given locale is available",
        "synopsis": null,
        "flags": [],
        "examples": [
            "If you give a valid locale as parameter, it outputs a string specifying this on stderr:",
            "% validlocale C",
            "locale 'C' valid and available",
            "When given a invalid (not generated or just nonexistent),  it  outputs  a  string  on  stderr",
            "telling  that  this  is  an  invalid locale, and a string to stdout with the string to add to",
            "/etc/locale.gen to have this locale generated:",
            "% validlocale deAU@euro",
            "locale 'deAU@euro' not available",
            "deAU@euro ISO-8859-15"
        ],
        "see_also": [
            {
                "name": "locale-gen",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/locale-gen/8/json"
            },
            {
                "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNTAX",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}