diff --git a/webapp/packages/core-administration/src/AdministrationLocaleService.ts b/webapp/packages/core-administration/src/AdministrationLocaleService.ts index 6ff0fd8001..4353a536d8 100644 --- a/webapp/packages/core-administration/src/AdministrationLocaleService.ts +++ b/webapp/packages/core-administration/src/AdministrationLocaleService.ts @@ -27,6 +27,8 @@ export class AdministrationLocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/core-app/src/AppLocaleService.ts b/webapp/packages/core-app/src/AppLocaleService.ts index 837d53290c..5b9bdea679 100644 --- a/webapp/packages/core-app/src/AppLocaleService.ts +++ b/webapp/packages/core-app/src/AppLocaleService.ts @@ -19,7 +19,7 @@ export class AppLocaleService extends Bootstrap { this.localizationService.addProvider(this.provider.bind(this)); } - load(): void | Promise {} + load(): void | Promise { } private async provider(locale: string) { switch (locale) { @@ -27,6 +27,8 @@ export class AppLocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/core-connections/src/ConnectionsLocaleService.ts b/webapp/packages/core-connections/src/ConnectionsLocaleService.ts index 7aa10acd87..62a3b85669 100644 --- a/webapp/packages/core-connections/src/ConnectionsLocaleService.ts +++ b/webapp/packages/core-connections/src/ConnectionsLocaleService.ts @@ -27,6 +27,8 @@ export class ConnectionsLocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/core-localization/src/LocalizationService.ts b/webapp/packages/core-localization/src/LocalizationService.ts index 933d3a3b22..f2ba4247d0 100644 --- a/webapp/packages/core-localization/src/LocalizationService.ts +++ b/webapp/packages/core-localization/src/LocalizationService.ts @@ -18,6 +18,7 @@ import type { ILocaleProvider } from './ILocaleProvider'; import { defaultENLocale } from './locales/en'; import { defaultITLocale } from './locales/it'; import { defaultRULocale } from './locales/ru'; +import { defaultZHLocale } from './locales/zh'; import type { TLocalizationToken } from './TLocalizationToken'; export type ServerLanguageShort = Pick; @@ -120,6 +121,8 @@ export class LocalizationService extends Bootstrap { return defaultRULocale; case 'it': return defaultITLocale; + case 'zh': + return defaultZHLocale; default: return defaultENLocale; } diff --git a/webapp/packages/plugin-administration/src/LocaleService.ts b/webapp/packages/plugin-administration/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-administration/src/LocaleService.ts +++ b/webapp/packages/plugin-administration/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-authentication-administration/src/AuthenticationLocaleService.ts b/webapp/packages/plugin-authentication-administration/src/AuthenticationLocaleService.ts index 4be7ecc936..c96fe8f7a0 100644 --- a/webapp/packages/plugin-authentication-administration/src/AuthenticationLocaleService.ts +++ b/webapp/packages/plugin-authentication-administration/src/AuthenticationLocaleService.ts @@ -27,6 +27,8 @@ export class AuthenticationLocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-authentication/src/AuthenticationLocaleService.ts b/webapp/packages/plugin-authentication/src/AuthenticationLocaleService.ts index 4be7ecc936..c96fe8f7a0 100644 --- a/webapp/packages/plugin-authentication/src/AuthenticationLocaleService.ts +++ b/webapp/packages/plugin-authentication/src/AuthenticationLocaleService.ts @@ -27,6 +27,8 @@ export class AuthenticationLocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-connection-custom/src/LocaleService.ts b/webapp/packages/plugin-connection-custom/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-connection-custom/src/LocaleService.ts +++ b/webapp/packages/plugin-connection-custom/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-connection-template/src/LocaleService.ts b/webapp/packages/plugin-connection-template/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-connection-template/src/LocaleService.ts +++ b/webapp/packages/plugin-connection-template/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-connections-administration/src/LocaleService.ts b/webapp/packages/plugin-connections-administration/src/LocaleService.ts index 51abc98d28..f8c93e9901 100644 --- a/webapp/packages/plugin-connections-administration/src/LocaleService.ts +++ b/webapp/packages/plugin-connections-administration/src/LocaleService.ts @@ -36,6 +36,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-connections/src/LocaleService.ts b/webapp/packages/plugin-connections/src/LocaleService.ts index 51abc98d28..f8c93e9901 100644 --- a/webapp/packages/plugin-connections/src/LocaleService.ts +++ b/webapp/packages/plugin-connections/src/LocaleService.ts @@ -36,6 +36,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-data-export/src/LocaleService.ts b/webapp/packages/plugin-data-export/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-data-export/src/LocaleService.ts +++ b/webapp/packages/plugin-data-export/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-data-spreadsheet-new/src/LocaleService.ts b/webapp/packages/plugin-data-spreadsheet-new/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-data-spreadsheet-new/src/LocaleService.ts +++ b/webapp/packages/plugin-data-spreadsheet-new/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-data-viewer/src/LocaleService.ts b/webapp/packages/plugin-data-viewer/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-data-viewer/src/LocaleService.ts +++ b/webapp/packages/plugin-data-viewer/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-gis-viewer/src/LocaleService.ts b/webapp/packages/plugin-gis-viewer/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-gis-viewer/src/LocaleService.ts +++ b/webapp/packages/plugin-gis-viewer/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-object-viewer/src/LocaleService.ts b/webapp/packages/plugin-object-viewer/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-object-viewer/src/LocaleService.ts +++ b/webapp/packages/plugin-object-viewer/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-product/src/LocaleService.ts b/webapp/packages/plugin-product/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-product/src/LocaleService.ts +++ b/webapp/packages/plugin-product/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-sql-editor-navigation-tab/src/LocaleService.ts b/webapp/packages/plugin-sql-editor-navigation-tab/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-sql-editor-navigation-tab/src/LocaleService.ts +++ b/webapp/packages/plugin-sql-editor-navigation-tab/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-sql-editor-screen/src/LocaleService.ts b/webapp/packages/plugin-sql-editor-screen/src/LocaleService.ts index d2b12c604a..a041d44d00 100644 --- a/webapp/packages/plugin-sql-editor-screen/src/LocaleService.ts +++ b/webapp/packages/plugin-sql-editor-screen/src/LocaleService.ts @@ -27,6 +27,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; } diff --git a/webapp/packages/plugin-user-profile/src/LocaleService.ts b/webapp/packages/plugin-user-profile/src/LocaleService.ts index 51abc98d28..f8c93e9901 100644 --- a/webapp/packages/plugin-user-profile/src/LocaleService.ts +++ b/webapp/packages/plugin-user-profile/src/LocaleService.ts @@ -36,6 +36,8 @@ export class LocaleService extends Bootstrap { return (await import('./locales/ru')).default; case 'it': return (await import('./locales/it')).default; + case 'zh': + return (await import('./locales/zh')).default; default: return (await import('./locales/en')).default; }