Skip to content

Commit 28e3c55

Browse files
committed
feat: fix i18n issues
1 parent 2b453ac commit 28e3c55

File tree

14 files changed

+123
-51
lines changed

14 files changed

+123
-51
lines changed

web/src/ApplicationEditPage.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class ApplicationEditPage extends React.Component {
252252
return (
253253
<Card size="small" title={
254254
<div>
255-
{this.state.mode === "add" ? i18next.t("general:New Application") : i18next.t("general:Edit Application")}&nbsp;&nbsp;&nbsp;&nbsp;
255+
{this.state.mode === "add" ? i18next.t("application:New Application") : i18next.t("application:Edit Application")}&nbsp;&nbsp;&nbsp;&nbsp;
256256
<Button onClick={() => this.submitApplicationEdit(false)}>{i18next.t("general:Save")}</Button>
257257
<Button style={{marginLeft: "20px"}} type="primary" onClick={() => this.submitApplicationEdit(true)}>{i18next.t("general:Save & Exit")}</Button>
258258
{this.state.mode === "add" ? <Button style={{marginLeft: "20px"}} onClick={() => this.deleteApplication()}>{i18next.t("general:Cancel")}</Button> : null}
@@ -366,7 +366,7 @@ class ApplicationEditPage extends React.Component {
366366
</span>
367367
)}
368368
<Button size="small" onClick={() => this.getK8sStatus()}>
369-
{i18next.t("general:Refresh Status")}
369+
{i18next.t("store:Refresh")}
370370
</Button>
371371
</Space>
372372
</Col>
@@ -382,7 +382,7 @@ class ApplicationEditPage extends React.Component {
382382
<Space>
383383
{this.renderDeploymentStatus()}
384384
<Button size="small" onClick={() => this.getDeploymentStatus()}>
385-
{i18next.t("general:Refresh Status")}
385+
{i18next.t("store:Refresh")}
386386
</Button>
387387
</Space>
388388
</Col>
@@ -395,11 +395,11 @@ class ApplicationEditPage extends React.Component {
395395
<Col span={22} >
396396
<Space>
397397
<Button type="primary" loading={isDeploying} disabled={isDeleting || !k8sConnected || !this.state.application.template} onClick={() => this.deployApplication()}>
398-
{isDeployed ? i18next.t("general:Redeploy") : i18next.t("general:Deploy")}
398+
{isDeployed ? i18next.t("application:Redeploy") : i18next.t("application:Deploy")}
399399
</Button>
400400
{isDeployed && (
401401
<Button danger loading={isDeleting} disabled={isDeploying || !k8sConnected} onClick={() => this.deleteDeployment()}>
402-
{i18next.t("general:Undeploy")}
402+
{i18next.t("application:Undeploy")}
403403
</Button>
404404
)}
405405
</Space>

web/src/ApplicationListPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ class ApplicationListPage extends BaseListPage {
288288

289289
{!isDeployed ? (
290290
<Button type="primary" onClick={() => this.deployApplication(application)} disabled={!application.template}>
291-
{i18next.t("general:Deploy")}
291+
{i18next.t("application:Deploy")}
292292
</Button>
293293
) : (
294294
<Space>
295295
<Button type="primary" onClick={() => this.deployApplication(application)}>
296-
{i18next.t("general:Redeploy")}
296+
{i18next.t("application:Redeploy")}
297297
</Button>
298298
<Button danger onClick={() => this.deleteDeployment(application)}>
299299
{i18next.t("general:Stop")}

web/src/ProviderEditPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class ProviderEditPage extends React.Component {
7676
}
7777
}
7878
if (provider.category === "Storage") {
79-
return Setting.getLabel(i18next.t("provider:Path"), i18next.t("provider:Path - Tooltip"));
79+
return Setting.getLabel(i18next.t("store:Storage subpath"), i18next.t("store:Storage subpath - Tooltip"));
8080
}
8181
return Setting.getLabel(i18next.t("provider:Client ID"), i18next.t("provider:Client ID - Tooltip"));
8282
}

web/src/RecordListPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class RecordListPage extends BaseListPage {
425425
)}
426426
{this.state.enableCrossChain && (
427427
(record.block2 === "") ? (
428-
<Tooltip title={record.provider2 === "" ? i18next.t("record:Need provider" + " 2") : ""}>
428+
<Tooltip title={record.provider2 === "" ? "Provider 2 should not be empty" : ""}>
429429
<Button
430430
disabled={record.provider2 === ""}
431431
type="primary" danger
@@ -480,7 +480,7 @@ class RecordListPage extends BaseListPage {
480480
{Setting.isAdminUser(this.props.account) && (
481481
<span style={{marginLeft: 32}}>
482482
{i18next.t("record:Enable cross-chain")}:
483-
<Switch checked={this.state.enableCrossChain} checkedChildren={i18next.t("general:ON")} unCheckedChildren={i18next.t("general:OFF")} onChange={this.toggleEnableCrossChain} style={{marginLeft: 8}} />
483+
<Switch checked={this.state.enableCrossChain} onChange={this.toggleEnableCrossChain} style={{marginLeft: 8}} />
484484
</span>
485485
)}
486486
{this.state.selectedRowKeys.length > 0 && (

web/src/TemplateEditPage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class TemplateEditPage extends React.Component {
225225
{k8sStatus ? k8sStatus.status : "Loading..."}
226226
</Tag>
227227
<Button size="small" onClick={() => this.getK8sStatus()}>
228-
{i18next.t("general:Refresh Status")}
228+
{i18next.t("store:Refresh")}
229229
</Button>
230230
{k8sStatus && k8sStatus.message && (
231231
<span style={{color: "#666", fontSize: "12px"}}>
@@ -244,10 +244,10 @@ class TemplateEditPage extends React.Component {
244244
<Col span={22} >
245245
<Space>
246246
<Button type="primary" onClick={this.addApplicationFromTemplate} disabled={!k8sConnected}>
247-
{i18next.t("general:Add Application")}
247+
{i18next.t("general:Add")}
248248
</Button>
249249
<Button onClick={() => this.props.history.push("/applications")}>
250-
{i18next.t("general:View Applications")}
250+
{i18next.t("general:View")}
251251
</Button>
252252
</Space>
253253
</Col>

web/src/locales/de/data.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"Successfully signed out, redirected to homepage": "Erfolgreich abgemeldet, Weiterleitung zur Startseite",
1414
"The system has detected that you are using the default password, which is not secure. You need to modify your password immediately. Here are the instructions": "Das System hat erkannt, dass Sie das Standardpasswort verwenden, das nicht sicher ist. Sie müssen Ihr Passwort sofort ändern. Hier sind die Anweisungen"
1515
},
16+
"application": {
17+
"Deploy": "Deploy",
18+
"Edit Application": "Edit Application",
19+
"New Application": "New Application",
20+
"Redeploy": "Redeploy",
21+
"Undeploy": "Undeploy"
22+
},
1623
"article": {
1724
"Abstract": "Abstrakt",
1825
"Content": "Inhalt",
@@ -101,8 +108,10 @@
101108
"Access secret - Tooltip": "Access secret - Tooltip",
102109
"Action": "Aktion",
103110
"Action - Tooltip": " Geschäftsaktionscode",
111+
"Activities": "Activities",
104112
"Add": "Hinzufügen",
105113
"Admin": "Verwaltungstools",
114+
"Applications": "Applications",
106115
"Articles": "Artikel",
107116
"Avatar": "Avatar",
108117
"Avatar - Tooltip": "URL des Profilbilds",
@@ -136,6 +145,7 @@
136145
"Download": "Download",
137146
"Edit": "Bearbeiten",
138147
"Edit Template": "Vorlage bearbeiten",
148+
"Error": "Error",
139149
"Exit": "Beenden",
140150
"Expire time": " Ablaufzeit",
141151
"Expire time - Tooltip": "Ablaufdatum (leer = unbegrenzt)",
@@ -202,8 +212,6 @@
202212
"Node address - Tooltip": "Knotenadresse",
203213
"Nodes": "Knoten",
204214
"OK": "OK",
205-
"Success": "Success",
206-
"Error": "Error",
207215
"OS Desktop": "OS Desktop",
208216
"Object": "Objekt",
209217
"Object - Tooltip": "Strukturierte Anfragedaten",
@@ -217,7 +225,6 @@
217225
"Password - Tooltip": "Anmeldungspasswort",
218226
"Pause": "Pausieren",
219227
"Permissions": "Berechtigungen",
220-
"Please provide manifests content": "Bitte geben Sie den Inhalt der Manifeste an",
221228
"Pods": "Pods",
222229
"Preview": "Vorschau",
223230
"Preview - Tooltip": "Realtimevorschau des Ressourceninhalts",
@@ -264,6 +271,7 @@
264271
"Store": "Datenrepository",
265272
"Store - Tooltip": "Bezogenes Datenrepository",
266273
"Stores": "Datenrepositories",
274+
"Success": "Success",
267275
"Successfully added": "Erfolgreich hinzugefügt",
268276
"Successfully committed": "Erfolgreich commit",
269277
"Successfully copied": "Erfolgreich kopiert",
@@ -304,7 +312,6 @@
304312
"Updated time": "Aktualisierungszeit",
305313
"Upload": "Hochladen",
306314
"Usages": "Verbrauchsstatistiken",
307-
"Activities": "Activities",
308315
"User": "Benutzer",
309316
"User - Tooltip": "Benutzername oder ID des Besitzers",
310317
"User agent": "Benutzer-Agent",
@@ -489,6 +496,7 @@
489496
},
490497
"record": {
491498
"Commit": "On-Chain",
499+
"Enable cross-chain": "Enable cross-chain",
492500
"New Record": "Neues Protokoll erstellen",
493501
"Object": "Objekt",
494502
"Query": "Abfrage",

web/src/locales/en/data.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"Successfully signed out, redirected to homepage": "Successfully signed out, redirected to homepage",
1414
"The system has detected that you are using the default password, which is not secure. You need to modify your password immediately. Here are the instructions": "The system has detected that you are using the default password, which is not secure. You need to modify your password immediately. Here are the instructions"
1515
},
16+
"application": {
17+
"Deploy": "Deploy",
18+
"Edit Application": "Edit Application",
19+
"New Application": "New Application",
20+
"Redeploy": "Redeploy",
21+
"Undeploy": "Undeploy"
22+
},
1623
"article": {
1724
"Abstract": "Abstract",
1825
"Content": "Content",
@@ -101,8 +108,10 @@
101108
"Access secret - Tooltip": "Access secret - Tooltip",
102109
"Action": "Action",
103110
"Action - Tooltip": "Business action code",
111+
"Activities": "Activities",
104112
"Add": "Add",
105113
"Admin": "Admin",
114+
"Applications": "Applications",
106115
"Articles": "Articles",
107116
"Avatar": "Avatar",
108117
"Avatar - Tooltip": "Icon URL for visual identification",
@@ -136,6 +145,7 @@
136145
"Download": "Download",
137146
"Edit": "Edit",
138147
"Edit Template": "Edit Template",
148+
"Error": "Error",
139149
"Exit": "Exit",
140150
"Expire time": "Expire time",
141151
"Expire time - Tooltip": "Expiration date (empty for permanent)",
@@ -202,8 +212,6 @@
202212
"Node address - Tooltip": "Node network address",
203213
"Nodes": "Nodes",
204214
"OK": "OK",
205-
"Success": "Success",
206-
"Error": "Error",
207215
"OS Desktop": "OS Desktop",
208216
"Object": "Object",
209217
"Object - Tooltip": "Structured request payload",
@@ -217,7 +225,6 @@
217225
"Password - Tooltip": "Login password",
218226
"Pause": "Pause",
219227
"Permissions": "Permissions",
220-
"Please provide manifests content": "Please provide manifests content",
221228
"Pods": "Pods",
222229
"Preview": "Preview",
223230
"Preview - Tooltip": "Real-time preview",
@@ -264,6 +271,7 @@
264271
"Store": "Store",
265272
"Store - Tooltip": "Associated data store",
266273
"Stores": "Stores",
274+
"Success": "Success",
267275
"Successfully added": "Successfully added",
268276
"Successfully committed": "Successfully committed",
269277
"Successfully copied": "Successfully copied",
@@ -304,7 +312,6 @@
304312
"Updated time": "Updated time",
305313
"Upload": "Upload",
306314
"Usages": "Usages",
307-
"Activities": "Activities",
308315
"User": "User",
309316
"User - Tooltip": "Owner's username/ID",
310317
"User agent": "User agent",
@@ -489,6 +496,7 @@
489496
},
490497
"record": {
491498
"Commit": "Commit",
499+
"Enable cross-chain": "Enable cross-chain",
492500
"New Record": "New Record",
493501
"Object": "Object",
494502
"Query": "Query",

web/src/locales/es/data.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
"Successfully signed out, redirected to homepage": "Sesión cerrada con éxito, redirigiendo a la página de inicio",
1414
"The system has detected that you are using the default password, which is not secure. You need to modify your password immediately. Here are the instructions": "El sistema ha detectado que estás usando la contraseña predeterminada, que no es segura. Necesitas modificar tu contraseña inmediatamente. Aquí están las instrucciones"
1515
},
16+
"application": {
17+
"Deploy": "Deploy",
18+
"Edit Application": "Edit Application",
19+
"New Application": "New Application",
20+
"Redeploy": "Redeploy",
21+
"Undeploy": "Undeploy"
22+
},
1623
"article": {
1724
"Abstract": "Resumen",
1825
"Content": "Contenido",
@@ -101,8 +108,10 @@
101108
"Access secret - Tooltip": "Clave de acceso",
102109
"Action": "Acción",
103110
"Action - Tooltip": "Código de tipo de acción comercial",
111+
"Activities": "Activities",
104112
"Add": "Agregar",
105113
"Admin": "Herramientas de administración",
114+
"Applications": "Applications",
106115
"Articles": "Artículos",
107116
"Avatar": "Avatar",
108117
"Avatar - Tooltip": "URL del avatar",
@@ -136,6 +145,7 @@
136145
"Download": "Descargar",
137146
"Edit": "Editar",
138147
"Edit Template": "Editar plantilla",
148+
"Error": "Error",
139149
"Exit": "Salir",
140150
"Expire time": "Tiempo de expiración",
141151
"Expire time - Tooltip": "Fecha de expiración (dejar en blanco para permanente)",
@@ -202,8 +212,6 @@
202212
"Node address - Tooltip": "Dirección del nodo",
203213
"Nodes": "Nodos",
204214
"OK": "Aceptar",
205-
"Success": "Success",
206-
"Error": "Error",
207215
"OS Desktop": "OS Desktop",
208216
"Object": "Objeto",
209217
"Object - Tooltip": "Cuerpo de datos de solicitud estructurado",
@@ -217,7 +225,6 @@
217225
"Password - Tooltip": "Contraseña de inicio de sesión",
218226
"Pause": "Pausa",
219227
"Permissions": "Permisos",
220-
"Please provide manifests content": "Por favor, proporciona el contenido de los manifiestos",
221228
"Pods": "Pods",
222229
"Preview": "Vista previa",
223230
"Preview - Tooltip": "Vista previa en tiempo real del contenido de los recursos",
@@ -264,6 +271,7 @@
264271
"Store": "Almacén de datos",
265272
"Store - Tooltip": "Almacén de datos asociado",
266273
"Stores": "Almacenes de datos",
274+
"Success": "Success",
267275
"Successfully added": "Agregado con éxito",
268276
"Successfully committed": "Confirmado con éxito",
269277
"Successfully copied": "Copiado con éxito",
@@ -304,7 +312,6 @@
304312
"Updated time": "Hora de actualización",
305313
"Upload": "Subir",
306314
"Usages": "Estadísticas de uso",
307-
"Activities": "Activities",
308315
"User": "Usuario",
309316
"User - Tooltip": "Nombre de usuario o ID del propietario",
310317
"User agent": "Agente de usuario",
@@ -489,6 +496,7 @@
489496
},
490497
"record": {
491498
"Commit": "Encadenar",
499+
"Enable cross-chain": "Enable cross-chain",
492500
"New Record": "Nuevo registro",
493501
"Object": "Objeto",
494502
"Query": "Consulta",

0 commit comments

Comments
 (0)