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.
This commit is contained in:
Juanfran 2026-06-04 14:14:57 +02:00
parent 3a44e291f4
commit cb2994fc3b

View File

@ -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