diff --git a/CHANGES.md b/CHANGES.md index 5b1363679..5ebcda0d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.1.2 + +### :bug: Bugs fixed + +- User switch language to "zh_hant" will get 400 [Github #4884](https://github.com/penpot/penpot/issues/4884) + ## 2.1.1 ### :sparkles: New features diff --git a/backend/src/app/rpc/commands/profile.clj b/backend/src/app/rpc/commands/profile.clj index 40b8b8a43..e3b453e26 100644 --- a/backend/src/app/rpc/commands/profile.clj +++ b/backend/src/app/rpc/commands/profile.clj @@ -102,7 +102,7 @@ (sm/define [:map {:title "update-profile"} [:fullname [::sm/word-string {:max 250}]] - [:lang {:optional true} [:string {:max 5}]] + [:lang {:optional true} [:string {:max 8}]] [:theme {:optional true} [:string {:max 250}]]])) (sv/defmethod ::update-profile