Why there are two versions of good night
The longer Latvian expression begins with the preposition ar, meaning with. The remaining words form a wish involving a good night. Removing that initial word gives a shorter formula with essentially the same purpose. You do not have to decide between a male or female form of the expression when speaking to someone. Both versions use words that agree grammatically with nakts, the noun for night, rather than describing the person receiving the wish.
A restful sleep or a friendly farewell
A Latvian friend who has an early start tomorrow may appreciate a wish to get enough sleep. The verb izgulēties expresses the idea of sleeping sufficiently, which is slightly different from simply spending time asleep. Its familiar imperative makes a practical, caring sign-off to one person. In more distant social relationships, the plain good-night expression is less personal and does not require the speaker to choose a particular verb form or comment on the other person’s plans.
Recognising the letters in a dream wish
Latvian uses several letters with marks that change their sounds. In the phrase for sweet dreams, the letter ņ represents a palatal nasal, comparable to the ny sound in canyon. This is not a silent decorative mark. Likewise, a horizontal line over a vowel elsewhere in the language indicates length. For a handwritten note or a text message, using the original spelling is a simple way to avoid confusion and become familiar with the alphabet.