fix: set default value for locale

This commit is contained in:
chenos 2024-11-23 22:33:49 +08:00
parent 6bf52c2eef
commit be5fd133ef

View File

@ -125,7 +125,7 @@ export class Auth {
* use {@link Auth#locale} instead
*/
getLocale() {
return this.getOption('locale');
return this.getOption('locale') || 'en-US';
}
/**