mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-06-20 13:00:39 +00:00
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:
+3
-14
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user