mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
Revert "Merge pull request #424 from Wangnov/feat/i18n"
This reverts commit1d915d8327, reversing changes made to009f7c84f6.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Chart } from 'chart.js/auto'
|
||||
import i18n from '@/i18n'
|
||||
|
||||
export function useChartConfig() {
|
||||
// 设置Chart.js默认配置
|
||||
@@ -52,9 +51,7 @@ export function useChartConfig() {
|
||||
label += ': '
|
||||
}
|
||||
if (context.parsed.y !== null) {
|
||||
const localeMap = { 'zh-cn': 'zh-CN', 'zh-tw': 'zh-TW', en: 'en-US' }
|
||||
const currentLocale = localeMap[i18n.global.locale.value] || 'en-US'
|
||||
label += new Intl.NumberFormat(currentLocale).format(context.parsed.y)
|
||||
label += new Intl.NumberFormat('zh-CN').format(context.parsed.y)
|
||||
}
|
||||
return label
|
||||
}
|
||||
|
||||
@@ -1,22 +1,16 @@
|
||||
import { ref } from 'vue'
|
||||
import i18n from '@/i18n'
|
||||
|
||||
const showConfirmModal = ref(false)
|
||||
const confirmOptions = ref({
|
||||
title: '',
|
||||
message: '',
|
||||
confirmText: i18n.global.t('common.confirmModal.continue'),
|
||||
cancelText: i18n.global.t('common.confirmModal.cancel')
|
||||
confirmText: '继续',
|
||||
cancelText: '取消'
|
||||
})
|
||||
const confirmResolve = ref(null)
|
||||
|
||||
export function useConfirm() {
|
||||
const showConfirm = (
|
||||
title,
|
||||
message,
|
||||
confirmText = i18n.global.t('common.confirmModal.continue'),
|
||||
cancelText = i18n.global.t('common.confirmModal.cancel')
|
||||
) => {
|
||||
const showConfirm = (title, message, confirmText = '继续', cancelText = '取消') => {
|
||||
return new Promise((resolve) => {
|
||||
confirmOptions.value = {
|
||||
title,
|
||||
|
||||
Reference in New Issue
Block a user