The Malay word for the sun is an eye. matahari and Indonesian matahari are mata, “eye”, plus hari, “day”, so the sun is the eye of the day. The Dutch dancer who took the stage name Mata Hari was borrowing this word. Look up on a clear morning and the picture is hard to argue with: a single bright eye, open from dawn to dusk, and looking at everything.
The old word
Indo-European has been more prosaic, and more constant. *sóh₂wl̥ is behind Latin sōl, Ancient Greek ἥλιος (hɛ̌ːlios), Russian солнце (ˈsontsə), Polish słońce, German Sonne and English sun. Greek shows what can happen to a word: the initial s became an h and the rest wore down, until it reached Modern Greek ήλιος (ˈiʎos). English and German took a form from the oblique stem, with an n, and Latin took the other, with an l, so a solar panel and a sunny day are the two ends of one old noun. Swedish sol and Spanish sol have the l version.
Sun and day
A striking number of languages do not separate the sun from the day. Hungarian nap means both sun and day, and its origin is unknown. Tagalog araw means sun and day, and goes back to Proto-Malayo-Polynesian. Korean 해 (hɛ) is the sun, sunlight and the daytime. These languages are making a reasonable point: the day is what the sun does. Swahili jua goes back to Proto-Bantu, and the same spelling is the ordinary verb “to know”, though nothing says they are connected, and it is a lovely coincidence if not.
The greatest yang
Chinese has a word with a philosophy in it. The old word was 日, and it is still the one in Japanese 日 (çi), where the same character gave the country its name. Mandarin 太阳 (tʰaɪ̯˥˩ jɑŋ˧˥) and Cantonese 太陽 (tʰaːi˧ jœːŋ˨˩) now say a two-syllable word, and Wiktionary suggests that it may be so named because the sun was considered the greatest extreme of yang, one of the two primary forces in Chinese belief. So the everyday word for the thing in the sky is an expression of cosmology.
Others have stayed with their own old words. Arabic شمس (ʃams) and Hebrew שמש (ˈʃemeʃ) go back to Proto-Semitic *śamš-. Turkish güneş comes from Proto-Turkic, with an old sense of a sunny place. Finnish aurinko is uncertain, and one proposal connects it to a Baltic word for dawn.
The sun is the most visible thing that any language has ever had to name. Even so, the great families do not agree on what it is. It was a light, a day, a force in the universe and a watching eye. Malay’s answer is the only one that looks back.