@eui/core 13.0.0-rc.18 → 13.0.0-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4029,8 +4029,11 @@ class LocaleService extends EuiService {
4029
4029
  addLocale(id) {
4030
4030
  return this.loadLocale(id);
4031
4031
  }
4032
+ get previousLocale() {
4033
+ return this.prevStateInstance?.id || this.currentLocale;
4034
+ }
4032
4035
  get currentLocale() {
4033
- return this.stateInstance.id;
4036
+ return this.stateInstance?.id;
4034
4037
  }
4035
4038
  /**
4036
4039
  * load and register locale data dynamically