The issue with expecting small countries to field indigenous aircraft is that jet engines are hard. The Gripen relies upon the GE F404 engine, and this gives the US leverage in preventing exports. China has been trying for decades to build its own high performance jet engines, and hasn't succeeded. They still rely heavily upon Russian engine designs.