A solution for implementing the Polish dictionary. Download the files downloaded from https://donate.libreoffice.org/home/dl/src/5.1.3/all/libreoffice-dictionaries-5.1.3.2.tar.xz?idx=2 and place them in the place shown in the screenshot. You can probably use this method for other languages.