{
    "mode": "pydoc",
    "parameter": "babel",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/babel/json",
    "generated": "2026-06-02T15:51:36Z",
    "sections": {
        "NAME": {
            "content": "babel\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "babel\n~~~~~\n\nIntegrated collection of utilities that assist in internationalizing and\nlocalizing applications.\n\nThis package is basically composed of two major parts:\n\n* tools to build and work with ``gettext`` message catalogs\n* a Python interface to the CLDR (Common Locale Data Repository), providing\naccess to various locale display names, localized number and date\nformatting, etc.\n\n:copyright: (c) 2013-2019 by the Babel Team.\n:license: BSD, see LICENSE for more details.\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "compat\ncore\ndates\nlanguages\nlists\nlocaledata\nlocaltime (package)\nmessages (package)\nnumbers\nplural\nsupport\nunits\nutil\n",
            "subsections": []
        },
        "VERSION": {
            "content": "2.8.0\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/babel/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "babel",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.",
        "examples": [
            {
                "description": "Transpile a specified input file and output to `stdout`",
                "command": "babel {{path/to/file}}"
            },
            {
                "description": "Transpile a specified input file and output to a specific file",
                "command": "babel {{path/to/input_file}} --out-file {{path/to/output_file}}"
            },
            {
                "description": "Transpile the input file every time it is changed",
                "command": "babel {{path/to/input_file}} --watch"
            },
            {
                "description": "Transpile a whole directory of files",
                "command": "babel {{path/to/input_directory}}"
            },
            {
                "description": "Ignore specified comma-separated files in a directory",
                "command": "babel {{path/to/input_directory}} --ignore {{ignored_file1,ignored_file2,...}}"
            },
            {
                "description": "Transpile and output as minified JavaScript",
                "command": "babel {{path/to/input_file}} --minified"
            },
            {
                "description": "Choose a set of presets for output formatting",
                "command": "babel {{path/to/input_file}} --presets {{preset1,preset2,...}}"
            },
            {
                "description": "Display help",
                "command": "babel --help"
            }
        ]
    }
}