It's Japanese, which roughly translates to "Good night". It's sort of between the formality of "Good night" and "Good evening". And, it varies on formality and informality. If written as "Oyasumi nasai", it reads as, "Good night". Which is extremely formal. If written as "Oyasmi", it reads as "Night". Which is informal, but common. It's almost like slang, honestly.