code: def get_language_pack(locale):
      
      pack = ALL_LANGUAGE_PACKS.get(locale)
      if not pack:
          filename = DIR + '/{}/LC_MESSAGES/messages.json'.format(locale)
          try:
              with open(filename) as f:
                  pack = json.load(f)
                  ALL_LANGUAGE_PACKS[locale] = pack
          except Exception:
              # Assuming english, client side falls back on english
              pass
      return pack
docs: Get/cache a language pack
  
      Returns the langugage pack from cache if it exists, caches otherwise
  
      >>> get_language_pack('fr')['Dashboards']
      "Tableaux de bords"