Rewrite available locales check