Remove unused available_languages from cookie banner config
The field was populated by the backend and declared in the TS interface but never consumed by any client-side code. The banner resolves its language via detectLanguage() and passes it as a query param. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -27,9 +27,6 @@ import { detectLanguage } from "./i18n";
|
||||
import { enqueue, flush } from "./queue";
|
||||
import { getOrCreateVisitorId } from "./visitor";
|
||||
|
||||
export type { BannerTexts } from "./i18n";
|
||||
export { interpolate } from "./i18n";
|
||||
|
||||
export interface CookieItem {
|
||||
name: string;
|
||||
duration: string;
|
||||
@@ -48,7 +45,6 @@ export interface BannerConfig {
|
||||
version: number;
|
||||
language: string;
|
||||
default_language: string;
|
||||
available_languages: string[];
|
||||
privacy_policy_url: string;
|
||||
consent_expiry_days: number;
|
||||
consent_mode: "OPT_IN" | "OPT_OUT";
|
||||
|
||||
Reference in New Issue
Block a user