Nuclear charge-exchange excitations in localized covariant density functional theory