Flying from the United States to South Africa with a connection in Frankfurt typically involves a United Airlines transatlantic segment followed by a Lufthansa intra-Europe/Africa leg. Because the journey is on a single ticket, the baggage policy of the marketing carrier for the first international segment (United) usually governs the checked-bag allowance for the entire itinerary under IATA's Most Significant Carrier (MSC) rules. However, cabin-bag rules may differ per operating carrier.
Premier status, Star Alliance Gold, or premium-cabin tickets can increase checked-bag weight to 32 kg (70 lb) per piece and/or add a third bag.
Lufthansa's own long-haul allowance (if it were the MSC) mirrors United's: 2 × 23 kg in Economy, 2 × 32 kg in Business. Since United is the MSC here, Lufthansa will honor United's allowance on the connecting flight. Always verify at check-in—the agent will tag bags through to the final destination under the applicable allowance.
Rules change; fare types (Basic Economy vs. standard Economy) alter allowances. Check United's "Baggage Calculator" and Lufthansa's "Baggage Rules" for your specific booking class and frequent-flyer status 24–48 hours before departure.