gt-i18n 0.3.3 → 0.3.4
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/CHANGELOG.md +8 -0
- package/README.md +35 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# gt-i18n
|
|
2
2
|
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`eb07e8c`](https://github.com/generaltranslation/gt/commit/eb07e8ce1b610551437b40f96c72ac76d0af7b67)]:
|
|
8
|
+
- generaltranslation@8.1.7
|
|
9
|
+
- @generaltranslation/supported-locales@2.0.38
|
|
10
|
+
|
|
3
11
|
## 0.3.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://generaltranslation.com/docs/i18n">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://generaltranslation.com/gt-logo-dark.svg">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://generaltranslation.com/gt-logo-light.svg">
|
|
6
|
+
<img alt="General Translation" src="https://generaltranslation.com/gt-logo-light.svg" width="100" height="100">
|
|
7
|
+
</picture>
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://generaltranslation.com/docs/i18n"><strong>Documentation</strong></a> · <a href="https://github.com/generaltranslation/gt/issues">Report Bug</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
# gt-i18n
|
|
16
|
+
|
|
17
|
+
Pure JavaScript i18n library for General Translation.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install gt-i18n
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
import { initGT, t } from 'gt-i18n';
|
|
29
|
+
|
|
30
|
+
initGT();
|
|
31
|
+
|
|
32
|
+
const message = t('Hello, world!');
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
See the [full documentation](https://generaltranslation.com/docs/i18n) for guides and API reference.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-i18n",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Pure JS i18n library for General Translation",
|
|
5
5
|
"main": "dist/index.cjs.min.cjs",
|
|
6
6
|
"module": "dist/index.esm.min.mjs",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"definition": "dist/index.d.ts"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@generaltranslation/supported-locales": "2.0.
|
|
49
|
-
"generaltranslation": "8.1.
|
|
48
|
+
"@generaltranslation/supported-locales": "2.0.38",
|
|
49
|
+
"generaltranslation": "8.1.7"
|
|
50
50
|
},
|
|
51
51
|
"exports": {
|
|
52
52
|
".": {
|