The dir attribute needs to be set even when the language file is preloaded and registered