Even if I've done some projects solely in one language, I feel like that's not enough for me to say that I'm comfortable with that language.
Then the question is: when and how should I say I know a language? More precisely, when should I add one to my CV?
A good programmer will be able to "learn" a new language in a matter of days. [1]. Factor in a few more for new IDE etc. A bad programmer writes bad code in all languages.
All coding starts in the head, with ideas on how to go about solving a problem. Good knowledge of one language at least makes that easier. Being able to express the solution in elegant code is the key skill. Knowing the syntax for comparing strings is meaningless - anyone can figure that out in no time. Understanding what string comparison means is much more important [2]. And so on.
[1] within reason. Imperative languages are all the same. Functional are all the same, but I would not hire an imperative programmer for a functional language or vice versa.
[2] turns out comparing unicode strings for equality is a whole barrel of fun and starts with deciding what "equals" even means...
Put another way, you know a language when you can pick up any project written in it and can read it intelligently without having to look up what common library functions do (not all of course, but the most common of the functions).
* can read gnarly real-world code with confidence
* know the stdlib and common libraries reasonably well
* have written something significant enough to be a good demonstration of your skills in that language, either at work or as a side project
Everyone with some programming experience knows that needing a refresher on a language you haven't used in a while is normal, so you can safely put languages on your resume that you used a while ago as long as you have brushed up on today's ecosystem.
As a general rule, the more senior you are, the more in-depth knowledge you'll be expected to have about anything you put on your CV. For that reason, splitting technologies up into a few different levels of proficiency is a good idea.
And inversely, when you can confidently do code reviews and your comments are in the idiomatic zone.