class_docstr: A repository for message catalogs.
class_docstr_tok: ["A","repository","for","message","catalogs","."]
code: def __init__(
      self,
      basedir: str | os.PathLike[str],
      locale_dirs: list[str],
      language: str,
      encoding: str,
  ) -> None:
      self.basedir = basedir
      self._locale_dirs = locale_dirs
      self.language = language
      self.encoding = encoding
  
imports: from __future__ import annotations
  import os
  import re
  from datetime import datetime, timezone
  from os import path
  from typing import TYPE_CHECKING, Callable, NamedTuple
  import babel.dates
  from babel.messages.mofile import write_mo
  from babel.messages.pofile import read_po
  from sphinx.errors import SphinxError
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.osutil import SEP, canon_path, relpath
label_desc: Use image node_id 1 to create a new CatalogRepository object  with example: obj = CatalogRepository(basedir, locale_dirs, language, encoding)