From 311a229ab7b7027c08133bdc86249fc775fac456 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 23 Oct 2025 13:27:26 +0800 Subject: [PATCH] style: change biome sort order to natural and clean up i18next config - Update biome.jsonc to use natural sort order for keys - Clean up i18next.config.ts formatting and remove trailing newline --- biome.jsonc | 2 +- i18next.config.ts | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index 03e93ed0a3..5cbd5458e6 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -8,7 +8,7 @@ "useSortedKeys": { "level": "on", "options": { - "sortOrder": "lexicographic" + "sortOrder": "natural" } } } diff --git a/i18next.config.ts b/i18next.config.ts index 9556bb67bc..2178cfd88e 100644 --- a/i18next.config.ts +++ b/i18next.config.ts @@ -1,13 +1,9 @@ -import { defineConfig } from 'i18next-cli'; +import { defineConfig } from 'i18next-cli' export default defineConfig({ - locales: [ - "en-us", - "zh-cn", - "zh-tw" - ], + locales: ['en-us', 'zh-cn', 'zh-tw'], extract: { - input: "src/renderer/src/**/*.{ts,tsx}", - output: "src/renderer/src/i18n/locales/{{language}}.json" + input: 'src/renderer/src/**/*.{ts,tsx}', + output: 'src/renderer/src/i18n/locales/{{language}}.json' } -}); \ No newline at end of file +})