/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { LocalizationConfigurationBehavior } from "./LocalizationConfigurationBehavior.js";
class LocalizationConfigurationServer extends LocalizationConfigurationBehavior {
  initialize() {
    if (this.state.activeLocale === void 0) {
      this.state.activeLocale = this.detectedLocale;
    }
    if (this.state.supportedLocales === void 0) {
      this.state.supportedLocales = [this.state.activeLocale];
    }
  }
  /** Override this getter with own implementation to detect the locale of the system. */
  get detectedLocale() {
    return Intl.DateTimeFormat().resolvedOptions().locale;
  }
}
((LocalizationConfigurationServer2) => {
})(LocalizationConfigurationServer || (LocalizationConfigurationServer = {}));
export {
  LocalizationConfigurationServer
};
//# sourceMappingURL=LocalizationConfigurationServer.js.map
