The language code does not affect the spellchecker at this moment. In fact e.g. on macOS it detects the language automatically if it is supported. For the hunspell-based platforms we need to check how to set the language and we need to fix it.
Regarding the language codes: https://www.w3schools.com/tags/ref_language_codes.asp
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!