| layout | default |
|---|---|
| title | Settings |
Global configuration for the library. Affects HDSModel, HDSService, and localization.
Set the default HDS service info endpoint. Used by HDSModel initialization and HDSService.
HDSLib.settings.setServiceInfoURL('https://demo.datasafe.dev/reg/service/info');Default: https://demo.datasafe.dev/reg/service/info
Returns the currently configured service info URL.
const url = HDSLib.settings.getServiceInfoURL();Set the preferred language order for localized text. Supported locales: en, fr, es.
// French first, then English
HDSLib.settings.setPreferredLocales(['fr', 'en']);Default order: ['en', 'fr', 'es']
See Localization for details on how localized text is handled.