SELECT 
  cscart_languages.* 
FROM 
  cscart_languages 
  LEFT JOIN cscart_storefronts_languages AS storefronts_languages ON storefronts_languages.language_id = cscart_languages.lang_id 
WHERE 
  1 
  AND cscart_languages.status = 'A' 
  AND (
    storefronts_languages.storefront_id = 1 
    OR storefronts_languages.storefront_id IS NULL
  )

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.40"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_languages",
          "access_type": "system",
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.20",
            "prefix_cost": "0.00",
            "data_read_per_join": "216"
          },
          "used_columns": [
            "lang_id",
            "lang_code",
            "name",
            "status",
            "country_code"
          ]
        }
      },
      {
        "table": {
          "table_name": "storefronts_languages",
          "access_type": "index",
          "key": "PRIMARY",
          "used_key_parts": [
            "storefront_id",
            "language_id"
          ],
          "key_length": "8",
          "rows_examined_per_scan": 2,
          "rows_produced_per_join": 1,
          "filtered": "75.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "2.10",
            "eval_cost": "0.30",
            "prefix_cost": "2.40",
            "data_read_per_join": "24"
          },
          "used_columns": [
            "storefront_id",
            "language_id"
          ],
          "attached_condition": "(<if>(found_match(storefronts_languages), ((`danishecarter_21_apr`.`storefronts_languages`.`storefront_id` = 1) or isnull(`danishecarter_21_apr`.`storefronts_languages`.`storefront_id`)), true) and <if>(is_not_null_compl(storefronts_languages), (`danishecarter_21_apr`.`storefronts_languages`.`language_id` = '1'), true))"
        }
      }
    ]
  }
}

Result

lang_id lang_code name status country_code
1 en English A US