Refactor: renamed defaultLang to locale. Added a getter for locale.