So I want to get the Persian layout for my keyboard but when I try

localectl --no-convert set-keymap us ir  

I get this error, but I have no idea how you install a keymap it used to be installed but in an update arch Linux deleted my Persian IR keymap and I searched but could not find any easy way to install keymaps

when i set it to fa i get no error but then it doesnt switch properly and when i use grep -i ‘persian’ /usr/share/X11/xkb/rules/base.lst it returns ir and not fa so its not me typing incorrect code

SOLVED: the correct keymap was fa and in hyprland you also need to define it in keyboard.conf