Hello.
To add a keyboard layout, in case of Ubuntu, it's required to click on the three dots in the "Add an Input Source" menu (on the screenshot) -> then click "Other" -> a list will open up, you can then scroll to your required language or use a search bar that will appear on the bottom of the window.