Is the concept of nationality reflected in China's ancient books?

Although the word "national character" has long been used to refer to people involved in the same body in China ancient books, as early as the 6th century AD, in the thirty-fifth volume of Biography of Gao Yi, there was a statement that "today's China scholars are women, and the national character is prosperous", but China's modern concept of national character was mainly influenced by Japanese translation of western books. According to Hao Shiyuan, a scholar of ethnology and anthropology in China, ancient China people were "nations".