Skip to content

Commit 888a349

Browse files
committed
add translation from lib
1 parent 4ece64f commit 888a349

File tree

2 files changed

+84
-2
lines changed

2 files changed

+84
-2
lines changed

databox/client/translations/en.json

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@
464464
"placeholder": "Search…",
465465
"submit": "Search"
466466
},
467-
"uploading": "Uploading…",
468467
"yes": "Yes"
469468
},
470469
"copy_assets": {
@@ -832,6 +831,9 @@
832831
}
833832
},
834833
"integration": {
834+
"config_info": {
835+
"title": "Integration Keys"
836+
},
835837
"enabled": {
836838
"label": "Enabled"
837839
},
@@ -944,6 +946,11 @@
944946
"label": "Send"
945947
}
946948
},
949+
"translations": {
950+
"collection": {
951+
"remove": "Remove <1>this translation</1>"
952+
}
953+
},
947954
"upload": {
948955
"destination": {
949956
"label": "Destination"
@@ -1084,6 +1091,77 @@
10841091
"facets": "Facets",
10851092
"tree": "Tree"
10861093
},
1094+
"lib": {
1095+
"api": {
1096+
"error": {
1097+
"http_bad_request": "Bad Request",
1098+
"http_error": "Server error",
1099+
"http_not_found": "Not Found",
1100+
"http_unauthorized": "Unauthorized",
1101+
"session_expired": "Your session has expired"
1102+
},
1103+
"http_error": {
1104+
"429": "Too many requests, you can retry in {{minutes}}min"
1105+
}
1106+
},
1107+
"auth": {
1108+
"sess_exp": {
1109+
"about_to_expire": {
1110+
"intro": "Are you still here? Do you want to keep your session alive?",
1111+
"logout": "Logout",
1112+
"stay": "Keep me in!",
1113+
"title": "You session is about to expire"
1114+
},
1115+
"expired": {
1116+
"intro": "Don't forget to save your contents before signing in again!",
1117+
"sign_in": "Close",
1118+
"title": "You session has expired"
1119+
}
1120+
}
1121+
},
1122+
"form": {
1123+
"cancel": "Cancel",
1124+
"collection": {
1125+
"add": "Add",
1126+
"remove": "Remove"
1127+
},
1128+
"error": {
1129+
"required": "This field is required"
1130+
},
1131+
"has_errors": "Form contains errors",
1132+
"translations": {
1133+
"collection": {
1134+
"add": "Add new translation",
1135+
"title": "Translations"
1136+
},
1137+
"disabled_translation": "This translation is disabled",
1138+
"fallback": {
1139+
"label": "Default value"
1140+
},
1141+
"locale": {
1142+
"placeholder": "Select locale"
1143+
},
1144+
"saved": "Translations saved!",
1145+
"submit": "Save",
1146+
"tooltip": "Manage translations",
1147+
"translation": {
1148+
"label": "Translation {{locale}}"
1149+
},
1150+
"value": {
1151+
"label": "Translation"
1152+
}
1153+
}
1154+
},
1155+
"navigation": {
1156+
"dismiss_changes": "Are you sure you want to dismiss unsaved changes?"
1157+
},
1158+
"ui": {
1159+
"menu": {
1160+
"account": "My account",
1161+
"logout": "Logout"
1162+
}
1163+
}
1164+
},
10871165
"load_more": {
10881166
"button": {
10891167
"load_more": "Load more",

lib/js/i18n/i18next-scanner.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ module.exports = {
5454
metadata: {},
5555
allowDynamicKeys: false,
5656
},
57-
input: ['src/**/*.{ts,tsx,js,jsx}'],
57+
input: [
58+
'src/**/*.{ts,tsx,js,jsx}',
59+
'!../../lib/js/**/node_modules/**',
60+
'../../lib/js/**/*.{ts,tsx,js,jsx}'
61+
],
5862
output: './',
5963
transform: typescriptTransform(
6064
// options

0 commit comments

Comments
 (0)