@survicate/survicate-web-package 28.31.21 → 28.32.0

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "28.31.21",
2
+ "version": "28.32.0",
3
3
  "name": "@survicate/survicate-web-package",
4
4
  "description": "Survicate Web Package",
5
5
  "author": {
@@ -137,6 +137,11 @@ export interface ConfigModel {
137
137
  disableSensitiveDataPersistence?: boolean;
138
138
  /** Force surveys to display in a specific language (IETF language tag, e.g., "en", "fr", "pt-BR") */
139
139
  forcedLanguage?: string;
140
+ /**
141
+ * Use the page's `<html lang>` attribute as a language detection source (checked before URL and browser language).
142
+ * Opt-in only: passing `false` does not clear a value already set on `window._sva.useHtmlLangAttribute`.
143
+ */
144
+ useHtmlLangAttribute?: boolean;
140
145
  /** Force initial theme mode: "light", "dark", or "auto" (follow system). Same as setThemeMode() but applied on init */
141
146
  themeMode?: string;
142
147
  /** Array of survey IDs to hide from targeting */
@@ -246,6 +251,9 @@ export interface SurveyApi {
246
251
  /** Whether sensitive data persistence is disabled */
247
252
  disableSensitiveDataPersistence?: boolean;
248
253
 
254
+ /** Whether the page's `<html lang>` attribute is used as a language detection source */
255
+ useHtmlLangAttribute?: boolean;
256
+
249
257
  /** Array of survey IDs to hide from targeting */
250
258
  hiddenSurveys?: string[];
251
259