diff --git a/frontend/src/components/content_value/ContentValueList.vue b/frontend/src/components/content_value/ContentValueList.vue
index 6cb9ebd..d4af9c7 100644
--- a/frontend/src/components/content_value/ContentValueList.vue
+++ b/frontend/src/components/content_value/ContentValueList.vue
@@ -31,7 +31,7 @@ const currentEditRow = ref({
})
const valueColumn = reactive({
key: 'value',
- title: i18n.t('value'),
+ title: i18n.t('common.value'),
align: 'center',
titleAlign: 'center',
filterOptionValue: null,
@@ -57,7 +57,7 @@ const valueColumn = reactive({
})
const actionColumn = {
key: 'action',
- title: i18n.t('action'),
+ title: i18n.t('interface.action'),
width: 100,
align: 'center',
titleAlign: 'center',
@@ -80,7 +80,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('delete_key_succ', { key: '#' + row.no }))
+ $message.success(i18n.t('dialogue.delete_key_succ', { key: '#' + row.no }))
// update display value
// if (!isEmpty(removed)) {
// props.value.splice(removed[0], 1)
@@ -103,7 +103,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('save_value_succ'))
+ $message.success(i18n.t('dialogue.save_value_succ'))
// update display value
// if (!isEmpty(updated)) {
// for (const key in updated) {
@@ -176,7 +176,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
diff --git a/frontend/src/components/content_value/ContentValueSet.vue b/frontend/src/components/content_value/ContentValueSet.vue
index 12bb603..a6f8494 100644
--- a/frontend/src/components/content_value/ContentValueSet.vue
+++ b/frontend/src/components/content_value/ContentValueSet.vue
@@ -32,7 +32,7 @@ const currentEditRow = ref({
const valueColumn = reactive({
key: 'value',
- title: i18n.t('value'),
+ title: i18n.t('common.value'),
align: 'center',
titleAlign: 'center',
filterOptionValue: null,
@@ -58,7 +58,7 @@ const valueColumn = reactive({
})
const actionColumn = {
key: 'action',
- title: i18n.t('action'),
+ title: i18n.t('interface.action'),
width: 100,
align: 'center',
titleAlign: 'center',
@@ -82,7 +82,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('delete_key_succ', { key: row.value }))
+ $message.success(i18n.t('dialogue.delete_key_succ', { key: row.value }))
// update display value
// props.value.splice(row.no - 1, 1)
} else {
@@ -103,7 +103,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('save_value_succ'))
+ $message.success(i18n.t('dialogue.save_value_succ'))
// update display value
// props.value[row.no - 1] = currentEditRow.value.value
} else {
@@ -172,7 +172,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
@@ -182,7 +182,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
- {{ $t('add_row') }}
+ {{ $t('interface.add_row') }}
diff --git a/frontend/src/components/content_value/ContentValueStream.vue b/frontend/src/components/content_value/ContentValueStream.vue
index 04a0abd..e0a2d5c 100644
--- a/frontend/src/components/content_value/ContentValueStream.vue
+++ b/frontend/src/components/content_value/ContentValueStream.vue
@@ -25,11 +25,11 @@ const props = defineProps({
const filterOption = [
{
value: 1,
- label: i18n.t('field'),
+ label: i18n.t('common.field'),
},
{
value: 2,
- label: i18n.t('value'),
+ label: i18n.t('common.value'),
},
]
const filterType = ref(1)
@@ -46,7 +46,7 @@ const idColumn = reactive({
})
const valueColumn = reactive({
key: 'value',
- title: i18n.t('value'),
+ title: i18n.t('common.value'),
align: 'center',
titleAlign: 'center',
resizable: true,
@@ -71,7 +71,7 @@ const valueColumn = reactive({
})
const actionColumn = {
key: 'action',
- title: i18n.t('action'),
+ title: i18n.t('interface.action'),
width: 60,
align: 'center',
titleAlign: 'center',
@@ -90,7 +90,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('delete_key_succ', { key: row.id }))
+ $message.success(i18n.t('dialogue.delete_key_succ', { key: row.id }))
// update display value
// if (!isEmpty(removed)) {
// for (const elem of removed) {
@@ -164,7 +164,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
@update:value="onChangeFilterType" />
@@ -175,7 +175,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
- {{ $t('add_row') }}
+ {{ $t('interface.add_row') }}
diff --git a/frontend/src/components/content_value/ContentValueString.vue b/frontend/src/components/content_value/ContentValueString.vue
index f653c96..28ed166 100644
--- a/frontend/src/components/content_value/ContentValueString.vue
+++ b/frontend/src/components/content_value/ContentValueString.vue
@@ -115,7 +115,7 @@ const onCopyValue = () => {
ClipboardSetText(viewValue.value)
.then((succ) => {
if (succ) {
- $message.success(i18n.t('copy_succ'))
+ $message.success(i18n.t('dialogue.copy_succ'))
}
})
.catch((e) => {
@@ -152,7 +152,7 @@ const onSaveValue = async () => {
)
if (success) {
await connectionStore.loadKeyValue(props.name, props.db, props.keyPath)
- $message.success(i18n.t('save_value_succ'))
+ $message.success(i18n.t('dialogue.save_value_succ'))
} else {
$message.error(msg)
}
@@ -169,7 +169,7 @@ const onSaveValue = async () => {
-
{{ $t('view_as') }}
+
{{ $t('interface.view_as') }}
@@ -177,13 +177,13 @@ const onSaveValue = async () => {
- {{ $t('copy_value') }}
+ {{ $t('interface.copy_value') }}
- {{ $t('edit_value') }}
+ {{ $t('interface.edit_value') }}
@@ -191,13 +191,13 @@ const onSaveValue = async () => {
- {{ $t('save_update') }}
+ {{ $t('interface.save_update') }}
- {{ $t('cancel') }}
+ {{ $t('common.cancel') }}
diff --git a/frontend/src/components/content_value/ContentValueZSet.vue b/frontend/src/components/content_value/ContentValueZSet.vue
index f5d385c..c0584c6 100644
--- a/frontend/src/components/content_value/ContentValueZSet.vue
+++ b/frontend/src/components/content_value/ContentValueZSet.vue
@@ -25,11 +25,11 @@ const props = defineProps({
const filterOption = [
{
value: 1,
- label: i18n.t('value'),
+ label: i18n.t('common.value'),
},
{
value: 2,
- label: i18n.t('score'),
+ label: i18n.t('interface.score'),
},
]
const filterType = ref(1)
@@ -44,7 +44,7 @@ const currentEditRow = ref({
})
const scoreColumn = reactive({
key: 'score',
- title: i18n.t('score'),
+ title: i18n.t('interface.score'),
align: 'center',
titleAlign: 'center',
resizable: true,
@@ -98,7 +98,7 @@ const scoreColumn = reactive({
})
const valueColumn = reactive({
key: 'value',
- title: i18n.t('value'),
+ title: i18n.t('common.value'),
align: 'center',
titleAlign: 'center',
resizable: true,
@@ -129,7 +129,7 @@ const valueColumn = reactive({
})
const actionColumn = {
key: 'action',
- title: i18n.t('action'),
+ title: i18n.t('interface.action'),
width: 100,
align: 'center',
titleAlign: 'center',
@@ -153,7 +153,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('delete_key_succ', { key: row.value }))
+ $message.success(i18n.t('dialogue.delete_key_succ', { key: row.value }))
} else {
$message.error(msg)
}
@@ -165,7 +165,7 @@ const actionColumn = {
try {
const newValue = currentEditRow.value.value
if (isEmpty(newValue)) {
- $message.error(i18n.t('spec_field_required', { key: i18n.t('value') }))
+ $message.error(i18n.t('dialogue.spec_field_required', { key: i18n.t('common.value') }))
return
}
const { success, msg } = await connectionStore.updateZSetItem(
@@ -178,7 +178,7 @@ const actionColumn = {
)
if (success) {
connectionStore.loadKeyValue(props.name, props.db, props.keyPath).then((r) => {})
- $message.success(i18n.t('save_value_succ'))
+ $message.success(i18n.t('dialogue.save_value_succ'))
} else {
$message.error(msg)
}
@@ -279,12 +279,12 @@ const onUpdateFilter = (filters, sourceColumn) => {
-
{{ $t('score_filter_tip') }}
+
{{ $t('interface.score_filter_tip') }}
@@ -293,7 +293,7 @@ const onUpdateFilter = (filters, sourceColumn) => {
- {{ $t('add_row') }}
+ {{ $t('interface.add_row') }}
diff --git a/frontend/src/components/dialogs/AddFieldsDialog.vue b/frontend/src/components/dialogs/AddFieldsDialog.vue
index c9b6eb8..21796b2 100644
--- a/frontend/src/components/dialogs/AddFieldsDialog.vue
+++ b/frontend/src/components/dialogs/AddFieldsDialog.vue
@@ -47,15 +47,15 @@ const defaultValue = {
const title = computed(() => {
switch (newForm.type) {
case types.LIST:
- return i18n.t('new_item')
+ return i18n.t('dialogue.field.new_item')
case types.HASH:
- return i18n.t('new_field')
+ return i18n.t('dialogue.field.new')
case types.SET:
- return i18n.t('new_field')
+ return i18n.t('dialogue.field.new')
case types.ZSET:
- return i18n.t('new_field')
+ return i18n.t('dialogue.field.new')
case types.STREAM:
- return i18n.t('new_field')
+ return i18n.t('dialogue.field.new')
}
return ''
})
@@ -98,7 +98,7 @@ const onAdd = async () => {
if (newForm.reload) {
connectionStore.loadKeyValue(server, db, key).then(() => {})
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -112,7 +112,7 @@ const onAdd = async () => {
if (newForm.reload) {
connectionStore.loadKeyValue(server, db, key).then(() => {})
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -126,7 +126,7 @@ const onAdd = async () => {
if (newForm.reload) {
connectionStore.loadKeyValue(server, db, key).then(() => {})
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -140,7 +140,7 @@ const onAdd = async () => {
if (newForm.reload) {
connectionStore.loadKeyValue(server, db, key).then(() => {})
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -161,7 +161,7 @@ const onAdd = async () => {
if (newForm.reload) {
connectionStore.loadKeyValue(server, db, key).then(() => {})
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -187,9 +187,9 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:negative-button-props="{ size: 'medium' }"
- :negative-text="$t('cancel')"
+ :negative-text="$t('common.cancel')"
:positive-button-props="{ size: 'medium' }"
- :positive-text="$t('confirm')"
+ :positive-text="$t('common.confirm')"
:show-icon="false"
:title="title"
preset="dialog"
@@ -199,7 +199,7 @@ const onClose = () => {
@negative-click="onClose">
-
+
{
v-model:value="newForm.value" />
- {{ $t('reload_when_succ') }}
+ {{ $t('dialogue.field.reload_when_succ') }}
diff --git a/frontend/src/components/dialogs/ConnectionDialog.vue b/frontend/src/components/dialogs/ConnectionDialog.vue
index 76301b4..9be5fa5 100644
--- a/frontend/src/components/dialogs/ConnectionDialog.vue
+++ b/frontend/src/components/dialogs/ConnectionDialog.vue
@@ -18,7 +18,7 @@ const i18n = useI18n()
const editName = ref('')
const generalForm = ref(null)
const generalFormRules = () => {
- const requiredMsg = i18n.t('field_required')
+ const requiredMsg = i18n.t('dialogue.field_required')
const illegalChars = ['/', '\\']
return {
name: [
@@ -27,7 +27,7 @@ const generalFormRules = () => {
validator: (rule, value) => {
return every(illegalChars, (c) => !includes(value, c))
},
- message: i18n.t('illegal_characters'),
+ message: i18n.t('dialogue.illegal_characters'),
trigger: 'input',
},
],
@@ -50,7 +50,7 @@ const groupOptions = computed(() => {
value: group,
}))
options.splice(0, 0, {
- label: i18n.t('no_group'),
+ label: i18n.t('dialogue.connection.no_group'),
value: '',
})
return options
@@ -86,7 +86,7 @@ const onSaveConnection = async () => {
return
}
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
onClose()
}
@@ -149,26 +149,30 @@ const onClose = () => {
:mask-closable="false"
:on-after-leave="resetForm"
:show-icon="false"
- :title="isEditMode ? $t('edit_conn_title') : $t('new_conn_title')"
+ :title="isEditMode ? $t('dialogue.connection.edit_title') : $t('dialogue.connection.new_title')"
preset="dialog"
transform-origin="center">
-
+
-
-
+
+
-
+
-
-
+
+
:
{
:min="1"
style="width: 200px" />
-
+
-
-
+
+
-
+
-
+
+ :placeholder="$t('dialogue.connection.advn_filter_tip')" />
-
+
+ :placeholder="$t('dialogue.connection.advn_separator_tip')" />
-
+
- {{ $t('second') }}
+ {{ $t('common.second') }}
-
+
- {{ $t('second') }}
+ {{ $t('common.second') }}
-
+
{
- {{ $t('conn_test_succ') }}
+ {{ $t('dialogue.connection.test_succ') }}
{{ testResult }}
@@ -250,15 +254,15 @@ const onClose = () => {
- {{ $t('conn_test') }}
+ {{ $t('dialogue.connection.test') }}
- {{ $t('cancel') }}
+ {{ $t('common.cancel') }}
- {{ isEditMode ? $t('update') : $t('confirm') }}
+ {{ isEditMode ? $t('preferences.general.update') : $t('common.confirm') }}
diff --git a/frontend/src/components/dialogs/DeleteKeyDialog.vue b/frontend/src/components/dialogs/DeleteKeyDialog.vue
index 44c0d21..67d4022 100644
--- a/frontend/src/components/dialogs/DeleteKeyDialog.vue
+++ b/frontend/src/components/dialogs/DeleteKeyDialog.vue
@@ -53,7 +53,7 @@ const onConfirmDelete = async () => {
const { server, db, key } = deleteForm
const success = await connectionStore.deleteKeyPrefix(server, db, key)
if (success) {
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
}
} catch (e) {
$message.error(e.message)
@@ -73,20 +73,20 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:show-icon="false"
- :title="$t('batch_delete_key')"
+ :title="$t('interface.batch_delete_key')"
preset="dialog"
transform-origin="center">
-
+
-
+
-
+
-
+
{
- {{ $t('cancel') }}
+ {{ $t('common.cancel') }}
- {{ $t('show_affected_key') }}
+ {{ $t('dialogue.key.show_affected_key') }}
{
:disabled="isEmpty(deleteForm.affectedKeys)"
type="error"
@click="onConfirmDelete">
- {{ $t('confirm_delete_key', { num: size(deleteForm.affectedKeys) }) }}
+ {{ $t('dialogue.key.confirm_delete_key', { num: size(deleteForm.affectedKeys) }) }}
diff --git a/frontend/src/components/dialogs/GroupDialog.vue b/frontend/src/components/dialogs/GroupDialog.vue
index 38679e8..c5e3737 100644
--- a/frontend/src/components/dialogs/GroupDialog.vue
+++ b/frontend/src/components/dialogs/GroupDialog.vue
@@ -34,14 +34,14 @@ const onConfirm = async () => {
if (isRenameMode.value) {
const { success, msg } = await connectionStore.renameGroup(editGroup.value, name)
if (success) {
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
} else {
const { success, msg } = await connectionStore.createGroup(name)
if (success) {
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -68,17 +68,17 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:negative-button-props="{ size: 'medium' }"
- :negative-text="$t('cancel')"
+ :negative-text="$t('common.cancel')"
:positive-button-props="{ size: 'medium' }"
- :positive-text="$t('confirm')"
+ :positive-text="$t('common.confirm')"
:show-icon="false"
- :title="isRenameMode ? $t('rename_group') : $t('new_group')"
+ :title="isRenameMode ? $t('dialogue.group.rename') : $t('dialogue.group.new')"
preset="dialog"
transform-origin="center"
@positive-click="onConfirm"
@negative-click="onClose">
-
+
diff --git a/frontend/src/components/dialogs/KeyFilterDialog.vue b/frontend/src/components/dialogs/KeyFilterDialog.vue
index 181c0ce..ae7370b 100644
--- a/frontend/src/components/dialogs/KeyFilterDialog.vue
+++ b/frontend/src/components/dialogs/KeyFilterDialog.vue
@@ -20,7 +20,7 @@ const typeOptions = computed(() => {
}))
options.splice(0, 0, {
value: '',
- label: i18n.t('all'),
+ label: i18n.t('common.all'),
})
return options
})
@@ -58,11 +58,11 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:negative-button-props="{ size: 'medium' }"
- :negative-text="$t('cancel')"
+ :negative-text="$t('common.cancel')"
:positive-button-props="{ size: 'medium' }"
- :positive-text="$t('confirm')"
+ :positive-text="$t('common.confirm')"
:show-icon="false"
- :title="$t('set_key_filter')"
+ :title="$t('dialogue.filter.set_key_filter')"
preset="dialog"
style="width: 450px"
transform-origin="center"
@@ -77,22 +77,22 @@ const onClose = () => {
{{ filterForm.server }}
-
+
{{ filterForm.db }}
-
+
-
+
- {{ $t('filter_pattern_tip') }}
+ {{ $t('dialogue.filter.filter_pattern_tip') }}
- {{ $t('restore_defaults') }}
+ {{ $t('preferences.restore_defaults') }}
diff --git a/frontend/src/components/dialogs/NewKeyDialog.vue b/frontend/src/components/dialogs/NewKeyDialog.vue
index 6385a5c..e18615f 100644
--- a/frontend/src/components/dialogs/NewKeyDialog.vue
+++ b/frontend/src/components/dialogs/NewKeyDialog.vue
@@ -24,7 +24,7 @@ const newForm = reactive({
value: null,
})
const formRules = computed(() => {
- const requiredMsg = i18n.t('field_required')
+ const requiredMsg = i18n.t('dialogue.field_required')
return {
key: { required: true, message: requiredMsg, trigger: 'input' },
type: { required: true, message: requiredMsg, trigger: 'input' },
@@ -107,7 +107,7 @@ const onAdd = async () => {
$message.error(err.message)
})
if (subFormRef.value?.validate && !subFormRef.value?.validate()) {
- $message.error(i18n.t('spec_field_required', { key: i18n.t('element') }))
+ $message.error(i18n.t('dialogue.spec_field_required', { key: i18n.t('dialogue.field.element') }))
return false
}
try {
@@ -140,11 +140,11 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:negative-button-props="{ size: 'medium' }"
- :negative-text="$t('cancel')"
+ :negative-text="$t('common.cancel')"
:positive-button-props="{ size: 'medium' }"
- :positive-text="$t('confirm')"
+ :positive-text="$t('common.confirm')"
:show-icon="false"
- :title="$t('new_key')"
+ :title="$t('dialogue.key.new')"
preset="dialog"
style="width: 600px"
transform-origin="center"
@@ -158,16 +158,16 @@ const onClose = () => {
:show-require-mark="false"
label-placement="top"
style="padding-right: 15px">
-
+
-
+
-
+
-
+
{
:min="-1"
placeholder="TTL">
- {{ $t('second') }}
+ {{ $t('common.second') }}
- {{ $t('persist_key') }}
+ {{ $t('dialogue.key.persist_key') }}
diff --git a/frontend/src/components/dialogs/PreferencesDialog.vue b/frontend/src/components/dialogs/PreferencesDialog.vue
index 341e0f7..b5d2cb8 100644
--- a/frontend/src/components/dialogs/PreferencesDialog.vue
+++ b/frontend/src/components/dialogs/PreferencesDialog.vue
@@ -38,7 +38,7 @@ watch(
const onSavePreferences = async () => {
const success = await prefStore.savePreferences()
if (success) {
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
dialogStore.closePreferencesDialog()
}
}
@@ -58,57 +58,57 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:show-icon="false"
- :title="$t('preferences')"
+ :title="$t('preferences.name')"
preset="dialog"
transform-origin="center">
-
+
-
+
{{ opt.label }}
-
+
-
+
-
+
-
+
- {{ $t('use_system_proxy') }}
+ {{ $t('preferences.general.use_system_proxy') }}
- {{ $t('use_system_proxy_http') }}
+ {{ $t('preferences.general.use_system_proxy_http') }}
-
+
- {{ $t('auto_check_update') }}
+ {{ $t('preferences.general.auto_check_update') }}
-
+
-
+
-
+
@@ -119,12 +119,14 @@ const onClose = () => {
- {{ $t('restore_defaults') }}
+ {{ $t('preferences.restore_defaults') }}
- {{ $t('cancel') }}
- {{ $t('save') }}
+ {{ $t('common.cancel') }}
+
+ {{ $t('common.save') }}
+
diff --git a/frontend/src/components/dialogs/RenameKeyDialog.vue b/frontend/src/components/dialogs/RenameKeyDialog.vue
index 38a34d4..15b4a78 100644
--- a/frontend/src/components/dialogs/RenameKeyDialog.vue
+++ b/frontend/src/components/dialogs/RenameKeyDialog.vue
@@ -33,7 +33,7 @@ const onRename = async () => {
const { success, msg } = await connectionStore.renameKey(server, db, key, newKey)
if (success) {
await connectionStore.loadKeyValue(server, db, newKey)
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
} else {
$message.error(msg)
}
@@ -55,11 +55,11 @@ const onClose = () => {
:close-on-esc="false"
:mask-closable="false"
:negative-button-props="{ size: 'medium' }"
- :negative-text="$t('cancel')"
+ :negative-text="$t('common.cancel')"
:positive-button-props="{ size: 'medium' }"
- :positive-text="$t('confirm')"
+ :positive-text="$t('common.confirm')"
:show-icon="false"
- :title="$t('rename_key')"
+ :title="$t('interface.rename_key')"
preset="dialog"
transform-origin="center"
@positive-click="onRename"
@@ -70,7 +70,7 @@ const onClose = () => {
:show-label="false"
label-align="left"
label-placement="top">
-
+
diff --git a/frontend/src/components/dialogs/SetTtlDialog.vue b/frontend/src/components/dialogs/SetTtlDialog.vue
index 423b10d..96a917e 100644
--- a/frontend/src/components/dialogs/SetTtlDialog.vue
+++ b/frontend/src/components/dialogs/SetTtlDialog.vue
@@ -69,21 +69,21 @@ const onConfirm = async () => {
:close-on-esc="false"
:mask-closable="false"
:show-icon="false"
- :title="$t('set_ttl')"
+ :title="$t('dialogue.ttl.title')"
preset="dialog"
transform-origin="center">
-
+
-
+
- {{ $t('second') }}
+ {{ $t('common.second') }}
@@ -91,11 +91,11 @@ const onConfirm = async () => {
- {{ $t('persist_key') }}
+ {{ $t('dialogue.key.persist_key') }}
- {{ $t('cancel') }}
- {{ $t('save') }}
+ {{ $t('common.cancel') }}
+ {{ $t('common.save') }}
diff --git a/frontend/src/components/new_value/AddHashValue.vue b/frontend/src/components/new_value/AddHashValue.vue
index 93cf142..c3e3b97 100644
--- a/frontend/src/components/new_value/AddHashValue.vue
+++ b/frontend/src/components/new_value/AddHashValue.vue
@@ -16,11 +16,11 @@ const i18n = useI18n()
const updateOption = [
{
value: 0,
- label: i18n.t('overwrite_field'),
+ label: i18n.t('dialogue.field.overwrite_field'),
},
{
value: 1,
- label: i18n.t('ignore_field'),
+ label: i18n.t('dialogue.field.ignore_field'),
},
]
@@ -45,16 +45,16 @@ const onUpdate = (val) => {
-
+
emit('update:type', val)">
-
+
diff --git a/frontend/src/components/new_value/AddListValue.vue b/frontend/src/components/new_value/AddListValue.vue
index 9aa450f..992b369 100644
--- a/frontend/src/components/new_value/AddListValue.vue
+++ b/frontend/src/components/new_value/AddListValue.vue
@@ -16,11 +16,11 @@ const i18n = useI18n()
const insertOption = [
{
value: 0,
- label: i18n.t('append_item'),
+ label: i18n.t('dialogue.field.append_item'),
},
{
value: 1,
- label: i18n.t('prepend_item'),
+ label: i18n.t('dialogue.field.prepend_item'),
},
]
@@ -32,13 +32,13 @@ const onUpdate = (val) => {
-
+
emit('update:type', val)">
-
-
+
+
remove(index)" />
create(index)" />
diff --git a/frontend/src/components/new_value/AddZSetValue.vue b/frontend/src/components/new_value/AddZSetValue.vue
index f697e3d..40be1c1 100644
--- a/frontend/src/components/new_value/AddZSetValue.vue
+++ b/frontend/src/components/new_value/AddZSetValue.vue
@@ -19,11 +19,11 @@ const i18n = useI18n()
const updateOption = [
{
value: 0,
- label: i18n.t('overwrite_field'),
+ label: i18n.t('dialogue.field.overwrite_field'),
},
{
value: 1,
- label: i18n.t('ignore_field'),
+ label: i18n.t('dialogue.field.ignore_field'),
},
]
@@ -53,20 +53,23 @@ const onUpdate = () => {
-
+
emit('update:type', val)">
-
+
-
+
remove(index)" />
diff --git a/frontend/src/components/new_value/NewHashValue.vue b/frontend/src/components/new_value/NewHashValue.vue
index f34f74d..60aec84 100644
--- a/frontend/src/components/new_value/NewHashValue.vue
+++ b/frontend/src/components/new_value/NewHashValue.vue
@@ -37,11 +37,11 @@ defineExpose({
-
+
diff --git a/frontend/src/components/new_value/NewListValue.vue b/frontend/src/components/new_value/NewListValue.vue
index 23e9b68..a22c8b0 100644
--- a/frontend/src/components/new_value/NewListValue.vue
+++ b/frontend/src/components/new_value/NewListValue.vue
@@ -24,8 +24,8 @@ defineExpose({
-
-
+
+
remove(index)" />
create(index)" />
diff --git a/frontend/src/components/new_value/NewSetValue.vue b/frontend/src/components/new_value/NewSetValue.vue
index 63d3652..c566f52 100644
--- a/frontend/src/components/new_value/NewSetValue.vue
+++ b/frontend/src/components/new_value/NewSetValue.vue
@@ -24,8 +24,8 @@ defineExpose({
-
-
+
+
remove(index)" />
create(index)" />
diff --git a/frontend/src/components/new_value/NewStreamValue.vue b/frontend/src/components/new_value/NewStreamValue.vue
index d306e0e..7c41f3f 100644
--- a/frontend/src/components/new_value/NewStreamValue.vue
+++ b/frontend/src/components/new_value/NewStreamValue.vue
@@ -43,11 +43,11 @@ defineExpose({
-
+
diff --git a/frontend/src/components/new_value/NewStringValue.vue b/frontend/src/components/new_value/NewStringValue.vue
index bac38e3..e62ed1f 100644
--- a/frontend/src/components/new_value/NewStringValue.vue
+++ b/frontend/src/components/new_value/NewStringValue.vue
@@ -7,7 +7,7 @@ const emit = defineEmits(['update:value'])
-
+
-
+
-
+
remove(index)" />
diff --git a/frontend/src/components/sidebar/BrowserPane.vue b/frontend/src/components/sidebar/BrowserPane.vue
index 527b2a5..c4d174e 100644
--- a/frontend/src/components/sidebar/BrowserPane.vue
+++ b/frontend/src/components/sidebar/BrowserPane.vue
@@ -56,7 +56,7 @@ const filterTypeOptions = computed(() => {
}))
options.splice(0, 0, {
value: '',
- label: i18n.t('all'),
+ label: i18n.t('common.all'),
})
return options
})
@@ -83,10 +83,15 @@ const filterTypeOptions = computed(() => {
diff --git a/frontend/src/components/sidebar/BrowserTree.vue b/frontend/src/components/sidebar/BrowserTree.vue
index 41c57ba..4321092 100644
--- a/frontend/src/components/sidebar/BrowserTree.vue
+++ b/frontend/src/components/sidebar/BrowserTree.vue
@@ -88,12 +88,12 @@ const menuOptions = {
return [
{
key: 'server_reload',
- label: i18n.t('reload'),
+ label: i18n.t('interface.reload'),
icon: renderIcon(Refresh),
},
{
key: 'server_close',
- label: i18n.t('disconnect'),
+ label: i18n.t('interface.disconnect'),
icon: renderIcon(Unlink),
},
]
@@ -103,17 +103,17 @@ const menuOptions = {
return [
{
key: 'db_reload',
- label: i18n.t('reload'),
+ label: i18n.t('interface.reload'),
icon: renderIcon(Refresh),
},
{
key: 'db_newkey',
- label: i18n.t('new_key'),
+ label: i18n.t('interface.new_key'),
icon: renderIcon(Add),
},
{
key: 'db_filter',
- label: i18n.t('filter_key'),
+ label: i18n.t('interface.filter_key'),
icon: renderIcon(Filter),
},
{
@@ -122,7 +122,7 @@ const menuOptions = {
},
{
key: 'key_remove',
- label: i18n.t('batch_delete'),
+ label: i18n.t('interface.batch_delete'),
icon: renderIcon(Delete),
},
{
@@ -131,7 +131,7 @@ const menuOptions = {
},
{
key: 'db_close',
- label: i18n.t('close_db'),
+ label: i18n.t('interface.close_db'),
icon: renderIcon(Close),
},
]
@@ -139,7 +139,7 @@ const menuOptions = {
return [
{
key: 'db_open',
- label: i18n.t('open_db'),
+ label: i18n.t('interface.open_db'),
icon: renderIcon(Connect),
},
]
@@ -148,17 +148,17 @@ const menuOptions = {
[ConnectionType.RedisKey]: () => [
{
key: 'key_reload',
- label: i18n.t('reload'),
+ label: i18n.t('interface.reload'),
icon: renderIcon(Refresh),
},
{
key: 'key_newkey',
- label: i18n.t('new_key'),
+ label: i18n.t('interface.new_key'),
icon: renderIcon(Add),
},
{
key: 'key_copy',
- label: i18n.t('copy_path'),
+ label: i18n.t('interface.copy_path'),
icon: renderIcon(CopyLink),
},
{
@@ -167,19 +167,19 @@ const menuOptions = {
},
{
key: 'key_remove',
- label: i18n.t('batch_delete'),
+ label: i18n.t('interface.batch_delete'),
icon: renderIcon(Delete),
},
],
[ConnectionType.RedisValue]: () => [
{
key: 'value_reload',
- label: i18n.t('reload'),
+ label: i18n.t('interface.reload'),
icon: renderIcon(Refresh),
},
{
key: 'value_copy',
- label: i18n.t('copy_key'),
+ label: i18n.t('interface.copy_key'),
icon: renderIcon(CopyLink),
},
{
@@ -188,7 +188,7 @@ const menuOptions = {
},
{
key: 'value_remove',
- label: i18n.t('remove_key'),
+ label: i18n.t('interface.remove_key'),
icon: renderIcon(Delete),
},
],
@@ -233,7 +233,7 @@ const handleSelectContextMenu = (key) => {
expandedKeys.value = [props.server]
tabStore.setSelectedKeys(props.server)
connectionStore.openConnection(props.server, true).then(() => {
- $message.success(i18n.t('reload_succ'))
+ $message.success(i18n.t('dialogue.reload_succ'))
})
break
case 'server_close':
@@ -267,10 +267,10 @@ const handleSelectContextMenu = (key) => {
dialogStore.openDeleteKeyDialog(props.server, db, isEmpty(redisKey) ? '*' : redisKey + ':*')
break
case 'value_remove':
- $dialog.warning(i18n.t('remove_tip', { name: redisKey }), () => {
+ $dialog.warning(i18n.t('dialogue.remove_tip', { name: redisKey }), () => {
connectionStore.deleteKey(props.server, db, redisKey).then((success) => {
if (success) {
- $message.success(i18n.t('delete_key_succ', { key: redisKey }))
+ $message.success(i18n.t('dialogue.delete_key_succ', { key: redisKey }))
}
})
})
@@ -280,7 +280,7 @@ const handleSelectContextMenu = (key) => {
ClipboardSetText(redisKey)
.then((succ) => {
if (succ) {
- $message.success(i18n.t('copy_succ'))
+ $message.success(i18n.t('dialogue.copy_succ'))
}
})
.catch((e) => {
@@ -451,22 +451,22 @@ const getDatabaseMenu = (opened) => {
if (opened) {
btns.push(
h(IconButton, {
- tTooltip: 'filter_key',
+ tTooltip: 'interface.filter_key',
icon: Filter,
onClick: () => handleSelectContextMenu('db_filter'),
}),
h(IconButton, {
- tTooltip: 'reload',
+ tTooltip: 'interface.reload',
icon: Refresh,
onClick: () => handleSelectContextMenu('db_reload'),
}),
h(IconButton, {
- tTooltip: 'new_key',
+ tTooltip: 'interface.new_key',
icon: Add,
onClick: () => handleSelectContextMenu('db_newkey'),
}),
h(IconButton, {
- tTooltip: 'batch_delete',
+ tTooltip: 'interface.batch_delete',
icon: Delete,
onClick: () => handleSelectContextMenu('key_remove'),
}),
@@ -474,7 +474,7 @@ const getDatabaseMenu = (opened) => {
} else {
btns.push(
h(IconButton, {
- tTooltip: 'open_db',
+ tTooltip: 'interface.open_db',
icon: Connect,
onClick: () => handleSelectContextMenu('db_open'),
}),
@@ -486,17 +486,17 @@ const getDatabaseMenu = (opened) => {
const getLayerMenu = () => {
return [
h(IconButton, {
- tTooltip: 'reload',
+ tTooltip: 'interface.reload',
icon: Refresh,
onClick: () => handleSelectContextMenu('key_reload'),
}),
h(IconButton, {
- tTooltip: 'new_key',
+ tTooltip: 'interface.new_key',
icon: Add,
onClick: () => handleSelectContextMenu('key_newkey'),
}),
h(IconButton, {
- tTooltip: 'batch_delete',
+ tTooltip: 'interface.batch_delete',
icon: Delete,
onClick: () => handleSelectContextMenu('key_remove'),
}),
@@ -506,7 +506,7 @@ const getLayerMenu = () => {
const getValueMenu = () => {
return [
h(IconButton, {
- tTooltip: 'remove_key',
+ tTooltip: 'interface.remove_key',
icon: Delete,
onClick: () => handleSelectContextMenu('value_remove'),
}),
diff --git a/frontend/src/components/sidebar/ConnectionPane.vue b/frontend/src/components/sidebar/ConnectionPane.vue
index d94a5cb..18cd584 100644
--- a/frontend/src/components/sidebar/ConnectionPane.vue
+++ b/frontend/src/components/sidebar/ConnectionPane.vue
@@ -25,15 +25,15 @@ const filterPattern = ref('')
:icon="AddLink"
size="20"
stroke-width="4"
- t-tooltip="new_conn"
+ t-tooltip="interface.new_conn"
@click="dialogStore.openNewDialog()" />
-
+
diff --git a/frontend/src/components/sidebar/ConnectionTree.vue b/frontend/src/components/sidebar/ConnectionTree.vue
index 94ac5e8..40503b7 100644
--- a/frontend/src/components/sidebar/ConnectionTree.vue
+++ b/frontend/src/components/sidebar/ConnectionTree.vue
@@ -55,12 +55,12 @@ const menuOptions = {
[ConnectionType.Group]: ({ opened }) => [
{
key: 'group_rename',
- label: i18n.t('rename_conn_group'),
+ label: i18n.t('interface.rename_conn_group'),
icon: renderIcon(Edit),
},
{
key: 'group_delete',
- label: i18n.t('remove_conn_group'),
+ label: i18n.t('interface.remove_conn_group'),
icon: renderIcon(Delete),
},
],
@@ -70,17 +70,17 @@ const menuOptions = {
return [
{
key: 'server_close',
- label: i18n.t('disconnect'),
+ label: i18n.t('interface.disconnect'),
icon: renderIcon(Unlink),
},
{
key: 'server_dup',
- label: i18n.t('dup_conn'),
+ label: i18n.t('interface.dup_conn'),
icon: renderIcon(CopyLink),
},
{
key: 'server_edit',
- label: i18n.t('edit_conn'),
+ label: i18n.t('interface.edit_conn'),
icon: renderIcon(Config),
},
{
@@ -89,7 +89,7 @@ const menuOptions = {
},
{
key: 'server_remove',
- label: i18n.t('remove_conn'),
+ label: i18n.t('interface.remove_conn'),
icon: renderIcon(Delete),
},
]
@@ -97,12 +97,12 @@ const menuOptions = {
return [
{
key: 'server_open',
- label: i18n.t('open_connection'),
+ label: i18n.t('interface.open_connection'),
icon: renderIcon(Connect),
},
{
key: 'server_edit',
- label: i18n.t('edit_conn'),
+ label: i18n.t('interface.edit_conn'),
icon: renderIcon(Config),
},
{
@@ -111,7 +111,7 @@ const menuOptions = {
},
{
key: 'server_remove',
- label: i18n.t('remove_conn'),
+ label: i18n.t('interface.remove_conn'),
icon: renderIcon(Delete),
},
]
@@ -207,12 +207,12 @@ const getServerMenu = (connected) => {
if (connected) {
btns.push(
h(IconButton, {
- tTooltip: 'disconnect',
+ tTooltip: 'interface.disconnect',
icon: Unlink,
onClick: () => handleSelectContextMenu('server_close'),
}),
h(IconButton, {
- tTooltip: 'edit_conn',
+ tTooltip: 'interface.edit_conn',
icon: Config,
onClick: () => handleSelectContextMenu('server_edit'),
}),
@@ -220,17 +220,17 @@ const getServerMenu = (connected) => {
} else {
btns.push(
h(IconButton, {
- tTooltip: 'open_connection',
+ tTooltip: 'interface.open_connection',
icon: Connect,
onClick: () => handleSelectContextMenu('server_open'),
}),
h(IconButton, {
- tTooltip: 'edit_conn',
+ tTooltip: 'interface.edit_conn',
icon: Config,
onClick: () => handleSelectContextMenu('server_edit'),
}),
h(IconButton, {
- tTooltip: 'remove_conn',
+ tTooltip: 'interface.remove_conn',
icon: Delete,
onClick: () => handleSelectContextMenu('server_remove'),
}),
@@ -242,12 +242,12 @@ const getServerMenu = (connected) => {
const getGroupMenu = () => {
return [
h(IconButton, {
- tTooltip: 'edit_conn',
+ tTooltip: 'interface.edit_conn',
icon: Config,
onClick: () => handleSelectContextMenu('group_rename'),
}),
h(IconButton, {
- tTooltip: 'remove_conn',
+ tTooltip: 'interface.remove_conn',
icon: Delete,
onClick: () => handleSelectContextMenu('group_delete'),
}),
@@ -298,17 +298,20 @@ const openConnection = async (name) => {
}
const removeConnection = (name) => {
- $dialog.warning(i18n.t('remove_tip', { type: i18n.t('conn_name'), name }), async () => {
- connectionStore.deleteConnection(name).then(({ success, msg }) => {
- if (!success) {
- $message.error(msg)
- }
- })
- })
+ $dialog.warning(
+ i18n.t('dialogue.remove_tip', { type: i18n.t('dialogue.connection.conn_name'), name }),
+ async () => {
+ connectionStore.deleteConnection(name).then(({ success, msg }) => {
+ if (!success) {
+ $message.error(msg)
+ }
+ })
+ },
+ )
}
const removeGroup = async (name) => {
- $dialog.warning(i18n.t('remove_group_tip', { name }), async () => {
+ $dialog.warning(i18n.t('dialogue.remove_group_tip', { name }), async () => {
connectionStore.deleteGroup(name).then(({ success, msg }) => {
if (!success) {
$message.error(msg)
@@ -376,7 +379,7 @@ const handleSelectContextMenu = (key) => {
case 'server_edit':
// ask for close relevant connections before edit
if (connectionStore.isConnected(name)) {
- $dialog.warning(i18n.t('edit_close_confirm'), () => {
+ $dialog.warning(i18n.t('dialogue.edit_close_confirm'), () => {
connectionStore.closeConnection(name)
dialogStore.openEditDialog(name)
})
@@ -390,7 +393,7 @@ const handleSelectContextMenu = (key) => {
case 'server_close':
connectionStore.closeConnection(name).then((closed) => {
if (closed) {
- $message.success(i18n.t('handle_succ'))
+ $message.success(i18n.t('dialogue.handle_succ'))
}
})
break
@@ -459,7 +462,10 @@ const handleDrop = ({ node, dragNode, dropPosition }) => {
-
+
{
style="width: 400px">
- {{ $t('opening_connection') }}
+ {{ $t('dialogue.opening_connection') }}
diff --git a/frontend/src/components/sidebar/NavMenu.vue b/frontend/src/components/sidebar/NavMenu.vue
index e89d903..eeb5988 100644
--- a/frontend/src/components/sidebar/NavMenu.vue
+++ b/frontend/src/components/sidebar/NavMenu.vue
@@ -39,18 +39,18 @@ const i18n = useI18n()
const menuOptions = computed(() => {
return [
{
- label: i18n.t('browser'),
+ label: i18n.t('ribbon.browser'),
key: 'browser',
icon: renderIcon(ToggleDb),
show: connectionStore.anyConnectionOpened,
},
{
- label: i18n.t('server'),
+ label: i18n.t('ribbon.server'),
key: 'server',
icon: renderIcon(ToggleServer),
},
{
- label: i18n.t('log'),
+ label: i18n.t('ribbon.log'),
key: 'log',
icon: renderIcon(Record),
},
@@ -60,17 +60,17 @@ const menuOptions = computed(() => {
const preferencesOptions = computed(() => {
return [
{
- label: i18n.t('preferences'),
+ label: i18n.t('menu.preferences'),
key: 'preferences',
icon: renderIcon(Config),
},
+ // {
+ // label: i18n.t('menu.help'),
+ // key: 'help',
+ // icon: renderIcon(Help),
+ // },
{
- label: i18n.t('help'),
- key: 'help',
- icon: renderIcon(Help),
- },
- {
- label: i18n.t('check_update'),
+ label: i18n.t('menu.check_update'),
key: 'update',
},
]
diff --git a/frontend/src/langs/en.json b/frontend/src/langs/en.json
index 20dc108..591563a 100644
--- a/frontend/src/langs/en.json
+++ b/frontend/src/langs/en.json
@@ -1,168 +1,208 @@
{
"name": "English",
- "system_lang": "Use System Language",
- "confirm": "Confirm",
- "cancel": "Cancel",
- "success": "Success",
- "warning": "Warning",
- "error": "Error",
- "save": "Save",
- "none": "None",
- "default": "Default",
- "new_conn": "Add New Connection",
- "new_group": "Add New Group",
- "rename_group": "Rename Group",
- "disconnect_all": "Disconnect all",
- "status": "Status",
- "filter": "Filter",
- "sort_conn": "Sort Connections",
- "close_confirm": "Confirm close this tab and connection",
- "edit_close_confirm": "Please close the relevant connections before editing. Do you want to continue?",
- "opening_connection": "Opening Connection...",
- "remove_tip": "{type} \"{name}\" will be deleted",
- "remove_group_tip": "Group \"{name}\" and all connections in it will be deleted",
- "ttl": "TTL",
- "forever": "Forever",
- "rename_key": "Rename Key",
- "delete_key": "Delete Key",
- "batch_delete_key": "Batch Delete Keys",
- "db_index": "Database Index",
- "key_expression": "Key Expression",
- "affected_key": "Affected Keys",
- "show_affected_key": "Show Affected Keys",
- "confirm_delete_key": "Confirm Delete {num} Keys",
- "delete_key_succ": "\"{key}\" has been deleted",
- "copy_value": "Copy Value",
- "edit_value": "Edit Value",
- "save_update": "Save Update",
- "score_filter_tip": "Support operator list below:\n= equal\n!= not equal\n> greater than\n>= greater than or equal to\n< less than\n<= less than or equal to\nfor example you want to filter results which greater than 3, input: >3",
- "add_row": "Add Row",
- "edit_row": "Edit Row",
- "delete_row": "Delete Row",
- "search": "Search",
- "filter_field": "Filter Field",
- "filter_value": "Filter Value",
- "view_as": "View As",
- "reload": "Reload",
- "open_connection": "Open Connection",
- "open_db": "Open Database",
- "close_db": "Close Database",
- "filter_key": "Filter Key",
- "disconnect": "Disconnect",
- "dup_conn": "Duplicate Connection",
- "remove_conn": "Delete Connection",
- "edit_conn": "Edit Connection Config",
- "edit_conn_group": "Edit Connection Group",
- "rename_conn_group": "Rename Connection Group",
- "remove_conn_group": "Delete Connection Group",
- "no_group": "No Group",
- "copy_path": "Copy Path",
- "batch_delete": "Batch Delete",
- "copy_key": "Copy Key",
- "remove_key": "Remove Key",
- "new_conn_title": "New Connection",
- "edit_conn_title": "Edit Connection",
- "general": "General",
- "advanced": "Advanced",
- "editor": "Editor",
- "conn_group": "Group",
- "group_name": "Group Name",
- "conn_name": "Name",
- "conn_addr": "Address",
- "conn_usr": "Username",
- "conn_pwd": "Password",
- "conn_name_tip": "Connection name",
- "conn_addr_tip": "Redis server host",
- "conn_usr_tip": "(Optional) Redis server username",
- "conn_pwd_tip": "(Optional) Redis server authentication password (Redis > 6.0)",
- "conn_test": "Test Connection",
- "conn_test_succ": "Successful connection to redis-server",
- "conn_test_fail": "Fail Connection",
- "conn_advn_filter": "Default Filter",
- "conn_advn_filter_tip": "Pattern which defines loaded keys from redis server",
- "conn_advn_separator": "Key Separator",
- "conn_advn_separator_tip": "Separator used for key path item",
- "conn_advn_conn_timeout": "Connection Timeout",
- "conn_advn_exec_timeout": "Execution Timeout",
- "conn_advn_mark_color": "Mark Color",
- "second": "Second(s)",
- "new_key_name": "New Key Name",
- "new_key": "Add New Key",
- "new_field": "Add New Field",
- "overwrite_field": "Overwrite Existing Field",
- "ignore_field": "Ignore Existing Field",
- "new_item": "Add New Item",
- "insert_type": "Insert",
- "append_item": "Append",
- "prepend_item": "Prepend",
- "enter_key": "Enter Key",
- "enter_value": "Enter Value",
- "enter_field": "Enter Field Name",
- "enter_elem": "Enter Element",
- "enter_member": "Enter Member",
- "enter_score": "Enter Score",
- "element": "Element",
- "set_key_filter": "Set Key Filter",
- "filter_pattern": "Pattern",
- "filter_pattern_tip": "prefix_*: Matches key names starting with \"prefix_\".\n*_suffix: Matches key names ending with \"_suffix\".\n*pattern*: Matches key names containing \"pattern\".\nprefix_??: Matches key names starting with \"prefix_\" followed by any two characters.\n*abc*: Matches key names containing \"abc\" at any position.",
- "key": "Key",
- "value": "Value",
- "field": "Field",
- "action": "Action",
- "type": "Type",
- "score": "Score",
- "order_no": "Order",
- "preferences": "Preferences",
- "theme": "Theme",
- "theme_light": "Light",
- "theme_dark": "Dark",
- "theme_auto": "Auto",
- "language": "Language",
- "font": "Font",
- "font_size": "Font Size",
- "restore_defaults": "Restore Defaults",
- "proxy": "Proxy",
- "use_system_proxy": "Use system proxy",
- "use_system_proxy_http": "Use system proxy only for HTTP(S) request",
- "update": "Update",
- "auto_check_update": "Automatically check for updates",
- "set_ttl": "Set Key TTL",
- "persist_key": "Persist Key",
- "copy_succ": "Value Copied !",
- "save_value_succ": "Value Saved !",
- "handle_succ": "Success!",
- "reload_succ": "Reloaded!",
- "field_required": "This item should not be blank",
- "spec_field_required": "\"{key}\" should not be blank",
- "illegal_characters": "Include illegal characters",
- "nonexist_tab_content": "Selected key does not exist. Please retry",
- "empty_server_content": "Select and open a connection from the left",
- "empty_server_list": "No redis server",
- "reload_when_succ": "Reload immediately after success",
- "server": "Server",
- "browser": "Browser",
- "log": "Log",
- "help": "Help",
- "check_update": "Check for Updates...",
- "auto_refresh": "Auto Refresh",
- "new_version_tip": "A new version is available. Download now?",
- "no_update": "You're update to date",
- "refresh": "Refresh",
- "uptime": "Uptime",
- "connected_clients": "Clients",
- "total_keys": "Keys",
- "memory_used": "Memory",
- "unit_day": "D",
- "unit_hour": "H",
- "unit_minute": "M",
- "all_info": "All Info",
- "all": "All",
- "launch_log": "Launch Log",
- "filter_server": "Filter Server",
- "filter_keyword": "Filter Keyword",
- "clean_log": "Clean Launch Log",
- "confirm_clean_log": "Confirm clean launch log",
- "exec_time": "Exec Time",
- "cmd": "Command",
- "cost_time": "Cost"
+ "common": {
+ "confirm": "Confirm",
+ "cancel": "Cancel",
+ "success": "Success",
+ "warning": "Warning",
+ "error": "Error",
+ "save": "Save",
+ "none": "None",
+ "second": "Second(s)",
+ "unit_day": "D",
+ "unit_hour": "H",
+ "unit_minute": "M",
+ "all": "All",
+ "key": "Key",
+ "value": "Value",
+ "field": "Field"
+ },
+ "preferences": {
+ "name": "Preferences",
+ "restore_defaults": "Restore Defaults",
+ "general": {
+ "name": "General",
+ "theme": "Theme",
+ "theme_light": "Light",
+ "theme_dark": "Dark",
+ "theme_auto": "Auto",
+ "language": "Language",
+ "system_lang": "Use System Language",
+ "default": "Default",
+ "font": "Font",
+ "font_size": "Font Size",
+ "proxy": "Proxy",
+ "use_system_proxy": "Use system proxy",
+ "use_system_proxy_http": "Use system proxy only for HTTP(S) request",
+ "update": "Update",
+ "auto_check_update": "Automatically check for updates"
+ },
+ "editor": {
+ "name": "Editor"
+ }
+ },
+ "interface": {
+ "new_conn": "Add New Connection",
+ "new_group": "Add New Group",
+ "disconnect_all": "Disconnect all",
+ "status": "Status",
+ "filter": "Filter",
+ "sort_conn": "Sort Connections",
+ "open_db": "Open Database",
+ "close_db": "Close Database",
+ "filter_key": "Filter Key",
+ "disconnect": "Disconnect",
+ "dup_conn": "Duplicate Connection",
+ "remove_conn": "Delete Connection",
+ "edit_conn": "Edit Connection Config",
+ "edit_conn_group": "Edit Connection Group",
+ "rename_conn_group": "Rename Connection Group",
+ "remove_conn_group": "Delete Connection Group",
+ "ttl": "TTL",
+ "forever": "Forever",
+ "rename_key": "Rename Key",
+ "delete_key": "Delete Key",
+ "batch_delete_key": "Batch Delete Keys",
+ "copy_value": "Copy Value",
+ "edit_value": "Edit Value",
+ "save_update": "Save Update",
+ "score_filter_tip": "Support operator list below:\n= equal\n!= not equal\n> greater than\n>= greater than or equal to\n< less than\n<= less than or equal to\nfor example you want to filter results which greater than 3, input: >3",
+ "add_row": "Add Row",
+ "edit_row": "Edit Row",
+ "delete_row": "Delete Row",
+ "search": "Search",
+ "filter_field": "Filter Field",
+ "filter_value": "Filter Value",
+ "view_as": "View As",
+ "reload": "Reload",
+ "open_connection": "Open Connection",
+ "batch_delete": "Batch Delete",
+ "copy_path": "Copy Path",
+ "copy_key": "Copy Key",
+ "remove_key": "Remove Key",
+ "new_key": "Add New Key",
+ "nonexist_tab_content": "Selected key does not exist. Please retry",
+ "empty_server_content": "Select and open a connection from the left",
+ "empty_server_list": "No redis server",
+ "action": "Action",
+ "type": "Type",
+ "score": "Score"
+ },
+ "ribbon": {
+ "server": "Server",
+ "browser": "Browser",
+ "log": "Log"
+ },
+ "dialogue": {
+ "close_confirm": "Confirm close this tab and connection",
+ "edit_close_confirm": "Please close the relevant connections before editing. Do you want to continue?",
+ "opening_connection": "Opening Connection...",
+ "remove_tip": "{type} \"{name}\" will be deleted",
+ "remove_group_tip": "Group \"{name}\" and all connections in it will be deleted",
+ "delete_key_succ": "\"{key}\" has been deleted",
+ "save_value_succ": "Value Saved !",
+ "copy_succ": "Value Copied !",
+ "handle_succ": "Success!",
+ "reload_succ": "Reloaded!",
+ "field_required": "This item should not be blank",
+ "spec_field_required": "\"{key}\" should not be blank",
+ "illegal_characters": "Include illegal characters",
+ "connection": {
+ "new_title": "New Connection",
+ "edit_title": "Edit Connection",
+ "general": "General",
+ "advanced": "Advanced",
+ "no_group": "No Group",
+ "group": "Group",
+ "conn_name": "Name",
+ "addr": "Address",
+ "usr": "Username",
+ "pwd": "Password",
+ "name_tip": "Connection name",
+ "addr_tip": "Redis server host",
+ "usr_tip": "(Optional) Redis server username",
+ "pwd_tip": "(Optional) Redis server authentication password (Redis > 6.0)",
+ "test": "Test Connection",
+ "test_succ": "Successful connection to redis-server",
+ "test_fail": "Fail Connection",
+ "advn_filter": "Default Filter",
+ "advn_filter_tip": "Pattern which defines loaded keys from redis server",
+ "advn_separator": "Key Separator",
+ "advn_separator_tip": "Separator used for key path item",
+ "advn_conn_timeout": "Connection Timeout",
+ "advn_exec_timeout": "Execution Timeout",
+ "advn_mark_color": "Mark Color"
+ },
+ "group": {
+ "name": "Group Name",
+ "rename": "Rename Group",
+ "new": "New Group"
+ },
+ "key": {
+ "new": "New Key",
+ "new_name": "New Key Name",
+ "persist_key": "Persist Key",
+ "server": "Belong",
+ "db_index": "Database Index",
+ "key_expression": "Key Expression",
+ "affected_key": "Affected Keys",
+ "show_affected_key": "Show Affected Keys",
+ "confirm_delete_key": "Confirm Delete {num} Keys"
+ },
+ "field": {
+ "new": "Add New Field",
+ "new_item": "Add New Item",
+ "overwrite_field": "Overwrite Existing Field",
+ "ignore_field": "Ignore Existing Field",
+ "insert_type": "Insert",
+ "append_item": "Append",
+ "prepend_item": "Prepend",
+ "enter_key": "Enter Key",
+ "enter_value": "Enter Value",
+ "enter_field": "Enter Field Name",
+ "enter_elem": "Enter Element",
+ "enter_member": "Enter Member",
+ "enter_score": "Enter Score",
+ "element": "Element",
+ "reload_when_succ": "Reload immediately after success"
+ },
+ "filter": {
+ "set_key_filter": "Set Key Filter",
+ "filter_pattern": "Pattern",
+ "filter_pattern_tip": "prefix_*: Matches key names starting with \"prefix_\".\n*_suffix: Matches key names ending with \"_suffix\".\n*pattern*: Matches key names containing \"pattern\".\nprefix_??: Matches key names starting with \"prefix_\" followed by any two characters.\n*abc*: Matches key names containing \"abc\" at any position."
+ },
+ "ttl": {
+ "title": "Set Key TTL"
+ },
+ "upgrade": {
+ "new_version_tip": "A new version is available. Download now?",
+ "no_update": "You're update to date"
+ }
+ },
+ "menu": {
+ "preferences": "Preferences",
+ "help": "Help",
+ "check_update": "Check for Updates..."
+ },
+ "log": {
+ "launch_log": "Launch Log",
+ "filter_server": "Filter Server",
+ "filter_keyword": "Filter Keyword",
+ "clean_log": "Clean Launch Log",
+ "confirm_clean_log": "Confirm clean launch log",
+ "exec_time": "Exec Time",
+ "server": "Server",
+ "cmd": "Command",
+ "cost_time": "Cost",
+ "refresh": "Refresh"
+ },
+ "status": {
+ "uptime": "Uptime",
+ "connected_clients": "Clients",
+ "total_keys": "Keys",
+ "memory_used": "Memory",
+ "all_info": "All Info",
+ "refresh": "Refresh",
+ "auto_refresh": "Auto Refresh"
+ }
}
diff --git a/frontend/src/langs/zh-cn.json b/frontend/src/langs/zh-cn.json
index 347833d..caf95b0 100644
--- a/frontend/src/langs/zh-cn.json
+++ b/frontend/src/langs/zh-cn.json
@@ -1,168 +1,209 @@
{
"name": "简体中文",
- "system_lang": "使用系统语言",
- "confirm": "确认",
- "cancel": "取消",
- "success": "成功",
- "warning": "警告",
- "error": "错误",
- "save": "保存",
- "none": "无",
- "default": "默认",
- "new_conn": "添加新连接",
- "new_group": "添加新分组",
- "rename_group": "重命名分组",
- "disconnect_all": "断开所有连接",
- "status": "状态",
- "filter": "筛选",
- "sort_conn": "调整连接顺序",
- "close_confirm": "是否关闭当前连接",
- "edit_close_confirm": "编辑前需要关闭相关连接,是否继续",
- "opening_connection": "正在打开连接...",
- "remove_tip": "{type} \"{name}\" 将会被删除",
- "remove_group_tip": "分组 \"{name}\"及其所有连接将会被删除",
- "ttl": "TTL",
- "forever": "永久",
- "rename_key": "重命名键",
- "delete_key": "删除键",
- "batch_delete_key": "批量删除键",
- "db_index": "数据库编号",
- "key_expression": "键名表达式",
- "affected_key": "受影响的键名",
- "show_affected_key": "查看受影响的键名",
- "confirm_delete_key": "确认删除{num}个键",
- "delete_key_succ": "{key} 已被删除",
- "copy_value": "复制值",
- "edit_value": "修改值",
- "save_update": "保存修改",
- "score_filter_tip": "支持如下运算符比较匹配范围\n=:等于\n!=:不等于\n>:大于\n<:小于\n>=:大于等于\n<=:小于等于\n如查询分值大于3的结果,则输入:>3",
- "add_row": "插入行",
- "edit_row": "编辑行",
- "delete_row": "删除行",
- "search": "搜索",
- "filter_field": "筛选字段",
- "filter_value": "筛选值",
- "view_as": "查看方式",
- "reload": "重新载入",
- "open_connection": "打开连接",
- "open_db": "打开数据库",
- "close_db": "关闭数据库",
- "filter_key": "过滤键",
- "disconnect": "断开连接",
- "dup_conn": "复制连接",
- "remove_conn": "删除连接",
- "edit_conn": "编辑连接配置",
- "edit_conn_group": "编辑连接分组",
- "rename_conn_group": "重命名连接分组",
- "remove_conn_group": "删除连接分组",
- "no_group": "无分组",
- "copy_path": "复制路径",
- "batch_delete": "批量删除键",
- "copy_key": "复制键名",
- "remove_key": "删除键",
- "new_conn_title": "新建连接",
- "edit_conn_title": "编辑连接",
- "general": "常规配置",
- "advanced": "高级配置",
- "editor": "编辑器",
- "conn_group": "分组",
- "group_name": "分组名",
- "conn_name": "连接名",
- "conn_addr": "连接地址",
- "conn_usr": "用户名",
- "conn_pwd": "密码",
- "conn_name_tip": "连接名",
- "conn_addr_tip": "Redis服务地址",
- "conn_usr_tip": "(可选)Redis服务授权用户名",
- "conn_pwd_tip": "(可选)Redis服务授权密码 (Redis > 6.0)",
- "conn_test": "测试连接",
- "conn_test_succ": "成功连接到Redis服务器",
- "conn_test_fail": "连接失败",
- "conn_advn_filter": "默认过滤",
- "conn_advn_filter_tip": "需要加载的键名表达式",
- "conn_advn_separator": "键分隔符",
- "conn_advn_separator_tip": "键名路径分隔符",
- "conn_advn_conn_timeout": "连接超时",
- "conn_advn_exec_timeout": "执行超时",
- "conn_advn_mark_color": "标记颜色",
- "second": "秒",
- "new_key_name": "新键名",
- "new_key": "添加新键",
- "new_field": "添加新字段",
- "overwrite_field": "覆盖同名字段",
- "ignore_field": "忽略同名字段",
- "new_item": "添加新元素",
- "insert_type": "插入类型",
- "append_item": "尾部追加",
- "prepend_item": "插入头部",
- "enter_key": "输入键名",
- "enter_value": "输入值",
- "enter_field": "输入字段名",
- "enter_elem": "输入新元素",
- "enter_member": "输入成员",
- "enter_score": "输入分值",
- "element": "元素",
- "set_key_filter": "设置键过滤器",
- "filter_pattern": "过滤表达式",
- "filter_pattern_tip": "prefix_*:匹配以\"prefix_\"开头的键名\n*_suffix:匹配以\"_suffix\"结尾的键名\n*pattern*:匹配包含\"pattern\"的键名\nprefix_??:匹配以\"prefix_\"开头后跟两个任意字符的键名\n*abc*:匹配包含\"abc\"的任意位置的键名",
- "key": "键",
- "value": "值",
- "field": "字段",
- "action": "操作",
- "type": "类型",
- "score": "分值",
- "order_no": "序号",
- "preferences": "偏好设置",
- "theme": "主题",
- "theme_light": "浅色",
- "theme_dark": "深色",
- "theme_auto": "自动",
- "language": "语言",
- "font": "字体",
- "font_size": "字体尺寸",
- "restore_defaults": "重置为默认",
- "proxy": "代理",
- "use_system_proxy": "使用系统代理",
- "use_system_proxy_http": "仅在HTTP请求时使用系统代理",
- "update": "更新",
- "auto_check_update": "自动检查更新",
- "set_ttl": "设置键存活时间",
- "persist_key": "持久化键",
- "copy_succ": "已复制到剪切板",
- "save_value_succ": "已保存值",
- "handle_succ": "操作成功",
- "reload_succ": "已重新载入",
- "field_required": "此项不能为空",
- "spec_field_required": "{key} 不能为空",
- "illegal_characters": "包含非法字符",
- "nonexist_tab_content": "所选键不存在,请尝试刷新重试",
- "empty_server_content": "可以从左边选择并打开连接",
- "empty_server_list": "还没添加Redis服务器",
- "reload_when_succ": "操作成功后立即重新加载",
- "server": "服务器",
- "browser": "浏览器",
- "log": "日志",
- "help": "帮助",
- "check_update": "检查更新...",
- "auto_refresh": "自动刷新",
- "new_version_tip": "有可用的新版本,是否立即下载",
- "no_update": "当前已是最新版",
- "refresh": "立即刷新",
- "uptime": "运行时间",
- "connected_clients": "已连客户端",
- "total_keys": "键总数",
- "memory_used": "内存使用",
- "unit_day": "天",
- "unit_hour": "小时",
- "unit_minute": "分钟",
- "all_info": "全部信息",
- "all": "全部",
- "launch_log": "运行日志",
- "filter_server": "筛选服务器",
- "filter_keyword": "筛选关键字",
- "clean_log": "清空运行日志",
- "confirm_clean_log": "确定清空运行日志",
- "exec_time": "执行时间",
- "cmd": "命令",
- "cost_time": "耗时"
+ "common": {
+ "confirm": "确认",
+ "cancel": "取消",
+ "success": "成功",
+ "warning": "警告",
+ "error": "错误",
+ "save": "保存",
+ "none": "无",
+ "second": "秒",
+ "unit_day": "天",
+ "unit_hour": "小时",
+ "unit_minute": "分钟",
+ "all": "全部",
+ "key": "键",
+ "value": "值",
+ "field": "字段"
+ },
+ "preferences": {
+ "name": "偏好设置",
+ "restore_defaults": "重置为默认",
+ "general": {
+ "name": "常规配置",
+ "theme": "主题",
+ "theme_light": "浅色",
+ "theme_dark": "深色",
+ "theme_auto": "自动",
+ "language": "语言",
+ "system_lang": "使用系统语言",
+ "default": "默认",
+ "font": "字体",
+ "font_size": "字体尺寸",
+ "proxy": "代理",
+ "use_system_proxy": "使用系统代理",
+ "use_system_proxy_http": "仅在HTTP请求时使用系统代理",
+ "update": "更新",
+ "auto_check_update": "自动检查更新"
+ },
+ "editor": {
+ "name": "编辑器"
+ }
+ },
+ "interface": {
+ "new_conn": "添加新连接",
+ "new_group": "添加新分组",
+ "disconnect_all": "断开所有连接",
+ "status": "状态",
+ "filter": "筛选",
+ "sort_conn": "调整连接顺序",
+ "new_conn_title": "新建连接",
+ "open_db": "打开数据库",
+ "close_db": "关闭数据库",
+ "filter_key": "过滤键",
+ "disconnect": "断开连接",
+ "dup_conn": "复制连接",
+ "remove_conn": "删除连接",
+ "edit_conn": "编辑连接配置",
+ "edit_conn_group": "编辑连接分组",
+ "rename_conn_group": "重命名连接分组",
+ "remove_conn_group": "删除连接分组",
+ "ttl": "TTL",
+ "forever": "永久",
+ "rename_key": "重命名键",
+ "delete_key": "删除键",
+ "batch_delete_key": "批量删除键",
+ "copy_value": "复制值",
+ "edit_value": "修改值",
+ "save_update": "保存修改",
+ "score_filter_tip": "支持如下运算符比较匹配范围\n=:等于\n!=:不等于\n>:大于\n<:小于\n>=:大于等于\n<=:小于等于\n如查询分值大于3的结果,则输入:>3",
+ "add_row": "插入行",
+ "edit_row": "编辑行",
+ "delete_row": "删除行",
+ "search": "搜索",
+ "filter_field": "筛选字段",
+ "filter_value": "筛选值",
+ "view_as": "查看方式",
+ "reload": "重新载入",
+ "open_connection": "打开连接",
+ "batch_delete": "批量删除键",
+ "copy_path": "复制路径",
+ "copy_key": "复制键名",
+ "remove_key": "删除键",
+ "new_key": "添加新键",
+ "nonexist_tab_content": "所选键不存在,请尝试刷新重试",
+ "empty_server_content": "可以从左边选择并打开连接",
+ "empty_server_list": "还没添加Redis服务器",
+ "action": "操作",
+ "type": "类型",
+ "score": "分值"
+ },
+ "ribbon": {
+ "server": "服务器",
+ "browser": "浏览器",
+ "log": "日志"
+ },
+ "dialogue": {
+ "close_confirm": "是否关闭当前连接",
+ "edit_close_confirm": "编辑前需要关闭相关连接,是否继续",
+ "opening_connection": "正在打开连接...",
+ "remove_tip": "{type} \"{name}\" 将会被删除",
+ "remove_group_tip": "分组 \"{name}\"及其所有连接将会被删除",
+ "delete_key_succ": "{key} 已被删除",
+ "save_value_succ": "已保存值",
+ "copy_succ": "已复制到剪切板",
+ "handle_succ": "操作成功",
+ "reload_succ": "已重新载入",
+ "field_required": "此项不能为空",
+ "spec_field_required": "{key} 不能为空",
+ "illegal_characters": "包含非法字符",
+ "connection": {
+ "new_title": "新建连接",
+ "edit_title": "编辑连接",
+ "general": "常规配置",
+ "advanced": "高级配置",
+ "no_group": "无分组",
+ "group": "分组",
+ "conn_name": "连接名",
+ "addr": "连接地址",
+ "usr": "用户名",
+ "pwd": "密码",
+ "name_tip": "连接名",
+ "addr_tip": "Redis服务地址",
+ "usr_tip": "(可选)Redis服务授权用户名",
+ "pwd_tip": "(可选)Redis服务授权密码 (Redis > 6.0)",
+ "test": "测试连接",
+ "test_succ": "成功连接到Redis服务器",
+ "test_fail": "连接失败",
+ "advn_filter": "默认过滤",
+ "advn_filter_tip": "需要加载的键名表达式",
+ "advn_separator": "键分隔符",
+ "advn_separator_tip": "键名路径分隔符",
+ "advn_conn_timeout": "连接超时",
+ "advn_exec_timeout": "执行超时",
+ "advn_mark_color": "标记颜色"
+ },
+ "group": {
+ "name": "分组名",
+ "rename": "重命名分组",
+ "new": "添加新分组"
+ },
+ "key": {
+ "new": "添加新键",
+ "new_name": "新键名",
+ "persist_key": "持久化键",
+ "server": "所属连接",
+ "db_index": "数据库编号",
+ "key_expression": "键名表达式",
+ "affected_key": "受影响的键名",
+ "show_affected_key": "查看受影响的键名",
+ "confirm_delete_key": "确认删除{num}个键"
+ },
+ "field": {
+ "new": "添加新字段",
+ "new_item": "添加新元素",
+ "overwrite_field": "覆盖同名字段",
+ "ignore_field": "忽略同名字段",
+ "insert_type": "插入类型",
+ "append_item": "尾部追加",
+ "prepend_item": "插入头部",
+ "enter_key": "输入键名",
+ "enter_value": "输入值",
+ "enter_field": "输入字段名",
+ "enter_elem": "输入新元素",
+ "enter_member": "输入成员",
+ "enter_score": "输入分值",
+ "element": "元素",
+ "reload_when_succ": "操作成功后立即重新加载"
+ },
+ "filter": {
+ "set_key_filter": "设置键过滤器",
+ "filter_pattern": "过滤表达式",
+ "filter_pattern_tip": "prefix_*:匹配以\"prefix_\"开头的键名\n*_suffix:匹配以\"_suffix\"结尾的键名\n*pattern*:匹配包含\"pattern\"的键名\nprefix_??:匹配以\"prefix_\"开头后跟两个任意字符的键名\n*abc*:匹配包含\"abc\"的任意位置的键名"
+ },
+ "ttl": {
+ "title": "设置键存活时间"
+ },
+ "upgrade":{
+ "new_version_tip": "有可用的新版本,是否立即下载",
+ "no_update": "当前已是最新版"
+ }
+ },
+ "menu": {
+ "preferences": "偏好设置",
+ "help": "帮助",
+ "check_update": "检查更新..."
+ },
+ "log": {
+ "launch_log": "运行日志",
+ "filter_server": "筛选服务器",
+ "filter_keyword": "筛选关键字",
+ "clean_log": "清空运行日志",
+ "confirm_clean_log": "确定清空运行日志",
+ "exec_time": "执行时间",
+ "server": "服务器",
+ "cmd": "命令",
+ "cost_time": "耗时",
+ "refresh": "立即刷新"
+ },
+ "status": {
+ "uptime": "运行时间",
+ "connected_clients": "已连客户端",
+ "total_keys": "键总数",
+ "memory_used": "内存使用",
+ "all_info": "全部信息",
+ "refresh": "立即刷新",
+ "auto_refresh": "自动刷新"
+ }
}
diff --git a/frontend/src/main.js b/frontend/src/main.js
index df27c86..4036780 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -27,7 +27,7 @@ async function setupApp() {
try {
const content = err.toString()
$notification.error({
- title: i18n.global.t('error'),
+ title: i18n.global.t('common.error'),
content,
// meta: err.stack,
})
diff --git a/frontend/src/stores/preferences.js b/frontend/src/stores/preferences.js
index a167fe9..a29c4a4 100644
--- a/frontend/src/stores/preferences.js
+++ b/frontend/src/stores/preferences.js
@@ -56,15 +56,15 @@ const usePreferencesStore = defineStore('preferences', {
return [
{
value: 'light',
- label: i18nGlobal.t('theme_light'),
+ label: i18nGlobal.t('preferences.general.theme_light'),
},
{
value: 'dark',
- label: i18nGlobal.t('theme_dark'),
+ label: i18nGlobal.t('preferences.general.theme_dark'),
},
{
value: 'auto',
- label: i18nGlobal.t('theme_auto'),
+ label: i18nGlobal.t('preferences.general.theme_auto'),
},
]
},
@@ -80,7 +80,7 @@ const usePreferencesStore = defineStore('preferences', {
}))
options.splice(0, 0, {
value: 'auto',
- label: i18nGlobal.t('system_lang'),
+ label: i18nGlobal.t('preferences.general.system_lang'),
})
return options
},
@@ -97,7 +97,7 @@ const usePreferencesStore = defineStore('preferences', {
}))
option.splice(0, 0, {
value: '',
- label: i18nGlobal.t('default'),
+ label: i18nGlobal.t('preferences.general.default'),
path: '',
})
return option
@@ -252,7 +252,7 @@ const usePreferencesStore = defineStore('preferences', {
if (success) {
const { version, latest, pageUrl } = data
if (latest > version) {
- $dialog.warning(i18nGlobal.t('new_version_tip'), () => {
+ $dialog.warning(i18nGlobal.t('dialogue.upgrade.new_version_tip'), () => {
BrowserOpenURL(pageUrl)
})
return
@@ -260,7 +260,7 @@ const usePreferencesStore = defineStore('preferences', {
}
if (manual) {
- $message.info(i18nGlobal.t('no_update'))
+ $message.info(i18nGlobal.t('dialogue.upgrade.no_update'))
}
} finally {
if (msgRef != null) {
diff --git a/frontend/src/utils/discrete.js b/frontend/src/utils/discrete.js
index b2019fe..b502b4f 100644
--- a/frontend/src/utils/discrete.js
+++ b/frontend/src/utils/discrete.js
@@ -30,7 +30,7 @@ function setupNotification(notification) {
return {
error: (content, option = {}) => {
option.content = content
- option.title = option.title || i18nGlobal.t('error')
+ option.title = option.title || i18nGlobal.t('common.error')
return notification.error(option)
},
info: (content, option = {}) => {
@@ -39,12 +39,12 @@ function setupNotification(notification) {
},
success: (content, option = {}) => {
option.content = content
- option.title = option.title || i18nGlobal.t('success')
+ option.title = option.title || i18nGlobal.t('common.success')
return notification.success(option)
},
warning: (content, option = {}) => {
option.content = content
- option.title = option.title || i18nGlobal.t('warning')
+ option.title = option.title || i18nGlobal.t('common.warning')
return notification.warning(option)
},
}
@@ -54,13 +54,13 @@ function setupDialog(dialog) {
return {
warning: (content, onConfirm) => {
return dialog.warning({
- title: i18nGlobal.t('warning'),
+ title: i18nGlobal.t('common.warning'),
content: content,
closable: false,
autoFocus: false,
transformOrigin: 'center',
- positiveText: i18nGlobal.t('confirm'),
- negativeText: i18nGlobal.t('cancel'),
+ positiveText: i18nGlobal.t('common.confirm'),
+ negativeText: i18nGlobal.t('common.cancel'),
onPositiveClick: () => {
onConfirm && onConfirm()
},