feat(i18n): add English and Simplified Chinese
This commit is contained in:
1 parent
38c4c8b781
commit
1e9e0678ee
149 files changed
+5356
-1144
No files matched your search
@@ -1,4 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { t as translate } from '@@/i18n/runtime'
|
||||
|
||||
import { computed } from 'vue'
|
||||
import { activeTab, keepLocalVersion, retrySave, useServerVersion } from '../workspace'
|
||||
|
||||
@@ -7,24 +9,24 @@ const tab = computed(activeTab)
|
||||
|
||||
<template>
|
||||
<div v-if="tab?.status === 'conflict'" class="rm-banner warn">
|
||||
<span>这篇笔记已在其他地方被修改,与你的修改冲突。</span>
|
||||
<span>{{ translate('workspace.this_note_was_changed_elsewhere_641d37') }}</span>
|
||||
<el-button class="rm-btn" @click="useServerVersion(tab.path)">
|
||||
载入服务器版本
|
||||
{{ translate('workspace.load_server_version_b24209') }}
|
||||
</el-button>
|
||||
<el-button class="rm-btn" @click="keepLocalVersion(tab.path)">
|
||||
保留我的修改
|
||||
{{ translate('workspace.keep_my_changes_cf78a9') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-else-if="tab?.status === 'deleted'" class="rm-banner warn">
|
||||
<span>这篇笔记已在其他地方被删除或移动。</span>
|
||||
<span>{{ translate('workspace.this_note_was_deleted_or_07470b') }}</span>
|
||||
<el-button class="rm-btn" @click="keepLocalVersion(tab.path)">
|
||||
重新保存
|
||||
{{ translate('workspace.save_again_e18806') }}
|
||||
</el-button>
|
||||
</div>
|
||||
<div v-else-if="tab?.saveError" class="rm-banner error">
|
||||
<span>{{ tab.saveError }}</span>
|
||||
<el-button class="rm-btn" @click="retrySave(tab.path)">
|
||||
立即重试
|
||||
{{ translate('workspace.retry_now_77c30e') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user