Skip to content

Commit

Permalink
fix: intelligence
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Sep 12, 2024
1 parent bda3319 commit 8b889d1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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",
}
2 changes: 1 addition & 1 deletion locales/lang/zh_CN.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "简体中文(部分完成)"
"name": "English"
}
2 changes: 1 addition & 1 deletion src/renderer/src/@types/i18next.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type resources from "./default-resource"
import type { defaultResources as resources } from "./default-resource"

declare module "i18next" {
interface CustomTypeOptions {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/modules/settings/tabs/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const SettingGeneral = () => {

export const VoiceSelector = () => {
const { t } = useTranslation()

const { data } = useQuery({
queryFn: () => tipcClient?.getVoices(),
queryKey: ["voices"],
Expand Down

0 comments on commit 8b889d1

Please sign in to comment.