code: def extract_string_pairs_in_dir(directory, exclude_dirs, special_ui_components_prefix):
      
      result = []
      for ib_file_path in find_files(directory, [".xib", ".storyboard"], exclude_dirs):
          result += extract_string_pairs_in_ib_file(ib_file_path, special_ui_components_prefix)
  
      return result
docs: Extract string pairs in the given directory's xib/storyboard files.
  
      Args:
          directory (str): The path to the directory.
          exclude_dirs (str): A list of directories to exclude from extraction.
          special_ui_components_prefix (str):
              If not None, extraction will not warn about internationalized UI components with this class prefix.
  
      Returns:
          list: The extracted string pairs for all IB files in the directory.