From cb2994fc3bddbb1fc2d3e0d65bef5dfa47d55fb2 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Thu, 4 Jun 2026 14:14:57 +0200 Subject: [PATCH] :sparkles: Add lang to nitrate authenticate endpoint response Expose the user's `:lang` profile field alongside `:theme` from the internal nitrate `authenticate` RPC so the Nitrate admin console can load translations matching the user's Penpot language preference. --- backend/src/app/rpc/management/nitrate.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/management/nitrate.clj b/backend/src/app/rpc/management/nitrate.clj index e3d3c41312..7edb1691e1 100644 --- a/backend/src/app/rpc/management/nitrate.clj +++ b/backend/src/app/rpc/management/nitrate.clj @@ -50,7 +50,8 @@ [cfg {:keys [::rpc/profile-id] :as params}] (let [profile (profile/get-profile cfg profile-id)] (-> (profile-to-map profile) - (assoc :theme (:theme profile))))) + (assoc :theme (:theme profile)) + (assoc :lang (:lang profile))))) ;; ---- API: get-teams