@yamato-daiwa/es-extensions-localization-russian 1.7.0 → 1.7.1
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 +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,14 +29,14 @@ npm i @yamato-daiwa/es-extensions-localization-russian @yamato-daiwa/es-extensio
|
|
|
29
29
|
|
|
30
30
|
Класс [RawObjectDataProcessor](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#quick-example)
|
|
31
31
|
можно локализовать как на время одного выполнения [метода `process`](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/RawObjectDataProcessor/RawObjectDataProcessor.md#process),
|
|
32
|
-
так и на всё время выполнения приложения. В любом случае понадобится объект локализации **
|
|
32
|
+
так и на всё время выполнения приложения. В любом случае понадобится объект локализации **rawObjectDataProcessorLocalization__russian**.
|
|
33
33
|
|
|
34
|
-
Для локализации на время одного выполнения метода `process` необходимо передать **
|
|
34
|
+
Для локализации на время одного выполнения метода `process` необходимо передать **rawObjectDataProcessorLocalization__russian**
|
|
35
35
|
через свойство **localization** третьего параметра:
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
38
|
import { RawObjectDataProcessor } from "@yamato-daiwa/es-extensions";
|
|
39
|
-
import {
|
|
39
|
+
import { rawObjectDataProcessorLocalization__russian } from "@yamato-daiwa/es-extensions-localization-russian";
|
|
40
40
|
|
|
41
41
|
type User = {
|
|
42
42
|
ID: string;
|
|
@@ -52,7 +52,7 @@ const processingResult: RawObjectDataProcessor.ProcessingResult<User> = RawObjec
|
|
|
52
52
|
subtype: RawObjectDataProcessor.ObjectSubtypes.fixedKeyAndValuePairsObject,
|
|
53
53
|
properties: { /* */ }
|
|
54
54
|
},
|
|
55
|
-
{ localization:
|
|
55
|
+
{ localization: rawObjectDataProcessorLocalization__russian }
|
|
56
56
|
);
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -60,10 +60,10 @@ const processingResult: RawObjectDataProcessor.ProcessingResult<User> = RawObjec
|
|
|
60
60
|
|
|
61
61
|
```typescript
|
|
62
62
|
import { RawObjectDataProcessor } from "@yamato-daiwa/es-extensions";
|
|
63
|
-
import {
|
|
63
|
+
import { rawObjectDataProcessorLocalization__russian } from "@yamato-daiwa/es-extensions-localization-russian";
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
RawObjectDataProcessor.setDefaultLocalization(
|
|
66
|
+
RawObjectDataProcessor.setDefaultLocalization(rawObjectDataProcessorLocalization__russian);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
|
|
@@ -92,7 +92,7 @@ Logger.setLocalization(LoggerLocalization__Russian);
|
|
|
92
92
|
[ имя класса ошибки ]Lozalization__Russian
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
Например, для **AlgorithmMismatchError** это будет **
|
|
95
|
+
Например, для **AlgorithmMismatchError** это будет **algorithmMismatchErrorLocalization__russian**.
|
|
96
96
|
Имена всех доступных классов ошибок можно посмотреть в
|
|
97
97
|
[официальной документации](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/README.md#logging).
|
|
98
98
|
|
|
@@ -101,9 +101,9 @@ Logger.setLocalization(LoggerLocalization__Russian);
|
|
|
101
101
|
|
|
102
102
|
```typescript
|
|
103
103
|
import { AlgorithmMismatchError } from "@yamato-daiwa/es-extensions";
|
|
104
|
-
import {
|
|
104
|
+
import { algorithmMismatchErrorLocalization__russian } from "@yamato-daiwa/es-extensions-localization-russian";
|
|
105
105
|
|
|
106
|
-
AlgorithmMismatchError.localization =
|
|
106
|
+
AlgorithmMismatchError.localization = algorithmMismatchErrorLocalization__russian;
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
|