Update localization files for backup destinations and API client credentials

- Changed references from E3 to S3 in Russian, Simplified Chinese, and Traditional Chinese localization files.
- Updated the corresponding keys and descriptions to reflect the change in backup destination protocols.
- Improved the Vite configuration to dynamically match locale files, simplifying the code for locale handling.
This commit is contained in:
shuaiplus
2026-04-30 15:03:05 +08:00
parent 9c5fbda374
commit 0c00114cc8
19 changed files with 1232 additions and 201 deletions
+3 -14
View File
@@ -28,20 +28,9 @@ export default defineConfig({
const normalized = id.replace(/\\/g, '/');
if (normalized.includes('/src/lib/i18n/locales/en.ts')) {
return 'i18n-en';
}
if (normalized.includes('/src/lib/i18n/locales/zh-CN.ts')) {
return 'i18n-zh-CN';
}
if (normalized.includes('/src/lib/i18n/locales/zh-TW.ts')) {
return 'i18n-zh-TW';
}
if (normalized.includes('/src/lib/i18n/locales/ru.ts')) {
return 'i18n-ru';
const localeMatch = normalized.match(/\/src\/lib\/i18n\/locales\/(.+)\.ts$/);
if (localeMatch) {
return `i18n-${localeMatch[1]}`;
}
if (normalized.includes('/src/lib/i18n.ts')) {