@minto-ai/tools 1.0.63 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/vi.d.ts +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -3
- package/package.json +1 -1
package/dist/i18n/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 越南语语言包
|
|
3
|
+
*/
|
|
4
|
+
export declare const vi: {
|
|
5
|
+
'audio.permission.no_user_interaction': string;
|
|
6
|
+
'audio.permission.autoplay_blocked': string;
|
|
7
|
+
'audio.permission.autoplay_unknown_error': string;
|
|
8
|
+
'audio.permission.secure_context_error': string;
|
|
9
|
+
'audio.permission.permission_denied_permanently': string;
|
|
10
|
+
'audio.permission.media_devices_api_unavailable': string;
|
|
11
|
+
'audio.permission.not_allowed_error': string;
|
|
12
|
+
'audio.permission.not_readable_error': string;
|
|
13
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * from './wrker';
|
|
|
14
14
|
declare const _default: {
|
|
15
15
|
/**
|
|
16
16
|
* 设置语言
|
|
17
|
-
* @param locale - 语言代码,支持 'zh-cn', 'zh-tw', 'en', 'ms', 'ar', 'th'
|
|
17
|
+
* @param locale - 语言代码,支持 'zh-cn', 'zh-tw', 'en', 'ms', 'ar', 'th'、'vi'
|
|
18
18
|
*/
|
|
19
19
|
locale(locale: string): void;
|
|
20
20
|
/**
|
package/dist/index.js
CHANGED
|
@@ -13094,7 +13094,7 @@ var I18n = /* @__PURE__ */ function() {
|
|
|
13094
13094
|
value: (
|
|
13095
13095
|
/**
|
|
13096
13096
|
* 设置当前语言
|
|
13097
|
-
* @param locale - 语言代码,如 'zh-cn', 'en', 'ms', 'ar', 'zh-tw', 'th'
|
|
13097
|
+
* @param locale - 语言代码,如 'zh-cn', 'en', 'ms', 'ar', 'zh-tw', 'th', 'vi'
|
|
13098
13098
|
*/
|
|
13099
13099
|
function setLocale(locale2) {
|
|
13100
13100
|
this.currentLocale = locale2;
|
|
@@ -13204,6 +13204,17 @@ var th = {
|
|
|
13204
13204
|
"audio.permission.microphone_unknown_error": "ข้อผิดพลาดการอนุญาตไมโครโฟนที่ไม่ทราบสาเหตุ",
|
|
13205
13205
|
"audio.permission.microphone_timeout_error": "การอนุญาตไมโครโฟนหมดเวลา กรุณาตรวจสอบการตั้งค่าการอนุญาตอุปกรณ์หรือลองใหม่อีกครั้ง"
|
|
13206
13206
|
};
|
|
13207
|
+
var vi = {
|
|
13208
|
+
// 音频权限错误消息
|
|
13209
|
+
"audio.permission.no_user_interaction": "Yêu cầu tương tác người dùng để phát âm thanh",
|
|
13210
|
+
"audio.permission.autoplay_blocked": "Tự động phát bị khóa bởi trình duyệt",
|
|
13211
|
+
"audio.permission.autoplay_unknown_error": "Lỗi phát âm thanh tự động không rõ nguyên nhân",
|
|
13212
|
+
"audio.permission.secure_context_error": "Yêu cầu không thể thực hiện trong môi trường không an toàn (HTTPS)",
|
|
13213
|
+
"audio.permission.permission_denied_permanently": "Yêu cầu quyền âm thanh bị từ chối vĩnh viễn. Vui lòng kích hoạt quyền âm thanh trong cài đặt trình duyệt.",
|
|
13214
|
+
"audio.permission.media_devices_api_unavailable": "API MediaDevices không khả dụng",
|
|
13215
|
+
"audio.permission.not_allowed_error": "Yêu cầu quyền âm thanh bị từ chối",
|
|
13216
|
+
"audio.permission.not_readable_error": "Trình phát âm thanh đang được sử dụng bởi ứng dụng khác"
|
|
13217
|
+
};
|
|
13207
13218
|
var zhCn = {
|
|
13208
13219
|
// 音频权限错误消息
|
|
13209
13220
|
"audio.permission.no_user_interaction": "需要用户交互才能播放音频",
|
|
@@ -13243,9 +13254,10 @@ function setupI18n() {
|
|
|
13243
13254
|
i18n.registerMessages("ms", ms);
|
|
13244
13255
|
i18n.registerMessages("ar", ar);
|
|
13245
13256
|
i18n.registerMessages("th", th);
|
|
13257
|
+
i18n.registerMessages("vi", vi);
|
|
13246
13258
|
if (typeof navigator !== "undefined") {
|
|
13247
13259
|
var browserLang = navigator.language || "zh-cn";
|
|
13248
|
-
var supportedLangs = ["zh-cn", "zh-tw", "en", "ms", "ar", "th"];
|
|
13260
|
+
var supportedLangs = ["zh-cn", "zh-tw", "en", "ms", "ar", "th", "vi"];
|
|
13249
13261
|
var matchedLang = supportedLangs.find(function(lang) {
|
|
13250
13262
|
return browserLang.toLowerCase().startsWith(lang.toLowerCase());
|
|
13251
13263
|
});
|
|
@@ -16634,7 +16646,7 @@ setupI18n();
|
|
|
16634
16646
|
const index = {
|
|
16635
16647
|
/**
|
|
16636
16648
|
* 设置语言
|
|
16637
|
-
* @param locale - 语言代码,支持 'zh-cn', 'zh-tw', 'en', 'ms', 'ar', 'th'
|
|
16649
|
+
* @param locale - 语言代码,支持 'zh-cn', 'zh-tw', 'en', 'ms', 'ar', 'th'、'vi'
|
|
16638
16650
|
*/
|
|
16639
16651
|
locale: function locale(_locale) {
|
|
16640
16652
|
i18n.setLocale(_locale);
|