Skip to content

Commit 8d03fc9

Browse files
committed
process exception that language is in lowcoder but is not in lowcoder-design
1 parent 3ece662 commit 8d03fc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const isEditor = () => window.location.href.includes("edit") ? "edit" : window.location.href.includes("view") ? "view" : "admin"
2+
export const getLanguage = () => localStorage.getItem('lowcoder_uiLanguage')

0 commit comments

Comments
 (0)