From 8a5d4a8bdb086c37141c7182355b67ac94a4807b Mon Sep 17 00:00:00 2001 From: Aru Moon Date: Mon, 12 Oct 2026 17:26:11 +0500 Subject: [PATCH] fix(app): send current client locale on login/registration (#3412) --- .../src/features/auth/commands/AuthenticationCommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts b/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts index 5e8db74ab..99585a83f 100644 --- a/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts +++ b/fluxer_app/src/features/auth/commands/AuthenticationCommands.ts @@ -9,7 +9,7 @@ import {type InstanceHTTPTarget, instanceRequest} from '@app/features/platform/t import {HttpError} from '@app/features/platform/types/EndpointError'; import {Logger} from '@app/features/platform/utils/AppLogger'; import {failureCode, ipAuthorizationRequiredResponseFromError} from '@app/features/platform/utils/ResponseInspection'; -import UserSettings from '@app/features/user/state/UserSettings'; +import {getCurrentOrDetectedLocale} from '@app/features/user/utils/LocaleUtils'; import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes'; import type {ValueOf} from '@fluxer/constants/src/ValueOf'; import type { @@ -27,7 +27,7 @@ import type {AuthenticationResponseJSON, PublicKeyCredentialRequestOptionsJSON} const logger = new Logger('AuthService'); const withAuthLocaleHeader = (headers?: Record): Record => ({ - 'Accept-Language': UserSettings.locale, + 'Accept-Language': getCurrentOrDetectedLocale(), ...(headers ?? {}), });