class_docstr: Locale implementation using the `gettext` module.
code: def __init__(
      self, code: str, translations: gettext.NullTranslations
  ) -> None:
      self.ngettext = translations.ngettext
      self.gettext = translations.gettext
      # self.gettext must exist before __init__ is called, since it
      # calls into self.translate
      super().__init__(code)
  
imports: import codecs
  import csv
  import datetime
  import gettext
  import glob
  import os
  import re
  from tornado import escape
  from tornado.log import gen_log
  from tornado._locale_data import LOCALE_NAMES
  from typing import Iterable, Any, Union, Dict, Optional
label_desc: Use image node_id 1 to create a new GettextLocale object from inherited base classes: Locale with example: obj = GettextLocale(code, translations)