Skip to content

Commit b4bf024

Browse files
committed
Added language items from dev to feature-stealth.
1 parent e834631 commit b4bf024

File tree

8 files changed

+106
-43
lines changed

8 files changed

+106
-43
lines changed

client/packages/lowcoder/src/i18n/locales/de.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const de = {
99
"orgNameCheckMsg": "Der Name des Arbeitsbereichs darf nicht leer sein"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "Super Admin",
1314
"adminGroupRoleInfo": "Admin kann Gruppenmitglieder und Ressourcen verwalten",
1415
"admin": "Verwaltung",
@@ -1842,6 +1843,7 @@ export const de = {
18421843
"deleteSuccessMsg": "Löschung Erfolglos"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "E-Mail",
18461848
"source": "Quelle",
18471849
"sourceName": "Auth Provider Name",
@@ -1963,6 +1965,7 @@ export const de = {
19631965
"deletePermanently": "Dauerhaft löschen",
19641966
"create": "Erstellen",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "Wähle dein Konto",
19671970
"userLogin": "Anmelden",
19681971
"poweredByLowcoder": "Powered by: Lowcoder.cloud",

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 83 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,45 @@ export const en = {
77
"orgNameCheckMsg": "Workspace Name Cannot Be Empty"
88
},
99
"memberSettings": {
10+
"admin": "Admin",
1011
"superAdmin": "Super Admin",
1112
"adminGroupRoleInfo": "Admin Can Manage Group Members and Resources",
12-
"admin": "Admin",
13+
"adminOrgRoleInfo": "Admins Own All Resources and Can Manage Groups.",
1314
"member": "Member",
1415
"memberGroupRoleInfo": "Member Can View Group Members",
15-
"adminOrgRoleInfo": "Admins Own All Resources and Can Manage Groups.",
1616
"memberOrgRoleInfo": "Members Can Only Use or Visit Resources They Have Access To.",
17-
"devGroupTip": "Members of the Developer Group Have Privileges to Create Apps and Data Sources.",
18-
"lastAdminQuit": "The Last Administrator Cannot Exit.",
17+
"title": "Members",
18+
"createGroup": "Create Group",
1919
"newGroupPrefix": "New Group ",
2020
"allMembers": "All Members",
21-
"createGroup": "Create Group",
22-
"inviteUser": "Invite Members",
23-
"groupName": "Group Name",
24-
"createTime": "Create Time",
25-
"manageBtn": "Manage",
21+
"deleteModalTitle": "Delete This Group",
22+
"deleteModalContent": "The Deleted Group Cannot Be Restored. Are You Sure to Delete the Group?",
23+
"addMember": "Add Members",
2624
"nameColumn": "User Name",
2725
"joinTimeColumn": "Joining Time",
28-
"roleColumn": "Role",
2926
"actionColumn": "Operation",
30-
"addMember": "Add Members",
31-
"inviteText": "{userName} Invites You to Join the Workspace \"{organization}\", Click on the Link to Join: {inviteLink}",
27+
"roleColumn": "Role",
28+
"exitGroup": "Exit Group",
29+
"moveOutGroup": "Remove from Group",
30+
"inviteUser": "Invite Members",
31+
"exitOrg": "Leave",
32+
"exitOrgDesc": "Are You Sure You Want to Leave This Workspace.",
33+
"moveOutOrg": "Remove",
34+
"moveOutOrgDescSaasMode": "Are You Sure You Want to Remove User {name} from This Workspace?",
35+
"moveOutOrgDesc": "Are You Sure You Want to Remove User {name}? This Action Cannot Be Recovered.",
36+
"devGroupTip": "Members of the Developer Group Have Privileges to Create Apps and Data Sources.",
37+
"lastAdminQuit": "The Last Administrator Cannot Exit.",
38+
"organizationNotExist": "The Current Workspace Does Not Exist",
3239
"inviteUserHelp": "You Can Copy the Invitation Link to Send to the User",
3340
"inviteUserLabel": "Invitation Link:",
34-
"inviteCopyLink": "Copy Link"
41+
"inviteCopyLink": "Copy Link",
42+
"inviteText": "{userName} Invites You to Join the Workspace \"{organization}\", Click on the Link to Join: {inviteLink}",
43+
"groupName": "Group Name",
44+
"createTime": "Create Time",
45+
"manageBtn": "Manage",
46+
"userDetail": "Detail",
47+
"syncDeleteTip": "This Group Has Been Deleted from the Address Book Source",
48+
"syncGroupTip": "This Group is an Address Book Synchronization Group and Cannot Be Edited"
3549
},
3650
"share": {
3751
"title": "Share",
@@ -1951,25 +1965,52 @@ export const en = {
19511965
"canvas": "Canvas Settings",
19521966
},
19531967
"idSource": {
1954-
"form": "Email",
1955-
"source": "Source",
1956-
"sourceName": "Auth Provider Name",
1957-
"sourceDescription": "Auth Provider Description",
1958-
"sourceIcon": "Auth Provider Icon",
1959-
"sourceCategory": "Auth Provider Category",
1960-
"souceIssuerURI": "Auth Provider Issuer URI",
1961-
"souceAuthorizationEndpoint": "Auth Provider Authorization Endpoint",
1962-
"souceTokenEndpoint": "Auth Provider Token Endpoint",
1963-
"souceUserInfoEndpoint": "Auth Provider User Info Endpoint",
1964-
"userInfoIntrospection": "Use OpenID User Introspection",
1965-
"userCanSelectAccounts": "User Can Select from Accounts",
1966-
"formPlaceholder": "Please Enter {label}",
19671968
"title": "User Authentication Provider",
1969+
"form": "Email",
1970+
"pay": "Premium",
1971+
"enable": "Enable",
1972+
"unEnable": "Not Enabled",
19681973
"loginType": "Login Type",
19691974
"status": "Status",
1975+
"desc": "Description",
1976+
"manual": "Address Book:",
1977+
"syncManual": "Sync Address Book",
1978+
"syncManualSuccess": "Sync Succeeded",
1979+
"enableRegister": "Allow Registration",
1980+
"saveBtn": "Save and Enable",
1981+
"save": "Save",
1982+
"none": "None",
1983+
"formPlaceholder": "Please Enter {label}",
19701984
"formSelectPlaceholder": "Please Select the {label}",
1971-
"enable": "Enable",
1972-
"encryptedServer": "-------- Encrypted on the Server Side --------"
1985+
"saveSuccess": "Saved Successfully",
1986+
"dangerLabel": "Danger Zone",
1987+
"dangerTip": "Disabling or Deleting This ID Provider May Result in Some Users Being Unable to Log In. Proceed With Caution.",
1988+
"lastEnabledConfig": "You can't disable/delete config as this is the only enabled configuration.",
1989+
"disable": "Disable",
1990+
"disableSuccess": "Disabled Successfully",
1991+
"encryptedServer": "-------- Encrypted on the Server Side --------",
1992+
"disableTip": "Tips",
1993+
"disableContent": "{action} This ID Provider May Result in Some Users Being Unable to Log In. Are You Sure to Proceed?",
1994+
"manualTip": "",
1995+
"lockTip": "The Content is Locked. To Make Changes, Please Click the {icon} to Unlock.",
1996+
"lockModalContent": "Changing the 'ID Attribute' Field Can Have Significant Impacts on User Identification. Please Confirm That You Understand the Implications of This Change Before Proceeding.",
1997+
"payUserTag": "Premium",
1998+
"source" : "Source",
1999+
"sourceName" : "Auth Provider Name",
2000+
"sourceDescription" : "Auth Provider Description",
2001+
"sourceIcon" : "Auth Provider Icon",
2002+
"sourceCategory" : "Auth Provider Category",
2003+
"souceIssuerURI" : "Auth Provider Issuer URI",
2004+
"souceAuthorizationEndpoint" : "Auth Provider Authorization Endpoint",
2005+
"souceTokenEndpoint" : "Auth Provider Token Endpoint",
2006+
"souceUserInfoEndpoint" : "Auth Provider User Info Endpoint",
2007+
"userInfoIntrospection" : "Use OpenID User Introspection",
2008+
"userCanSelectAccounts" : "User Can Select from Accounts",
2009+
"sourceCategoryEnterprise" : "Enterprise Identity",
2010+
"sourceCategoryCloud" : "Cloud Services",
2011+
"sourceCategorySocial" : "Social Media",
2012+
"sourceCategoryDevelopment" : "Development",
2013+
"sourceCategoryTools" : "Tools & Productivity",
19732014
},
19742015
"settings": {
19752016
"title": "Settings",
@@ -2072,28 +2113,27 @@ export const en = {
20722113
"deletePermanently": "Delete Permanently",
20732114
"create": "Create",
20742115
"userAuth": {
2075-
"chooseAccount": "Choose Your Account",
2076-
"userLogin": "Sign In",
2077-
"poweredByLowcoder": "Powered by: Lowcoder.cloud",
2116+
"registerByEmail": "Sign Up",
20782117
"email": "Email:",
20792118
"inputEmail": "Please enter your email",
20802119
"inputValidEmail": "Please enter a valid email",
20812120
"forgotPassword": "Forgot Password",
2082-
"login": "Sign In",
2083-
"register": "Sign Up",
20842121
"forgotPasswordInfo": "Enter your email and we'll send you a link to reset your password.",
2085-
"registerHint": "I Have Read and Agree to the",
2086-
"terms": "Terms",
2087-
"privacy": "Privacy Policy",
2088-
"registerByEmail": "Sign Up",
20892122
"forgotPasswordSuccess": "Please check your email for reset password link.",
20902123
"forgotPasswordError": "Something went wrong. Please try again.",
2124+
"register": "Sign Up",
2125+
"userLogin": "Sign In",
2126+
"login": "Sign In",
20912127
"bind": "Bind",
20922128
"passwordCheckLength": "At Least {min} Characters",
20932129
"passwordCheckContainsNumberAndLetter": "Must Contain Letters and Numbers",
20942130
"passwordCheckSpace": "Cannot Contain Whitespace Characters",
20952131
"welcomeTitle": "Welcome to {productName}",
20962132
"inviteWelcomeTitle": "{username} invites You to work together",
2133+
"terms": "Terms",
2134+
"privacy": "Privacy Policy",
2135+
"registerHint": "I Have Read and Agree to the",
2136+
"chooseAccount": "Choose Your Account",
20972137
"signInLabel": "Sign In with {name}",
20982138
"bindAccount": "Bind Account",
20992139
"scanQrCode": "Scan the QR Code with {name}",
@@ -2106,7 +2146,12 @@ export const en = {
21062146
"resetSuccess": "Reset Succeeded",
21072147
"resetSuccessDesc": "Password Reset Succeeded. The New Password is: {password}",
21082148
"resetLostPasswordSuccess": "Password Reset Succeeded. Please login again.",
2109-
"copyPassword": "Copy Password"
2149+
"copyPassword": "Copy Password",
2150+
"poweredByLowcoder": "Powered by: Lowcoder.cloud",
2151+
"continue": "Continue",
2152+
"enterPassword": "Enter your password",
2153+
"selectAuthProvider": "Select Authentication Provider",
2154+
"selectWorkspace": "Select your workspace",
21102155
},
21112156
"password": {
21122157
"label": "Password",

client/packages/lowcoder/src/i18n/locales/es.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const es = {
99
"orgNameCheckMsg": "El nombre del espacio de trabajo no puede estar vacío"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "Súper administrador",
1314
"adminGroupRoleInfo": "El administrador puede gestionar los miembros y recursos del grupo",
1415
"admin": "Admin",
@@ -1842,6 +1843,7 @@ export const es = {
18421843
"deleteSuccessMsg": "Supresión Efectuada"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "Correo electrónico",
18461848
"source": "Fuente",
18471849
"sourceName": "Nombre del proveedor de autenticación",
@@ -1963,6 +1965,7 @@ export const es = {
19631965
"deletePermanently": "Borrar permanentemente",
19641966
"create": "Cree",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "Elija su cuenta",
19671970
"userLogin": "Iniciar sesión",
19681971
"poweredByLowcoder": "Desarrollado por: Lowcoder.cloud",

client/packages/lowcoder/src/i18n/locales/it.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const it = {
99
"orgNameCheckMsg": "Il nome dell'area di lavoro non può essere vuoto"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "Super amministratore",
1314
"adminGroupRoleInfo": "L'amministratore può gestire i membri e le risorse del gruppo",
1415
"admin": "Admin",
@@ -1842,6 +1843,7 @@ export const it = {
18421843
"deleteSuccessMsg": "Cancellazione riuscita"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "Email",
18461848
"source": "Fonte",
18471849
"sourceName": "Nome del fornitore di autorizzazione",
@@ -1963,6 +1965,7 @@ export const it = {
19631965
"deletePermanently": "Cancellare definitivamente",
19641966
"create": "Creare",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "Scegliere il proprio account",
19671970
"userLogin": "Accedi",
19681971
"poweredByLowcoder": "Alimentato da: Lowcoder.cloud",

client/packages/lowcoder/src/i18n/locales/pt.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const pt = {
99
"orgNameCheckMsg": "O nome do espaço de trabalho não pode estar vazio"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "Superadministrador",
1314
"adminGroupRoleInfo": "O administrador pode gerenciar membros do grupo e recursos",
1415
"admin": "Administrador",
@@ -1842,6 +1843,7 @@ export const pt = {
18421843
"deleteSuccessMsg": "Exclusão Bem-Sucedida"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "Correio eletrónico",
18461848
"source": "Fonte",
18471849
"sourceName": "Nome do fornecedor de autenticação",
@@ -1963,6 +1965,7 @@ export const pt = {
19631965
"deletePermanently": "Remover Permanentemente",
19641966
"create": "Crie",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "Escolha sua Conta",
19671970
"userLogin": "Entrar",
19681971
"poweredByLowcoder": "Desenvolvido por: Lowcoder.cloud",

client/packages/lowcoder/src/i18n/locales/ru.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const ru = {
99
"orgNameCheckMsg": "Имя рабочей области не может быть пустым"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "Суперадминистратор",
1314
"adminGroupRoleInfo": "Администратор может управлять членами группы и ресурсами",
1415
"admin": "Администратор",
@@ -1842,6 +1843,7 @@ export const ru = {
18421843
"deleteSuccessMsg": "Удаление прошло успешно"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "Электронная почта",
18461848
"source": "Источник",
18471849
"sourceName": "Имя провайдера авторизации",
@@ -1963,6 +1965,7 @@ export const ru = {
19631965
"deletePermanently": "Удалить навсегда",
19641966
"create": "Создать",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "Выберите свой аккаунт",
19671970
"userLogin": "Войти",
19681971
"poweredByLowcoder": "Работает от: Lowcoder.cloud",

client/packages/lowcoder/src/i18n/locales/zh.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const zh = {
99
"orgNameCheckMsg": "工作空间名称不能为空"
1010
},
1111
"memberSettings": {
12+
...en.memberSettings,
1213
"superAdmin": "超级管理员",
1314
"adminGroupRoleInfo": "管理员可以管理群组成员和资源",
1415
"admin": "管理员",
@@ -1842,6 +1843,7 @@ export const zh = {
18421843
"deleteSuccessMsg": "删除成功"
18431844
},
18441845
"idSource": {
1846+
...en.idSource,
18451847
"form": "电子邮件",
18461848
"source": "Source",
18471849
"sourceName": "Auth Provider Name",
@@ -1963,6 +1965,7 @@ export const zh = {
19631965
"deletePermanently": "删除",
19641966
"create": "创建",
19651967
"userAuth": {
1968+
...en.userAuth,
19661969
"chooseAccount": "选择您的帐户",
19671970
"userLogin": "用户登录",
19681971
"poweredByLowcoder": "供电 Lowcoder.cloud",

client/packages/lowcoder/src/util/language.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
import {viewModeTriple} from "@lowcoder-ee/util/editor";
1+
const viewMode = () => window.location.href.includes("view") ? "view" : window.location.href.includes("edit") ? "edit" : "admin";
22

33
interface LangJsonType {
44
[key: string]: any;
55
}
66

77
export const setLanguageJson = (lang : string, langObj: any) => {
8-
localStorage.setItem(`lowcoder_language_json_${lang}_${viewModeTriple()}`, JSON.stringify(langObj));
8+
localStorage.setItem(`lowcoder_language_json_${lang}_${viewMode()}`, JSON.stringify(langObj));
99
}
1010

1111
export const setLanguageObjJson = (lang : string, langObj: any) => {
12-
localStorage.setItem(`lowcoder_language_obj_json_${lang}_${viewModeTriple()}`, JSON.stringify(langObj));
12+
localStorage.setItem(`lowcoder_language_obj_json_${lang}_${viewMode()}`, JSON.stringify(langObj));
1313
}
1414

1515
export const getLanguageJson = (lang: string): LangJsonType | null => {
16-
const item = localStorage.getItem(`lowcoder_language_json_${lang}_${viewModeTriple()}`);
16+
const item = localStorage.getItem(`lowcoder_language_json_${lang}_${viewMode()}`);
1717

1818
// Check if the item is null
1919
if (item === null) {
@@ -27,7 +27,7 @@ export const getLanguageJson = (lang: string): LangJsonType | null => {
2727
};
2828

2929
export const getLanguageObjJson = (lang: string): LangJsonType | null => {
30-
const item = localStorage.getItem(`lowcoder_language_obj_json_${lang}_${viewModeTriple()}`);
30+
const item = localStorage.getItem(`lowcoder_language_obj_json_${lang}_${viewMode()}`);
3131

3232
// Check if the item is null
3333
if (item === null) {

0 commit comments

Comments
 (0)