mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
✨ 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:
parent
3a44e291f4
commit
cb2994fc3b
@ -50,7 +50,8 @@
|
|||||||
[cfg {:keys [::rpc/profile-id] :as params}]
|
[cfg {:keys [::rpc/profile-id] :as params}]
|
||||||
(let [profile (profile/get-profile cfg profile-id)]
|
(let [profile (profile/get-profile cfg profile-id)]
|
||||||
(-> (profile-to-map profile)
|
(-> (profile-to-map profile)
|
||||||
(assoc :theme (:theme profile)))))
|
(assoc :theme (:theme profile))
|
||||||
|
(assoc :lang (:lang profile)))))
|
||||||
|
|
||||||
;; ---- API: get-teams
|
;; ---- API: get-teams
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user