I was a Manjaro user and I could just search and install the languages from AUR, but how can I do it in Bazzite?
For Flatpak, you can configure the localization (spell check and user interface) by using the following command, for example:
flatpak config --system --set languages "en;es;de"
You can then install the languages with the following command:
flatpak update
For applications on the host system, I assume that the only option would be an overlay.
rpm-ostree install hunspell-<languagecode>
(Note: Since most applications are typically installed via Flatpak on Bazzite, this step should not be necessary for the majority of users.)
An alternative could be the plugins from languagetool.org. In addition to spelling, they also check grammar. Plugins are available for Firefox, Chrome, LibreOffice etc.
By default, these send the texts to a server on the internet, which might be a concern for some users. There is also the option to run your own LanguageTool server locally.
The server is available in the following Arch package, for example:
https://archlinux.org/packages/extra/any/languagetool/
It can be run in an Arch container. See:
In the Arch container, the server can be installed and started with the following commands:
sudo pacman -S languagetool
sudo systemctl enable languagetool
sudo systemctl start languagetool
The developer’s site mentions that a homebrew-based installation is also an option. However, with this option I found that the server could not be started after installation.
Thanks for the valuable information. Specially regarding the configuration for flatpak. I still think there’s a hole missing for KDE spellchecking as a whole, since it offers sonnet for system wide spellchecking. But currently there’s no way to install additional languages for it other than layering the packages. I think it would be useful to figure ways to make this more flexible with immutable distros as all the software that uses KDE frameworks like Kwrite an Kate use this backend and the flatpak config won’t affect them (they’re part of the OS image after all).
Might be too niche for a gaming image like bazzite, but now I wonder if this also affects Aurora, since they are more productivity focused and multilanguage support is far more important in that space.