@digitaldefiance/i18n-lib 1.3.13 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +4 -3
- package/src/active-context.d.ts +30 -0
- package/src/active-context.d.ts.map +1 -0
- package/src/active-context.js +3 -0
- package/src/active-context.js.map +1 -0
- package/src/component-definition.d.ts +12 -0
- package/src/component-definition.d.ts.map +1 -0
- package/src/component-definition.js +3 -0
- package/src/component-definition.js.map +1 -0
- package/src/component-registration.d.ts +10 -0
- package/src/component-registration.d.ts.map +1 -0
- package/src/component-registration.js +3 -0
- package/src/component-registration.js.map +1 -0
- package/src/component-registry.d.ts +69 -0
- package/src/component-registry.d.ts.map +1 -0
- package/src/component-registry.js +248 -0
- package/src/component-registry.js.map +1 -0
- package/src/context-error-type.d.ts +4 -0
- package/src/context-error-type.d.ts.map +1 -0
- package/src/context-error-type.js +8 -0
- package/src/context-error-type.js.map +1 -0
- package/src/context-error.d.ts +7 -0
- package/src/context-error.d.ts.map +1 -0
- package/src/context-error.js +18 -0
- package/src/context-error.js.map +1 -0
- package/src/context-manager.d.ts +34 -0
- package/src/context-manager.d.ts.map +1 -0
- package/src/context-manager.js +60 -0
- package/src/context-manager.js.map +1 -0
- package/src/context.d.ts +45 -0
- package/src/context.d.ts.map +1 -0
- package/src/context.js +70 -0
- package/src/context.js.map +1 -0
- package/src/core-i18n.d.ts +63 -0
- package/src/core-i18n.d.ts.map +1 -0
- package/src/core-i18n.js +478 -0
- package/src/core-i18n.js.map +1 -0
- package/src/core-string-key.d.ts +43 -0
- package/src/core-string-key.d.ts.map +1 -0
- package/src/core-string-key.js +51 -0
- package/src/core-string-key.js.map +1 -0
- package/src/create-translation-adapter.d.ts +21 -0
- package/src/create-translation-adapter.d.ts.map +1 -0
- package/src/create-translation-adapter.js +37 -0
- package/src/create-translation-adapter.js.map +1 -0
- package/src/currency-code.d.ts +20 -0
- package/src/currency-code.d.ts.map +1 -0
- package/src/currency-code.js +37 -0
- package/src/currency-code.js.map +1 -0
- package/src/{currency-format.ts → currency-format.d.ts} +5 -5
- package/src/currency-format.d.ts.map +1 -0
- package/src/currency-format.js +3 -0
- package/src/currency-format.js.map +1 -0
- package/src/currency.d.ts +12 -0
- package/src/currency.d.ts.map +1 -0
- package/src/currency.js +49 -0
- package/src/currency.js.map +1 -0
- package/src/default-config.d.ts +33 -0
- package/src/default-config.d.ts.map +1 -0
- package/src/default-config.js +102 -0
- package/src/default-config.js.map +1 -0
- package/src/enum-registry.d.ts +45 -0
- package/src/enum-registry.d.ts.map +1 -0
- package/src/enum-registry.js +103 -0
- package/src/enum-registry.js.map +1 -0
- package/src/global-active-context.d.ts +51 -0
- package/src/global-active-context.d.ts.map +1 -0
- package/src/global-active-context.js +179 -0
- package/src/global-active-context.js.map +1 -0
- package/src/handleable.d.ts +14 -0
- package/src/handleable.d.ts.map +1 -0
- package/src/handleable.js +66 -0
- package/src/handleable.js.map +1 -0
- package/src/i-global-active-context.d.ts +23 -0
- package/src/i-global-active-context.d.ts.map +1 -0
- package/src/i-global-active-context.js +3 -0
- package/src/i-global-active-context.js.map +1 -0
- package/src/i-handleable-error-options.d.ts +7 -0
- package/src/i-handleable-error-options.d.ts.map +1 -0
- package/src/i-handleable-error-options.js +3 -0
- package/src/i-handleable-error-options.js.map +1 -0
- package/src/i-handleable.d.ts +6 -0
- package/src/i-handleable.d.ts.map +1 -0
- package/src/i-handleable.js +3 -0
- package/src/i-handleable.js.map +1 -0
- package/src/i18n-config.d.ts +21 -0
- package/src/i18n-config.d.ts.map +1 -0
- package/src/i18n-config.js +3 -0
- package/src/i18n-config.js.map +1 -0
- package/src/{i18n-context.ts → i18n-context.d.ts} +7 -7
- package/src/i18n-context.d.ts.map +1 -0
- package/src/i18n-context.js +3 -0
- package/src/i18n-context.js.map +1 -0
- package/src/i18n-engine.d.ts +179 -0
- package/src/i18n-engine.d.ts.map +1 -0
- package/src/i18n-engine.js +355 -0
- package/src/i18n-engine.js.map +1 -0
- package/src/{index.ts → index.d.ts} +2 -10
- package/src/index.d.ts.map +1 -0
- package/src/index.js +71 -0
- package/src/index.js.map +1 -0
- package/src/{language-codes.ts → language-codes.d.ts} +12 -23
- package/src/language-codes.d.ts.map +1 -0
- package/src/language-codes.js +32 -0
- package/src/language-codes.js.map +1 -0
- package/src/language-definition.d.ts +14 -0
- package/src/language-definition.d.ts.map +1 -0
- package/src/language-definition.js +3 -0
- package/src/language-definition.js.map +1 -0
- package/src/language-registry.d.ts +114 -0
- package/src/language-registry.d.ts.map +1 -0
- package/src/language-registry.js +217 -0
- package/src/language-registry.js.map +1 -0
- package/src/plugin-i18n-engine.d.ts +147 -0
- package/src/plugin-i18n-engine.d.ts.map +1 -0
- package/src/plugin-i18n-engine.js +369 -0
- package/src/plugin-i18n-engine.js.map +1 -0
- package/src/plugin-translatable-generic-error.d.ts +30 -0
- package/src/plugin-translatable-generic-error.d.ts.map +1 -0
- package/src/plugin-translatable-generic-error.js +72 -0
- package/src/plugin-translatable-generic-error.js.map +1 -0
- package/src/plugin-translatable-handleable-generic.d.ts +29 -0
- package/src/plugin-translatable-handleable-generic.d.ts.map +1 -0
- package/src/plugin-translatable-handleable-generic.js +44 -0
- package/src/plugin-translatable-handleable-generic.js.map +1 -0
- package/src/plugin-typed-handleable.d.ts +15 -0
- package/src/plugin-typed-handleable.d.ts.map +1 -0
- package/src/plugin-typed-handleable.js +51 -0
- package/src/plugin-typed-handleable.js.map +1 -0
- package/src/registry-config.d.ts +15 -0
- package/src/registry-config.d.ts.map +1 -0
- package/src/registry-config.js +3 -0
- package/src/registry-config.js.map +1 -0
- package/src/registry-error-type.d.ts +13 -0
- package/src/registry-error-type.d.ts.map +1 -0
- package/src/registry-error-type.js +17 -0
- package/src/registry-error-type.js.map +1 -0
- package/src/registry-error.d.ts +19 -0
- package/src/registry-error.d.ts.map +1 -0
- package/src/registry-error.js +48 -0
- package/src/registry-error.js.map +1 -0
- package/src/strict-types.d.ts +19 -0
- package/src/strict-types.d.ts.map +1 -0
- package/src/strict-types.js +18 -0
- package/src/strict-types.js.map +1 -0
- package/src/template.d.ts +13 -0
- package/src/template.d.ts.map +1 -0
- package/src/template.js +31 -0
- package/src/template.js.map +1 -0
- package/src/timezone.d.ts +12 -0
- package/src/timezone.d.ts.map +1 -0
- package/src/timezone.js +24 -0
- package/src/timezone.js.map +1 -0
- package/src/translatable.d.ts +6 -0
- package/src/translatable.d.ts.map +1 -0
- package/src/translatable.js +12 -0
- package/src/translatable.js.map +1 -0
- package/src/translation-engine.d.ts +9 -0
- package/src/translation-engine.d.ts.map +1 -0
- package/src/translation-engine.js +3 -0
- package/src/translation-engine.js.map +1 -0
- package/src/translation-request.d.ts +10 -0
- package/src/translation-request.d.ts.map +1 -0
- package/src/translation-request.js +3 -0
- package/src/translation-request.js.map +1 -0
- package/src/translation-response.d.ts +9 -0
- package/src/translation-response.d.ts.map +1 -0
- package/src/translation-response.js +3 -0
- package/src/translation-response.js.map +1 -0
- package/src/typed-error.d.ts +73 -0
- package/src/typed-error.d.ts.map +1 -0
- package/src/typed-error.js +267 -0
- package/src/typed-error.js.map +1 -0
- package/src/typed-handleable.d.ts +15 -0
- package/src/typed-handleable.d.ts.map +1 -0
- package/src/typed-handleable.js +46 -0
- package/src/typed-handleable.js.map +1 -0
- package/src/{types.ts → types.d.ts} +21 -75
- package/src/types.d.ts.map +1 -0
- package/src/types.js +19 -0
- package/src/types.js.map +1 -0
- package/src/unified-translator.d.ts +31 -0
- package/src/unified-translator.d.ts.map +1 -0
- package/src/unified-translator.js +71 -0
- package/src/unified-translator.js.map +1 -0
- package/src/utils.d.ts +65 -0
- package/src/utils.d.ts.map +1 -0
- package/src/utils.js +129 -0
- package/src/utils.js.map +1 -0
- package/src/validation-config.d.ts +12 -0
- package/src/validation-config.d.ts.map +1 -0
- package/src/validation-config.js +3 -0
- package/src/validation-config.js.map +1 -0
- package/src/validation-result.d.ts +13 -0
- package/src/validation-result.d.ts.map +1 -0
- package/src/validation-result.js +3 -0
- package/src/validation-result.js.map +1 -0
- package/LICENSE +0 -21
- package/src/active-context.ts +0 -30
- package/src/component-definition.ts +0 -11
- package/src/component-registration.ts +0 -13
- package/src/component-registry.ts +0 -392
- package/src/context-error-type.ts +0 -3
- package/src/context-error.ts +0 -16
- package/src/context-manager.ts +0 -71
- package/src/context.ts +0 -90
- package/src/core-i18n.ts +0 -609
- package/src/core-string-key.ts +0 -49
- package/src/create-translation-adapter.ts +0 -47
- package/src/currency-code.ts +0 -35
- package/src/currency.ts +0 -52
- package/src/default-config.ts +0 -199
- package/src/enum-registry.ts +0 -138
- package/src/global-active-context.ts +0 -255
- package/src/handleable.ts +0 -79
- package/src/i-global-active-context.ts +0 -59
- package/src/i-handleable-error-options.ts +0 -6
- package/src/i-handleable.ts +0 -5
- package/src/i18n-config.ts +0 -29
- package/src/i18n-engine.ts +0 -491
- package/src/language-definition.ts +0 -13
- package/src/language-registry.ts +0 -292
- package/src/plugin-i18n-engine.ts +0 -520
- package/src/plugin-translatable-generic-error.ts +0 -106
- package/src/plugin-translatable-handleable-generic.ts +0 -60
- package/src/plugin-typed-handleable.ts +0 -77
- package/src/registry-config.ts +0 -15
- package/src/registry-error-type.ts +0 -12
- package/src/registry-error.ts +0 -74
- package/src/strict-types.ts +0 -35
- package/src/template.ts +0 -63
- package/src/timezone.ts +0 -20
- package/src/translatable.ts +0 -15
- package/src/translation-engine.ts +0 -8
- package/src/translation-request.ts +0 -12
- package/src/translation-response.ts +0 -8
- package/src/typed-error.ts +0 -384
- package/src/typed-handleable.ts +0 -70
- package/src/unified-translator.ts +0 -96
- package/src/utils.ts +0 -213
- package/src/validation-config.ts +0 -11
- package/src/validation-result.ts +0 -12
package/src/core-i18n.ts
DELETED
|
@@ -1,609 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core I18n component with default languages and system strings
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { ComponentDefinition } from './component-definition';
|
|
6
|
-
import { ComponentRegistration } from './component-registration';
|
|
7
|
-
import { CoreStringKey } from './core-string-key';
|
|
8
|
-
import { LanguageCodes } from './language-codes';
|
|
9
|
-
import { LanguageDefinition } from './language-definition';
|
|
10
|
-
import { createLanguageDefinitions } from './language-registry';
|
|
11
|
-
import { PluginI18nEngine } from './plugin-i18n-engine';
|
|
12
|
-
import { createCompleteComponentStrings } from './strict-types';
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Core language code type - union of supported language codes
|
|
16
|
-
* Provides compile-time type safety for core languages
|
|
17
|
-
* For custom languages, extend this type or use string
|
|
18
|
-
*/
|
|
19
|
-
export type CoreLanguageCode = typeof LanguageCodes[keyof typeof LanguageCodes];
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Flexible language code type - use when you want runtime-only validation
|
|
23
|
-
* Alias for string to indicate it's a language code
|
|
24
|
-
*/
|
|
25
|
-
export type FlexibleLanguageCode = string;
|
|
26
|
-
|
|
27
|
-
const DefaultInstanceKey = 'default';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Create default language definitions
|
|
31
|
-
*/
|
|
32
|
-
export function createDefaultLanguages(): LanguageDefinition[] {
|
|
33
|
-
return createLanguageDefinitions([
|
|
34
|
-
{
|
|
35
|
-
id: LanguageCodes.EN_US,
|
|
36
|
-
name: 'English (US)',
|
|
37
|
-
code: 'en-US',
|
|
38
|
-
isDefault: true,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: LanguageCodes.EN_GB,
|
|
42
|
-
name: 'English (UK)',
|
|
43
|
-
code: 'en-GB',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: LanguageCodes.FR,
|
|
47
|
-
name: 'Français',
|
|
48
|
-
code: 'fr',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: LanguageCodes.ES,
|
|
52
|
-
name: 'Español',
|
|
53
|
-
code: 'es',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: LanguageCodes.DE,
|
|
57
|
-
name: 'Deutsch',
|
|
58
|
-
code: 'de',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: LanguageCodes.ZH_CN,
|
|
62
|
-
name: '中文 (简体)',
|
|
63
|
-
code: 'zh-CN',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: LanguageCodes.JA,
|
|
67
|
-
name: '日本語',
|
|
68
|
-
code: 'ja',
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: LanguageCodes.UK,
|
|
72
|
-
name: 'Українська',
|
|
73
|
-
code: 'uk',
|
|
74
|
-
},
|
|
75
|
-
]);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export const CoreI18nComponentId = 'core';
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Core component definition
|
|
82
|
-
*/
|
|
83
|
-
export const CoreComponentDefinition: ComponentDefinition<CoreStringKey> = {
|
|
84
|
-
id: CoreI18nComponentId,
|
|
85
|
-
name: 'Core I18n System',
|
|
86
|
-
stringKeys: Object.values(CoreStringKey),
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Core component strings for all default languages
|
|
91
|
-
*/
|
|
92
|
-
export function createCoreComponentStrings() {
|
|
93
|
-
return createCompleteComponentStrings<CoreStringKey, string>({
|
|
94
|
-
[LanguageCodes.EN_US]: {
|
|
95
|
-
// Common/General
|
|
96
|
-
[CoreStringKey.Common_Yes]: 'Yes',
|
|
97
|
-
[CoreStringKey.Common_No]: 'No',
|
|
98
|
-
[CoreStringKey.Common_Cancel]: 'Cancel',
|
|
99
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
100
|
-
[CoreStringKey.Common_Save]: 'Save',
|
|
101
|
-
[CoreStringKey.Common_Delete]: 'Delete',
|
|
102
|
-
[CoreStringKey.Common_Edit]: 'Edit',
|
|
103
|
-
[CoreStringKey.Common_Create]: 'Create',
|
|
104
|
-
[CoreStringKey.Common_Update]: 'Update',
|
|
105
|
-
[CoreStringKey.Common_Loading]: 'Loading...',
|
|
106
|
-
[CoreStringKey.Common_Error]: 'Error',
|
|
107
|
-
[CoreStringKey.Common_Success]: 'Success',
|
|
108
|
-
[CoreStringKey.Common_Warning]: 'Warning',
|
|
109
|
-
[CoreStringKey.Common_Info]: 'Information',
|
|
110
|
-
[CoreStringKey.Common_Disposed]: 'Object has been disposed',
|
|
111
|
-
|
|
112
|
-
// Error Messages
|
|
113
|
-
[CoreStringKey.Error_InvalidInput]: 'Invalid input provided',
|
|
114
|
-
[CoreStringKey.Error_NetworkError]: 'Network connection error',
|
|
115
|
-
[CoreStringKey.Error_NotFound]: 'Resource not found',
|
|
116
|
-
[CoreStringKey.Error_AccessDenied]: 'Access denied',
|
|
117
|
-
[CoreStringKey.Error_InternalServer]: 'Internal server error',
|
|
118
|
-
[CoreStringKey.Error_ValidationFailed]: 'Validation failed',
|
|
119
|
-
[CoreStringKey.Error_RequiredField]: 'This field is required',
|
|
120
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Invalid context: {contextKey}',
|
|
121
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Missing translation key: {stringKey}',
|
|
122
|
-
|
|
123
|
-
// Registry Error Templates
|
|
124
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
125
|
-
'Component "{componentId}" not found',
|
|
126
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
127
|
-
'Language "{language}" not found',
|
|
128
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
129
|
-
'String key "{stringKey}" not found for component "{componentId}"',
|
|
130
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
131
|
-
'Incomplete registration for component "{componentId}": missing {missingCount} strings',
|
|
132
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
133
|
-
'Component "{componentId}" is already registered',
|
|
134
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
135
|
-
'Language "{languageId}" is already registered',
|
|
136
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
137
|
-
'Validation failed for component "{componentId}": {errorCount} errors',
|
|
138
|
-
|
|
139
|
-
// System Messages
|
|
140
|
-
[CoreStringKey.System_Welcome]: 'Welcome',
|
|
141
|
-
[CoreStringKey.System_Goodbye]: 'Goodbye',
|
|
142
|
-
[CoreStringKey.System_PleaseWait]: 'Please wait...',
|
|
143
|
-
[CoreStringKey.System_ProcessingRequest]: 'Processing your request...',
|
|
144
|
-
[CoreStringKey.System_OperationComplete]:
|
|
145
|
-
'Operation completed successfully',
|
|
146
|
-
[CoreStringKey.System_NoDataAvailable]: 'No data available',
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
[LanguageCodes.EN_GB]: {
|
|
150
|
-
// Common/General (mostly same as US English)
|
|
151
|
-
[CoreStringKey.Common_Yes]: 'Yes',
|
|
152
|
-
[CoreStringKey.Common_No]: 'No',
|
|
153
|
-
[CoreStringKey.Common_Cancel]: 'Cancel',
|
|
154
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
155
|
-
[CoreStringKey.Common_Save]: 'Save',
|
|
156
|
-
[CoreStringKey.Common_Delete]: 'Delete',
|
|
157
|
-
[CoreStringKey.Common_Edit]: 'Edit',
|
|
158
|
-
[CoreStringKey.Common_Create]: 'Create',
|
|
159
|
-
[CoreStringKey.Common_Update]: 'Update',
|
|
160
|
-
[CoreStringKey.Common_Loading]: 'Loading...',
|
|
161
|
-
[CoreStringKey.Common_Error]: 'Error',
|
|
162
|
-
[CoreStringKey.Common_Success]: 'Success',
|
|
163
|
-
[CoreStringKey.Common_Warning]: 'Warning',
|
|
164
|
-
[CoreStringKey.Common_Info]: 'Information',
|
|
165
|
-
[CoreStringKey.Common_Disposed]: 'Object has been disposed',
|
|
166
|
-
|
|
167
|
-
// Error Messages
|
|
168
|
-
[CoreStringKey.Error_InvalidInput]: 'Invalid input provided',
|
|
169
|
-
[CoreStringKey.Error_NetworkError]: 'Network connection error',
|
|
170
|
-
[CoreStringKey.Error_NotFound]: 'Resource not found',
|
|
171
|
-
[CoreStringKey.Error_AccessDenied]: 'Access denied',
|
|
172
|
-
[CoreStringKey.Error_InternalServer]: 'Internal server error',
|
|
173
|
-
[CoreStringKey.Error_ValidationFailed]: 'Validation failed',
|
|
174
|
-
[CoreStringKey.Error_RequiredField]: 'This field is required',
|
|
175
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Invalid context: {contextKey}',
|
|
176
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Missing translation key: {stringKey}',
|
|
177
|
-
|
|
178
|
-
// Registry Error Templates
|
|
179
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
180
|
-
'Component "{componentId}" not found',
|
|
181
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
182
|
-
'Language "{language}" not found',
|
|
183
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
184
|
-
'String key "{stringKey}" not found for component "{componentId}"',
|
|
185
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
186
|
-
'Incomplete registration for component "{componentId}": missing {missingCount} strings',
|
|
187
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
188
|
-
'Component "{componentId}" is already registered',
|
|
189
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
190
|
-
'Language "{languageId}" is already registered',
|
|
191
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
192
|
-
'Validation failed for component "{componentId}": {errorCount} errors',
|
|
193
|
-
|
|
194
|
-
// System Messages
|
|
195
|
-
[CoreStringKey.System_Welcome]: 'Welcome',
|
|
196
|
-
[CoreStringKey.System_Goodbye]: 'Goodbye',
|
|
197
|
-
[CoreStringKey.System_PleaseWait]: 'Please wait...',
|
|
198
|
-
[CoreStringKey.System_ProcessingRequest]: 'Processing your request...',
|
|
199
|
-
[CoreStringKey.System_OperationComplete]:
|
|
200
|
-
'Operation completed successfully',
|
|
201
|
-
[CoreStringKey.System_NoDataAvailable]: 'No data available',
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
[LanguageCodes.FR]: {
|
|
205
|
-
// Common/General
|
|
206
|
-
[CoreStringKey.Common_Yes]: 'Oui',
|
|
207
|
-
[CoreStringKey.Common_No]: 'Non',
|
|
208
|
-
[CoreStringKey.Common_Cancel]: 'Annuler',
|
|
209
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
210
|
-
[CoreStringKey.Common_Save]: 'Enregistrer',
|
|
211
|
-
[CoreStringKey.Common_Delete]: 'Supprimer',
|
|
212
|
-
[CoreStringKey.Common_Edit]: 'Modifier',
|
|
213
|
-
[CoreStringKey.Common_Create]: 'Créer',
|
|
214
|
-
[CoreStringKey.Common_Update]: 'Mettre à jour',
|
|
215
|
-
[CoreStringKey.Common_Loading]: 'Chargement...',
|
|
216
|
-
[CoreStringKey.Common_Error]: 'Erreur',
|
|
217
|
-
[CoreStringKey.Common_Success]: 'Succès',
|
|
218
|
-
[CoreStringKey.Common_Warning]: 'Avertissement',
|
|
219
|
-
[CoreStringKey.Common_Info]: 'Information',
|
|
220
|
-
[CoreStringKey.Common_Disposed]: 'L\'objet a été disposé',
|
|
221
|
-
|
|
222
|
-
// Error Messages
|
|
223
|
-
[CoreStringKey.Error_InvalidInput]: 'Entrée invalide fournie',
|
|
224
|
-
[CoreStringKey.Error_NetworkError]: 'Erreur de connexion réseau',
|
|
225
|
-
[CoreStringKey.Error_NotFound]: 'Ressource non trouvée',
|
|
226
|
-
[CoreStringKey.Error_AccessDenied]: 'Accès refusé',
|
|
227
|
-
[CoreStringKey.Error_InternalServer]: 'Erreur interne du serveur',
|
|
228
|
-
[CoreStringKey.Error_ValidationFailed]: 'Échec de la validation',
|
|
229
|
-
[CoreStringKey.Error_RequiredField]: 'Ce champ est obligatoire',
|
|
230
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Contexte invalide : {contextKey}',
|
|
231
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Clé de traduction manquante : {stringKey}',
|
|
232
|
-
|
|
233
|
-
// Registry Error Templates
|
|
234
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
235
|
-
'Composant "{componentId}" non trouvé',
|
|
236
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
237
|
-
'Langue "{language}" non trouvée',
|
|
238
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
239
|
-
'Clé de chaîne "{stringKey}" non trouvée pour le composant "{componentId}"',
|
|
240
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
241
|
-
'Enregistrement incomplet pour le composant "{componentId}": {missingCount} chaînes manquantes',
|
|
242
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
243
|
-
'Le composant "{componentId}" est déjà enregistré',
|
|
244
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
245
|
-
'La langue "{languageId}" est déjà enregistrée',
|
|
246
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
247
|
-
'Échec de la validation pour le composant "{componentId}": {errorCount} erreurs',
|
|
248
|
-
|
|
249
|
-
// System Messages
|
|
250
|
-
[CoreStringKey.System_Welcome]: 'Bienvenue',
|
|
251
|
-
[CoreStringKey.System_Goodbye]: 'Au revoir',
|
|
252
|
-
[CoreStringKey.System_PleaseWait]: 'Veuillez patienter...',
|
|
253
|
-
[CoreStringKey.System_ProcessingRequest]:
|
|
254
|
-
'Traitement de votre demande...',
|
|
255
|
-
[CoreStringKey.System_OperationComplete]:
|
|
256
|
-
'Opération terminée avec succès',
|
|
257
|
-
[CoreStringKey.System_NoDataAvailable]: 'Aucune donnée disponible',
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
[LanguageCodes.ES]: {
|
|
261
|
-
// Common/General
|
|
262
|
-
[CoreStringKey.Common_Yes]: 'Sí',
|
|
263
|
-
[CoreStringKey.Common_No]: 'No',
|
|
264
|
-
[CoreStringKey.Common_Cancel]: 'Cancelar',
|
|
265
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
266
|
-
[CoreStringKey.Common_Save]: 'Guardar',
|
|
267
|
-
[CoreStringKey.Common_Delete]: 'Eliminar',
|
|
268
|
-
[CoreStringKey.Common_Edit]: 'Editar',
|
|
269
|
-
[CoreStringKey.Common_Create]: 'Crear',
|
|
270
|
-
[CoreStringKey.Common_Update]: 'Actualizar',
|
|
271
|
-
[CoreStringKey.Common_Loading]: 'Cargando...',
|
|
272
|
-
[CoreStringKey.Common_Error]: 'Error',
|
|
273
|
-
[CoreStringKey.Common_Success]: 'Éxito',
|
|
274
|
-
[CoreStringKey.Common_Warning]: 'Advertencia',
|
|
275
|
-
[CoreStringKey.Common_Info]: 'Información',
|
|
276
|
-
[CoreStringKey.Common_Disposed]: 'El objeto ha sido eliminado',
|
|
277
|
-
|
|
278
|
-
// Error Messages
|
|
279
|
-
[CoreStringKey.Error_InvalidInput]: 'Entrada inválida proporcionada',
|
|
280
|
-
[CoreStringKey.Error_NetworkError]: 'Error de conexión de red',
|
|
281
|
-
[CoreStringKey.Error_NotFound]: 'Recurso no encontrado',
|
|
282
|
-
[CoreStringKey.Error_AccessDenied]: 'Acceso denegado',
|
|
283
|
-
[CoreStringKey.Error_InternalServer]: 'Error interno del servidor',
|
|
284
|
-
[CoreStringKey.Error_ValidationFailed]: 'Error de validación',
|
|
285
|
-
[CoreStringKey.Error_RequiredField]: 'Este campo es obligatorio',
|
|
286
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Contexte invalide : {contextKey}',
|
|
287
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Clave de traducción faltante: {stringKey}',
|
|
288
|
-
|
|
289
|
-
// Registry Error Templates
|
|
290
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
291
|
-
'Componente "{componentId}" no encontrado',
|
|
292
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
293
|
-
'Idioma "{language}" no encontrado',
|
|
294
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
295
|
-
'Clave de cadena "{stringKey}" no encontrada para el componente "{componentId}"',
|
|
296
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
297
|
-
'Registro incompleto para el componente "{componentId}": faltan {missingCount} cadenas',
|
|
298
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
299
|
-
'El componente "{componentId}" ya está registrado',
|
|
300
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
301
|
-
'El idioma "{languageId}" ya está registrado',
|
|
302
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
303
|
-
'Error de validación para el componente "{componentId}": {errorCount} errores',
|
|
304
|
-
|
|
305
|
-
// System Messages
|
|
306
|
-
[CoreStringKey.System_Welcome]: 'Bienvenido',
|
|
307
|
-
[CoreStringKey.System_Goodbye]: 'Adiós',
|
|
308
|
-
[CoreStringKey.System_PleaseWait]: 'Por favor espere...',
|
|
309
|
-
[CoreStringKey.System_ProcessingRequest]: 'Procesando su solicitud...',
|
|
310
|
-
[CoreStringKey.System_OperationComplete]:
|
|
311
|
-
'Operación completada exitosamente',
|
|
312
|
-
[CoreStringKey.System_NoDataAvailable]: 'No hay datos disponibles',
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
[LanguageCodes.DE]: {
|
|
316
|
-
// Common/General
|
|
317
|
-
[CoreStringKey.Common_Yes]: 'Ja',
|
|
318
|
-
[CoreStringKey.Common_No]: 'Nein',
|
|
319
|
-
[CoreStringKey.Common_Cancel]: 'Abbrechen',
|
|
320
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
321
|
-
[CoreStringKey.Common_Save]: 'Speichern',
|
|
322
|
-
[CoreStringKey.Common_Delete]: 'Löschen',
|
|
323
|
-
[CoreStringKey.Common_Edit]: 'Bearbeiten',
|
|
324
|
-
[CoreStringKey.Common_Create]: 'Erstellen',
|
|
325
|
-
[CoreStringKey.Common_Update]: 'Aktualisieren',
|
|
326
|
-
[CoreStringKey.Common_Loading]: 'Lädt...',
|
|
327
|
-
[CoreStringKey.Common_Error]: 'Fehler',
|
|
328
|
-
[CoreStringKey.Common_Success]: 'Erfolg',
|
|
329
|
-
[CoreStringKey.Common_Warning]: 'Warnung',
|
|
330
|
-
[CoreStringKey.Common_Info]: 'Information',
|
|
331
|
-
[CoreStringKey.Common_Disposed]: 'Objekt wurde freigegeben',
|
|
332
|
-
|
|
333
|
-
// Error Messages
|
|
334
|
-
[CoreStringKey.Error_InvalidInput]: 'Ungültige Eingabe bereitgestellt',
|
|
335
|
-
[CoreStringKey.Error_NetworkError]: 'Netzwerkverbindungsfehler',
|
|
336
|
-
[CoreStringKey.Error_NotFound]: 'Ressource nicht gefunden',
|
|
337
|
-
[CoreStringKey.Error_AccessDenied]: 'Zugriff verweigert',
|
|
338
|
-
[CoreStringKey.Error_InternalServer]: 'Interner Serverfehler',
|
|
339
|
-
[CoreStringKey.Error_ValidationFailed]: 'Validierung fehlgeschlagen',
|
|
340
|
-
[CoreStringKey.Error_RequiredField]: 'Dieses Feld ist erforderlich',
|
|
341
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Ungültiger Kontext: {contextKey}',
|
|
342
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Fehlender Übersetzungsschlüssel: {stringKey}',
|
|
343
|
-
|
|
344
|
-
// Registry Error Templates
|
|
345
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
346
|
-
'Komponente "{componentId}" nicht gefunden',
|
|
347
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
348
|
-
'Sprache "{language}" nicht gefunden',
|
|
349
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
350
|
-
'String-Schlüssel "{stringKey}" für Komponente "{componentId}" nicht gefunden',
|
|
351
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
352
|
-
'Unvollständige Registrierung für Komponente "{componentId}": {missingCount} Strings fehlen',
|
|
353
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
354
|
-
'Komponente "{componentId}" ist bereits registriert',
|
|
355
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
356
|
-
'Sprache "{languageId}" ist bereits registriert',
|
|
357
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
358
|
-
'Validierung für Komponente "{componentId}" fehlgeschlagen: {errorCount} Fehler',
|
|
359
|
-
|
|
360
|
-
// System Messages
|
|
361
|
-
[CoreStringKey.System_Welcome]: 'Willkommen',
|
|
362
|
-
[CoreStringKey.System_Goodbye]: 'Auf Wiedersehen',
|
|
363
|
-
[CoreStringKey.System_PleaseWait]: 'Bitte warten...',
|
|
364
|
-
[CoreStringKey.System_ProcessingRequest]:
|
|
365
|
-
'Ihre Anfrage wird bearbeitet...',
|
|
366
|
-
[CoreStringKey.System_OperationComplete]:
|
|
367
|
-
'Vorgang erfolgreich abgeschlossen',
|
|
368
|
-
[CoreStringKey.System_NoDataAvailable]: 'Keine Daten verfügbar',
|
|
369
|
-
},
|
|
370
|
-
|
|
371
|
-
[LanguageCodes.ZH_CN]: {
|
|
372
|
-
// Common/General
|
|
373
|
-
[CoreStringKey.Common_Yes]: '是',
|
|
374
|
-
[CoreStringKey.Common_No]: '否',
|
|
375
|
-
[CoreStringKey.Common_Cancel]: '取消',
|
|
376
|
-
[CoreStringKey.Common_OK]: '确定',
|
|
377
|
-
[CoreStringKey.Common_Save]: '保存',
|
|
378
|
-
[CoreStringKey.Common_Delete]: '删除',
|
|
379
|
-
[CoreStringKey.Common_Edit]: '编辑',
|
|
380
|
-
[CoreStringKey.Common_Create]: '创建',
|
|
381
|
-
[CoreStringKey.Common_Update]: '更新',
|
|
382
|
-
[CoreStringKey.Common_Loading]: '加载中...',
|
|
383
|
-
[CoreStringKey.Common_Error]: '错误',
|
|
384
|
-
[CoreStringKey.Common_Success]: '成功',
|
|
385
|
-
[CoreStringKey.Common_Warning]: '警告',
|
|
386
|
-
[CoreStringKey.Common_Info]: '信息',
|
|
387
|
-
[CoreStringKey.Common_Disposed]: '对象已被释放',
|
|
388
|
-
|
|
389
|
-
// Error Messages
|
|
390
|
-
[CoreStringKey.Error_InvalidInput]: '提供的输入无效',
|
|
391
|
-
[CoreStringKey.Error_NetworkError]: '网络连接错误',
|
|
392
|
-
[CoreStringKey.Error_NotFound]: '未找到资源',
|
|
393
|
-
[CoreStringKey.Error_AccessDenied]: '访问被拒绝',
|
|
394
|
-
[CoreStringKey.Error_InternalServer]: '内部服务器错误',
|
|
395
|
-
[CoreStringKey.Error_ValidationFailed]: '验证失败',
|
|
396
|
-
[CoreStringKey.Error_RequiredField]: '此字段为必填项',
|
|
397
|
-
[CoreStringKey.Error_InvalidContextTemplate]: '无效的上下文:{contextKey}',
|
|
398
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: '缺少翻译键:{stringKey}',
|
|
399
|
-
|
|
400
|
-
// Registry Error Templates
|
|
401
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
402
|
-
'未找到组件 "{componentId}"',
|
|
403
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]: '未找到语言 "{language}"',
|
|
404
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
405
|
-
'组件 "{componentId}" 未找到字符串键 "{stringKey}"',
|
|
406
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
407
|
-
'组件 "{componentId}" 注册不完整:缺少 {missingCount} 个字符串',
|
|
408
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
409
|
-
'组件 "{componentId}" 已注册',
|
|
410
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
411
|
-
'语言 "{languageId}" 已注册',
|
|
412
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
413
|
-
'组件 "{componentId}" 验证失败:{errorCount} 个错误',
|
|
414
|
-
|
|
415
|
-
// System Messages
|
|
416
|
-
[CoreStringKey.System_Welcome]: '欢迎',
|
|
417
|
-
[CoreStringKey.System_Goodbye]: '再见',
|
|
418
|
-
[CoreStringKey.System_PleaseWait]: '请稍候...',
|
|
419
|
-
[CoreStringKey.System_ProcessingRequest]: '正在处理您的请求...',
|
|
420
|
-
[CoreStringKey.System_OperationComplete]: '操作成功完成',
|
|
421
|
-
[CoreStringKey.System_NoDataAvailable]: '无可用数据',
|
|
422
|
-
},
|
|
423
|
-
|
|
424
|
-
[LanguageCodes.JA]: {
|
|
425
|
-
// Common/General
|
|
426
|
-
[CoreStringKey.Common_Yes]: 'はい',
|
|
427
|
-
[CoreStringKey.Common_No]: 'いいえ',
|
|
428
|
-
[CoreStringKey.Common_Cancel]: 'キャンセル',
|
|
429
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
430
|
-
[CoreStringKey.Common_Save]: '保存',
|
|
431
|
-
[CoreStringKey.Common_Delete]: '削除',
|
|
432
|
-
[CoreStringKey.Common_Edit]: '編集',
|
|
433
|
-
[CoreStringKey.Common_Create]: '作成',
|
|
434
|
-
[CoreStringKey.Common_Update]: '更新',
|
|
435
|
-
[CoreStringKey.Common_Loading]: '読み込み中...',
|
|
436
|
-
[CoreStringKey.Common_Error]: 'エラー',
|
|
437
|
-
[CoreStringKey.Common_Success]: '成功',
|
|
438
|
-
[CoreStringKey.Common_Warning]: '警告',
|
|
439
|
-
[CoreStringKey.Common_Info]: '情報',
|
|
440
|
-
[CoreStringKey.Common_Disposed]: 'オブジェクトは破棄されました',
|
|
441
|
-
|
|
442
|
-
// Error Messages
|
|
443
|
-
[CoreStringKey.Error_InvalidInput]: '無効な入力が提供されました',
|
|
444
|
-
[CoreStringKey.Error_NetworkError]: 'ネットワーク接続エラー',
|
|
445
|
-
[CoreStringKey.Error_NotFound]: 'リソースが見つかりません',
|
|
446
|
-
[CoreStringKey.Error_AccessDenied]: 'アクセスが拒否されました',
|
|
447
|
-
[CoreStringKey.Error_InternalServer]: '内部サーバーエラー',
|
|
448
|
-
[CoreStringKey.Error_ValidationFailed]: '検証に失敗しました',
|
|
449
|
-
[CoreStringKey.Error_RequiredField]: 'このフィールドは必須です',
|
|
450
|
-
[CoreStringKey.Error_InvalidContextTemplate]: '無効なコンテキスト:{contextKey}',
|
|
451
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: '翻訳キーが見つかりません:{stringKey}',
|
|
452
|
-
|
|
453
|
-
// Registry Error Templates
|
|
454
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
455
|
-
'コンポーネント "{componentId}" が見つかりません',
|
|
456
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
457
|
-
'言語 "{language}" が見つかりません',
|
|
458
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
459
|
-
'コンポーネント "{componentId}" の文字列キー "{stringKey}" が見つかりません',
|
|
460
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
461
|
-
'コンポーネント "{componentId}" の登録が不完全です:{missingCount} 個の文字列が不足しています',
|
|
462
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
463
|
-
'コンポーネント "{componentId}" は既に登録されています',
|
|
464
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
465
|
-
'言語 "{languageId}" は既に登録されています',
|
|
466
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
467
|
-
'コンポーネント "{componentId}" の検証に失敗しました:{errorCount} 個のエラー',
|
|
468
|
-
|
|
469
|
-
// System Messages
|
|
470
|
-
[CoreStringKey.System_Welcome]: 'ようこそ',
|
|
471
|
-
[CoreStringKey.System_Goodbye]: 'さようなら',
|
|
472
|
-
[CoreStringKey.System_PleaseWait]: 'お待ちください...',
|
|
473
|
-
[CoreStringKey.System_ProcessingRequest]: 'リクエストを処理中...',
|
|
474
|
-
[CoreStringKey.System_OperationComplete]: '操作が正常に完了しました',
|
|
475
|
-
[CoreStringKey.System_NoDataAvailable]: '利用可能なデータがありません',
|
|
476
|
-
},
|
|
477
|
-
|
|
478
|
-
[LanguageCodes.UK]: {
|
|
479
|
-
// Common/General
|
|
480
|
-
[CoreStringKey.Common_Yes]: 'Так',
|
|
481
|
-
[CoreStringKey.Common_No]: 'Ні',
|
|
482
|
-
[CoreStringKey.Common_Cancel]: 'Скасувати',
|
|
483
|
-
[CoreStringKey.Common_OK]: 'OK',
|
|
484
|
-
[CoreStringKey.Common_Save]: 'Зберегти',
|
|
485
|
-
[CoreStringKey.Common_Delete]: 'Видалити',
|
|
486
|
-
[CoreStringKey.Common_Edit]: 'Редагувати',
|
|
487
|
-
[CoreStringKey.Common_Create]: 'Створити',
|
|
488
|
-
[CoreStringKey.Common_Update]: 'Оновити',
|
|
489
|
-
[CoreStringKey.Common_Loading]: 'Завантаження...',
|
|
490
|
-
[CoreStringKey.Common_Error]: 'Помилка',
|
|
491
|
-
[CoreStringKey.Common_Success]: 'Успіх',
|
|
492
|
-
[CoreStringKey.Common_Warning]: 'Попередження',
|
|
493
|
-
[CoreStringKey.Common_Info]: 'Інформація',
|
|
494
|
-
[CoreStringKey.Common_Disposed]: 'Об\'єкт було звільнено',
|
|
495
|
-
|
|
496
|
-
// Error Messages
|
|
497
|
-
[CoreStringKey.Error_InvalidInput]: 'Надано неправильний ввід',
|
|
498
|
-
[CoreStringKey.Error_NetworkError]: "Помилка мережевого з'єднання",
|
|
499
|
-
[CoreStringKey.Error_NotFound]: 'Ресурс не знайдено',
|
|
500
|
-
[CoreStringKey.Error_AccessDenied]: 'Доступ заборонено',
|
|
501
|
-
[CoreStringKey.Error_InternalServer]: 'Внутрішня помилка сервера',
|
|
502
|
-
[CoreStringKey.Error_ValidationFailed]: 'Перевірка не вдалася',
|
|
503
|
-
[CoreStringKey.Error_RequiredField]: "Це поле є обов'язковим",
|
|
504
|
-
[CoreStringKey.Error_InvalidContextTemplate]: 'Неправильний контекст: {contextKey}',
|
|
505
|
-
[CoreStringKey.Error_MissingTranslationKeyTemplate]: 'Відсутній ключ перекладу: {stringKey}',
|
|
506
|
-
|
|
507
|
-
// Registry Error Templates
|
|
508
|
-
[CoreStringKey.Error_ComponentNotFoundTemplate]:
|
|
509
|
-
'Компонент "{componentId}" не знайдено',
|
|
510
|
-
[CoreStringKey.Error_LanguageNotFoundTemplate]:
|
|
511
|
-
'Мову "{language}" не знайдено',
|
|
512
|
-
[CoreStringKey.Error_StringKeyNotFoundTemplate]:
|
|
513
|
-
'Ключ рядка "{stringKey}" не знайдено для компонента "{componentId}"',
|
|
514
|
-
[CoreStringKey.Error_IncompleteRegistrationTemplate]:
|
|
515
|
-
'Неповна реєстрація для компонента "{componentId}": не вистачає {missingCount} рядків',
|
|
516
|
-
[CoreStringKey.Error_DuplicateComponentTemplate]:
|
|
517
|
-
'Компонент "{componentId}" вже зареєстровано',
|
|
518
|
-
[CoreStringKey.Error_DuplicateLanguageTemplate]:
|
|
519
|
-
'Мову "{languageId}" вже зареєстровано',
|
|
520
|
-
[CoreStringKey.Error_ValidationFailedTemplate]:
|
|
521
|
-
'Перевірка не вдалася для компонента "{componentId}": {errorCount} помилок',
|
|
522
|
-
|
|
523
|
-
// System Messages
|
|
524
|
-
[CoreStringKey.System_Welcome]: 'Ласкаво просимо',
|
|
525
|
-
[CoreStringKey.System_Goodbye]: 'До побачення',
|
|
526
|
-
[CoreStringKey.System_PleaseWait]: 'Будь ласка, зачекайте...',
|
|
527
|
-
[CoreStringKey.System_ProcessingRequest]: 'Обробка вашого запиту...',
|
|
528
|
-
[CoreStringKey.System_OperationComplete]: 'Операція успішно завершена',
|
|
529
|
-
[CoreStringKey.System_NoDataAvailable]: 'Дані недоступні',
|
|
530
|
-
},
|
|
531
|
-
});
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Create core component registration
|
|
536
|
-
*/
|
|
537
|
-
export function createCoreComponentRegistration(): ComponentRegistration<
|
|
538
|
-
CoreStringKey,
|
|
539
|
-
string
|
|
540
|
-
> {
|
|
541
|
-
return {
|
|
542
|
-
component: CoreComponentDefinition,
|
|
543
|
-
strings: createCoreComponentStrings(),
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Get core language codes as array (for Mongoose enums, etc.)
|
|
549
|
-
*/
|
|
550
|
-
export function getCoreLanguageCodes(): string[] {
|
|
551
|
-
return Object.values(LanguageCodes);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* Get core language definitions
|
|
556
|
-
*/
|
|
557
|
-
export function getCoreLanguageDefinitions(): LanguageDefinition[] {
|
|
558
|
-
return createDefaultLanguages();
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Create a pre-configured I18n engine with core components
|
|
563
|
-
* Returns engine with string type - use registry for language validation
|
|
564
|
-
*/
|
|
565
|
-
export function createCoreI18nEngine(
|
|
566
|
-
instanceKey: string = DefaultInstanceKey,
|
|
567
|
-
): PluginI18nEngine<string> {
|
|
568
|
-
const languages = createDefaultLanguages();
|
|
569
|
-
const engine = PluginI18nEngine.createInstance<string>(
|
|
570
|
-
instanceKey,
|
|
571
|
-
languages,
|
|
572
|
-
);
|
|
573
|
-
engine.registerComponent(createCoreComponentRegistration());
|
|
574
|
-
return engine;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Type alias for easier usage
|
|
579
|
-
*/
|
|
580
|
-
export type CoreI18nEngine = PluginI18nEngine<string>;
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Helper function to get core translation
|
|
584
|
-
*/
|
|
585
|
-
export function getCoreTranslation(
|
|
586
|
-
stringKey: CoreStringKey,
|
|
587
|
-
variables?: Record<string, string | number>,
|
|
588
|
-
language?: string,
|
|
589
|
-
instanceKey?: string,
|
|
590
|
-
): string {
|
|
591
|
-
const engine = PluginI18nEngine.getInstance<string>(instanceKey);
|
|
592
|
-
return engine.translate(CoreI18nComponentId, stringKey, variables, language);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
/**
|
|
596
|
-
* Helper function to safely get core translation with fallback
|
|
597
|
-
*/
|
|
598
|
-
export function safeCoreTranslation(
|
|
599
|
-
stringKey: CoreStringKey,
|
|
600
|
-
variables?: Record<string, string | number>,
|
|
601
|
-
language?: string,
|
|
602
|
-
instanceKey?: string,
|
|
603
|
-
): string {
|
|
604
|
-
try {
|
|
605
|
-
return getCoreTranslation(stringKey, variables, language, instanceKey);
|
|
606
|
-
} catch {
|
|
607
|
-
return `[CoreStringKey.${stringKey}]`;
|
|
608
|
-
}
|
|
609
|
-
}
|
package/src/core-string-key.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core system string keys
|
|
3
|
-
*/
|
|
4
|
-
export enum CoreStringKey {
|
|
5
|
-
// Common/General
|
|
6
|
-
Common_Yes = 'common_yes',
|
|
7
|
-
Common_No = 'common_no',
|
|
8
|
-
Common_Cancel = 'common_cancel',
|
|
9
|
-
Common_OK = 'common_ok',
|
|
10
|
-
Common_Save = 'common_save',
|
|
11
|
-
Common_Delete = 'common_delete',
|
|
12
|
-
Common_Edit = 'common_edit',
|
|
13
|
-
Common_Create = 'common_create',
|
|
14
|
-
Common_Update = 'common_update',
|
|
15
|
-
Common_Loading = 'common_loading',
|
|
16
|
-
Common_Error = 'common_error',
|
|
17
|
-
Common_Success = 'common_success',
|
|
18
|
-
Common_Warning = 'common_warning',
|
|
19
|
-
Common_Info = 'common_info',
|
|
20
|
-
Common_Disposed = 'common_disposed',
|
|
21
|
-
|
|
22
|
-
// Error Messages
|
|
23
|
-
Error_InvalidInput = 'error_invalidInput',
|
|
24
|
-
Error_NetworkError = 'error_networkError',
|
|
25
|
-
Error_NotFound = 'error_notFound',
|
|
26
|
-
Error_AccessDenied = 'error_accessDenied',
|
|
27
|
-
Error_InternalServer = 'error_internalServer',
|
|
28
|
-
Error_ValidationFailed = 'error_validationFailed',
|
|
29
|
-
Error_RequiredField = 'error_requiredField',
|
|
30
|
-
Error_InvalidContextTemplate = 'error_invalidContextTemplate',
|
|
31
|
-
|
|
32
|
-
// Registry Errors (templates support variables)
|
|
33
|
-
Error_ComponentNotFoundTemplate = 'error_componentNotFoundTemplate',
|
|
34
|
-
Error_LanguageNotFoundTemplate = 'error_languageNotFoundTemplate',
|
|
35
|
-
Error_StringKeyNotFoundTemplate = 'error_stringKeyNotFoundTemplate',
|
|
36
|
-
Error_IncompleteRegistrationTemplate = 'error_incompleteRegistrationTemplate',
|
|
37
|
-
Error_DuplicateComponentTemplate = 'error_duplicateComponentTemplate',
|
|
38
|
-
Error_DuplicateLanguageTemplate = 'error_duplicateLanguageTemplate',
|
|
39
|
-
Error_ValidationFailedTemplate = 'error_validationFailedTemplate',
|
|
40
|
-
Error_MissingTranslationKeyTemplate = 'error_missingTranslationKeyTemplate',
|
|
41
|
-
|
|
42
|
-
// System Messages
|
|
43
|
-
System_Welcome = 'system_welcome',
|
|
44
|
-
System_Goodbye = 'system_goodbye',
|
|
45
|
-
System_PleaseWait = 'system_pleaseWait',
|
|
46
|
-
System_ProcessingRequest = 'system_processingRequest',
|
|
47
|
-
System_OperationComplete = 'system_operationComplete',
|
|
48
|
-
System_NoDataAvailable = 'system_noDataAvailable',
|
|
49
|
-
}
|