@taiga-ui/i18n 2.23.0 → 2.24.0
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 +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
[](https://npmjs.com/package/@taiga-ui/i18n)
|
|
4
4
|
[](https://discord.gg/Us8d8JVaTg)
|
|
5
5
|
|
|
6
|
-
[Website](https://taiga-ui.dev) • [Documentation](https://taiga-ui.dev/getting-started) •
|
|
6
|
+
[Website](https://taiga-ui.dev) • [Documentation](https://taiga-ui.dev/getting-started) •
|
|
7
|
+
[CDK Wiki](https://github.com/TinkoffCreditSystems/taiga-ui/wiki) •
|
|
8
|
+
[Core team](https://github.com/TinkoffCreditSystems/taiga-ui/#core-team)
|
|
7
9
|
|
|
8
10
|
<!-- Do not change next line without i18n demo page -->
|
|
9
11
|
|
|
@@ -28,11 +30,13 @@ Supported languages:
|
|
|
28
30
|
|
|
29
31
|
<!-- Do not change next line without i18n demo page -->
|
|
30
32
|
|
|
31
|
-
It's a part of [**Taiga UI**](https://github.com/TinkoffCreditSystems/taiga-ui) that is fully-treeshakable Angular UI
|
|
33
|
+
It's a part of [**Taiga UI**](https://github.com/TinkoffCreditSystems/taiga-ui) that is fully-treeshakable Angular UI
|
|
34
|
+
Kit consisting of multiple base libraries and several add-ons
|
|
32
35
|
|
|
33
36
|
## How to install
|
|
34
37
|
|
|
35
|
-
If you have [@taiga-ui/core](https://npmjs.com/package/@taiga-ui/core) in your app, you do not need to install anything.
|
|
38
|
+
If you have [@taiga-ui/core](https://npmjs.com/package/@taiga-ui/core) in your app, you do not need to install anything.
|
|
39
|
+
i18n package is included as a dependency.
|
|
36
40
|
|
|
37
41
|
## How to use
|
|
38
42
|
|
|
@@ -56,7 +60,8 @@ import {TUI_LANGUAGE, TUI_RUSSIAN_LANGUAGE} from '@taiga-ui/i18n';
|
|
|
56
60
|
export class AppModule {}
|
|
57
61
|
```
|
|
58
62
|
|
|
59
|
-
You can also switch languages on the fly. Use `useFactory` or `useClass` with a service to make a stream of
|
|
63
|
+
You can also switch languages on the fly. Use `useFactory` or `useClass` with a service to make a stream of
|
|
64
|
+
dictionaries.
|
|
60
65
|
|
|
61
66
|
If you extremely struggle against every byte of your app, you can build a custom language dictionary with constants:
|
|
62
67
|
|
|
@@ -76,7 +81,8 @@ Feel free to add new languages!
|
|
|
76
81
|
|
|
77
82
|
1. Go to `languages` folder
|
|
78
83
|
2. Copy `english` folder and rename new folder with the name of language you speak
|
|
79
|
-
3. Translate entities in files. If you need some clarification, take a look at interfaces of entities. If you need more,
|
|
84
|
+
3. Translate entities in files. If you need some clarification, take a look at interfaces of entities. If you need more,
|
|
85
|
+
please write to us via issues or any other way of contact :)
|
|
80
86
|
|
|
81
87
|
Thank you!
|
|
82
88
|
|