Minor Changes
-
c0341fe: Auto-attach
$screen_nameto every captured event afterPostHogSDK.shared.screen()has been called (manually or via screen-view auto-capture). Cached value is cleared byreset()andclose().To opt out of
$screen_namestamping entirely, setPostHogConfig.captureScreenViews = falseand stop callingscreen()manually. DisablingcaptureScreenViewsalone is not sufficient — a single manualscreen("Home")call will re-enable stamping.
Minor Changes
- Add survey translations support. Surveys can carry per-language overrides for user-visible strings via a
translationsmap keyed by language code. At display time the SDK resolves a language (PostHogSurveysConfig.overrideDisplayLanguage→ person property"language"→ device locale), applies any matching translation onto the display model, and stamps the matched key as$survey_languageon every survey event when a translation actually took effect. Matching is case-insensitive with a base-language fallback (e.g."pt-BR"falls back to"pt").