perf: 优化国际化

This commit is contained in:
kuaifan 2025-04-08 15:33:08 +08:00
parent a5325b84ae
commit f5dd36260f
12 changed files with 74 additions and 11 deletions

View File

@ -28729,15 +28729,15 @@
},
{
"key": "无法录音NotFoundError: Requested device not found无可用麦克风",
"zh": "",
"zh-CHT": "無法錄音:NotFoundError: Requested device not found無可用麥克風",
"en": "Unable to record: NotFoundError: Requested device not found, no available microphone",
"ko": "녹음할 수 없음: NotFoundError: 요청한 장치를 찾을 수 없음, 사용 가능한 마이크 없음",
"ja": "録音できません: NotFoundError: 要求されたデバイスが見つかりません、使用可能なマイクがありません",
"de": "Aufnahme nicht möglich: NotFoundError: Angefordertes Gerät nicht gefunden, kein verfügbares Mikrofon",
"fr": "Impossible d'enregistrer : NotFoundError : Périphérique demandé introuvable, aucun microphone disponible",
"id": "Tidak dapat merekam: NotFoundError: Perangkat yang diminta tidak ditemukan, tidak ada mikrofon yang tersedia",
"ru": "Невозможно записать: NotFoundError: Запрашиваемое устройство не найдено, нет доступного микрофона"
"zh": "无法录音:无可用麦克风",
"zh-CHT": "無法錄音:無可用麥克風",
"en": "Unable to record: No available microphone",
"ko": "녹음할 수 없음: 사용 가능한 마이크 없음",
"ja": "録音できません使用可能なマイクがありません",
"de": "Aufnahme nicht möglich: Kein verfügbares Mikrofon",
"fr": "Impossible d'enregistrer : Aucun microphone disponible",
"id": "Tidak dapat merekam: Tidak ada mikrofon yang tersedia",
"ru": "Невозможно записать: Нет доступного микрофона"
},
{
"key": "状态[(%T1)]设置错误,状态负责人[(%T2)]不在项目成员内",
@ -29423,4 +29423,4 @@
"id": "Gagal memulai sesi baru dengan AI",
"ru": "Не удалось начать новый сеанс с ИИ"
}
]
]

6
public/js/recorder/i18n/Template.js vendored Normal file
View File

@ -0,0 +1,6 @@
/*
录音
https://github.com/xiangyuecn/Recorder
src: i18n/Template.js
*/
!function(t){var a="object"==typeof window&&!!window.document;!function(t,a){"use strict";var u=t.i18n;t.CLog('Import Recorder i18n lang="Your-Language-Name"');var e={lang:u.alias["Your-Language-Name"]="your-language"};u.data["rtl$your-language"]=!1,u.data["desc$your-language"]="This file is a language translation template file. After copying and renaming, translate the text into the corresponding language. 此文件为语言翻译模板文件,复制并改名后,将文本翻译成对应语言即可。",u.put(e,["K8zP:","mSxV:","nMIy:","eS8i:","ZGlf:","7TU0:","JwCL:","VGjB:","MxX1:","XUap:","yOta:","VwPd:","vHnb:","O9P7:","LMEm:","d48C:","tlbC:","VtS4:","5tWi:","dFm8:","VtJO:","EMJq:","A5bm:","1iU7:","BTW2:","Nclz:","jBa9:","gyO5:","oWNo:","COxc:","upb8:","Q1GA:","KxE2:","xEQR:","bDOG:","IjL3:","RiWe:","hWVz:","UHvm:","Essp:","2XBl:","LG7e:","7uMV:","4Kfd:","bM5i:","gFUF:","2ghS:","ufqH:","6WmN:","kLDN:","Bp2y:","upkE:","Xq4s:","3CQP:","u8JG:","1skY:","Wv7l:","Vkbd:","QWnr:","Sz2H:","wf9t:","Dl2c:","Ltz3:","xGuI:","AxOH:","xkKd:","CxeT:","NonBrowser-1:","IllegalArgs-1:","NeedImport-2:","NotSupport-1:","8HO5:"]),u.put(e,["b2mN:","tQBv:","q12D:","TxjV:","Q7p7:","6o9Z:","yYWs:","jOi8:"]),u.put(e,["O8Gn:","5si6:","R8yz:","hB9D:","oTiy:","dIpw:"]),u.put(e,["L49q:","tsTW:","aG4z:","PIX0:"]),u.put(e,["d8YX:","29UK:","quVJ:"]),u.put(e,["Zm7L:","eGB9:","zLTa:","yhUs:","k9PT:","fT6M:","mPxH:","uY9i:","iMSm:","b9zm:"]),u.put(e,["fWsN:","uMUJ:","KmRz:","sDkA:"]),u.put(e,["gPSE:","wyw9:"]),u.put(e,["0XYC:","6DDt:","I4h4:","P6Gs:","JwDm:","qx6X:","cdOx:","S2Bu:","ZfGG:","N4ke:","IHZd:","L8sC:","TZPq:","iCFC:","wE2k:","mOaT:"]),u.put(e,["3RBa:","U212:","7qAD:","QGsW:","emJR:","GsYy:","bSFZ:"]),u.put(e,["Ikdz:","IC5Y:"]),u.put(e,["WWoj:","rCAM:","t2OF:","Z2y2:"]),u.put(e,["uXtA:","kIBu:","ha2K:","wpTL:","bpvP:","fLJD:","YnzX:","nwKR:","citA:","ecp9:","EKmS:","k7Qo:","Douz:","wqSH:","g3VX:"])}((a?window:Object).Recorder)}();

6
public/js/recorder/i18n/en-US.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/js/recorder/i18n/es.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/js/recorder/i18n/fr.js vendored Normal file

File diff suppressed because one or more lines are too long

6
public/js/recorder/i18n/zh-CN.js vendored Normal file
View File

@ -0,0 +1,6 @@
/*
录音
https://github.com/xiangyuecn/Recorder
src: i18n/zh-CN.js
*/
!function(e){var i="object"==typeof window&&!!window.document;!function(e,i){"use strict";var n=e.i18n;e.CLog('Import Recorder i18n lang="zh-CN"');n.alias["zh-CN"]="zh";n.data.rtl$zh=!1,n.data.desc$zh="Simplified Chinese, 简体中文。代码内置完整的中文支持,无需额外翻译,本文件存在的意义是方便查看支持的语言。"}((i?window:Object).Recorder)}();

View File

@ -305,7 +305,7 @@ import TransferDom from "../../../../directives/transfer-dom";
import clickoutside from "../../../../directives/clickoutside";
import longpress from "../../../../directives/longpress";
import {inputLoadAdd, inputLoadIsLast, inputLoadRemove} from "./one";
import {languageList} from "../../../../language";
import {languageList, languageName} from "../../../../language";
import {isMarkdownFormat} from "../../../../utils/markdown";
import emitter from "../../../../store/events";
@ -1095,14 +1095,17 @@ export default {
// Load recorder
if (!this.disabledRecord) {
const i18nLang = languageName === "zh" || languageName === "zh-CHT" ? "zh-CN" : "en-US";
$A.loadScriptS([
'js/recorder/recorder.mp3.min.js',
'js/recorder/lib.fft.js',
'js/recorder/frequency.histogram.view.js',
`js/recorder/i18n/${i18nLang}.js`,
]).then(_ => {
if (typeof window.Recorder !== 'function') {
return;
}
window.Recorder.i18n.lang = i18nLang
this.recordRec = window.Recorder({
type: "mp3",
bitRate: 64,

View File

@ -0,0 +1,6 @@
/*
录音
https://github.com/xiangyuecn/Recorder
src: i18n/Template.js
*/
!function(t){var a="object"==typeof window&&!!window.document;!function(t,a){"use strict";var u=t.i18n;t.CLog('Import Recorder i18n lang="Your-Language-Name"');var e={lang:u.alias["Your-Language-Name"]="your-language"};u.data["rtl$your-language"]=!1,u.data["desc$your-language"]="This file is a language translation template file. After copying and renaming, translate the text into the corresponding language. 此文件为语言翻译模板文件,复制并改名后,将文本翻译成对应语言即可。",u.put(e,["K8zP:","mSxV:","nMIy:","eS8i:","ZGlf:","7TU0:","JwCL:","VGjB:","MxX1:","XUap:","yOta:","VwPd:","vHnb:","O9P7:","LMEm:","d48C:","tlbC:","VtS4:","5tWi:","dFm8:","VtJO:","EMJq:","A5bm:","1iU7:","BTW2:","Nclz:","jBa9:","gyO5:","oWNo:","COxc:","upb8:","Q1GA:","KxE2:","xEQR:","bDOG:","IjL3:","RiWe:","hWVz:","UHvm:","Essp:","2XBl:","LG7e:","7uMV:","4Kfd:","bM5i:","gFUF:","2ghS:","ufqH:","6WmN:","kLDN:","Bp2y:","upkE:","Xq4s:","3CQP:","u8JG:","1skY:","Wv7l:","Vkbd:","QWnr:","Sz2H:","wf9t:","Dl2c:","Ltz3:","xGuI:","AxOH:","xkKd:","CxeT:","NonBrowser-1:","IllegalArgs-1:","NeedImport-2:","NotSupport-1:","8HO5:"]),u.put(e,["b2mN:","tQBv:","q12D:","TxjV:","Q7p7:","6o9Z:","yYWs:","jOi8:"]),u.put(e,["O8Gn:","5si6:","R8yz:","hB9D:","oTiy:","dIpw:"]),u.put(e,["L49q:","tsTW:","aG4z:","PIX0:"]),u.put(e,["d8YX:","29UK:","quVJ:"]),u.put(e,["Zm7L:","eGB9:","zLTa:","yhUs:","k9PT:","fT6M:","mPxH:","uY9i:","iMSm:","b9zm:"]),u.put(e,["fWsN:","uMUJ:","KmRz:","sDkA:"]),u.put(e,["gPSE:","wyw9:"]),u.put(e,["0XYC:","6DDt:","I4h4:","P6Gs:","JwDm:","qx6X:","cdOx:","S2Bu:","ZfGG:","N4ke:","IHZd:","L8sC:","TZPq:","iCFC:","wE2k:","mOaT:"]),u.put(e,["3RBa:","U212:","7qAD:","QGsW:","emJR:","GsYy:","bSFZ:"]),u.put(e,["Ikdz:","IC5Y:"]),u.put(e,["WWoj:","rCAM:","t2OF:","Z2y2:"]),u.put(e,["uXtA:","kIBu:","ha2K:","wpTL:","bpvP:","fLJD:","YnzX:","nwKR:","citA:","ecp9:","EKmS:","k7Qo:","Douz:","wqSH:","g3VX:"])}((a?window:Object).Recorder)}();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,6 @@
/*
录音
https://github.com/xiangyuecn/Recorder
src: i18n/zh-CN.js
*/
!function(e){var i="object"==typeof window&&!!window.document;!function(e,i){"use strict";var n=e.i18n;e.CLog('Import Recorder i18n lang="zh-CN"');n.alias["zh-CN"]="zh";n.data.rtl$zh=!1,n.data.desc$zh="Simplified Chinese, 简体中文。代码内置完整的中文支持,无需额外翻译,本文件存在的意义是方便查看支持的语言。"}((i?window:Object).Recorder)}();