fix: intelligence

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-09-12 15:50:41 +08:00
parent bda3319e87
commit 8b889d1307
4 changed files with 14 additions and 7 deletions
+11 -5
View File
@@ -12,9 +12,6 @@
// ["tw\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
["tw`([^`]*)`", "([^`]*)"]
],
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{namespaces}/{locale}.json",
"i18n-ally.defaultNamespace": "app",
// If you do not want to autofix some rules on save
// You can put this in your user settings or workspace settings
"eslint.codeActionsOnSave.rules": [
@@ -62,6 +59,15 @@
"editor.foldingImportsByDefault": true,
"commentTranslate.hover.enabled": false,
"typescript.tsdk": "node_modules/typescript/lib",
"i18n-ally.localesPaths": ["locales"],
"i18n-ally.keystyle": "nested"
"i18n-ally.enabledFrameworks": ["i18next"],
"i18n-ally.displayLanguage": "en",
"i18n-ally.localesPaths": [
// "locales/app",
// "locales/lang",
// "locales/common",
"locales/**/*"
]
// "i18n-ally.namespace": true,
// "i18n-ally.pathMatcher": "{namespace}/{locale}.json",
// "i18n-ally.defaultNamespace": "app",
}
+1 -1
View File
@@ -1,3 +1,3 @@
{
"name": "简体中文(部分完成)"
"name": "English"
}
+1 -1
View File
@@ -1,4 +1,4 @@
import type resources from "./default-resource"
import type { defaultResources as resources } from "./default-resource"
declare module "i18next" {
interface CustomTypeOptions {
@@ -165,6 +165,7 @@ export const SettingGeneral = () => {
export const VoiceSelector = () => {
const { t } = useTranslation()
const { data } = useQuery({
queryFn: () => tipcClient?.getVoices(),
queryKey: ["voices"],