Bug of toLocaleString() thousand separator with es-ES language setting

When the number has 1 digit for the thousands, the dot “.” separator is not shown for the es-ES setting. It works though for the de-DE or the da-DK settings. If there are 2 digits for the thousands, the separator works.