i18n-works 0.1.5 → 0.1.6
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 +15 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
1
3
|
# 🌍 i18n-works (AI-powered i18n plugin) & CLI tools
|
|
2
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/i18n-works)
|
|
6
|
+
[](https://www.npmjs.com/package/i18n-works)
|
|
7
|
+
[](https://www.npmjs.com/package/i18n-works)
|
|
8
|
+
[](https://github.com/rand0mC0d3r/i18n-works/actions/workflows/release.yml)
|
|
9
|
+
[](https://github.com/rand0mC0d3r/i18n-works/releases)
|
|
10
|
+
[](https://github.com/rand0mC0d3r/i18n-works/commits/main)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
|
|
3
13
|
**Build/Run-time localization for typical `t()` strings.** Wrap user-facing copy in `t("...")` imported from `virtual:i18n-works`. The compiler extracts each string, gives it a stable ID, and can translate it with an AI provider. Bonus: `tauto()` and `tpick()` helpers for context-aware and conditional translations.
|
|
4
14
|
|
|
5
15
|
> [!WARNING]
|
|
6
16
|
> **Beta.** Configuration options and `.i18n-works/` file formats are meant to stay stable, but review the [known limitations](#-known-limitations) before shipping to production. Pin the version while in beta.
|
|
7
17
|
|
|
8
|
-
|
|
9
18
|

|
|
10
19
|
|
|
11
|
-
|
|
12
20
|
### TL;DR / Crash Course for impatient developers
|
|
13
21
|
|
|
14
22
|
The plugin extracts the strings passed to the exposed functions (like `t()`, `tt()`, `tauto()`, and `tpick()`), assigns stable IDs, and translates them with your chosen AI provider. Use the build or runtime delivery mode to get localized bundles.
|
|
@@ -59,15 +67,17 @@ tpick(
|
|
|
59
67
|
|
|
60
68
|
---
|
|
61
69
|
|
|
62
|
-
|
|
70
|
+
## Documentation
|
|
63
71
|
|
|
72
|
+

|
|
64
73
|
|
|
65
|
-
|
|
74
|
+
Want to find out more? Check out the detailed documentation below to explore features, installation steps, configuration options, and examples of how to use i18n-works effectively in your project.
|
|
66
75
|
|
|
76
|
+
[**📖 Explore the i18n-works Documentation**](https://rand0mc0d3r.github.io/i18n-works/)
|
|
67
77
|
|
|
68
78
|
## License
|
|
69
79
|
|
|
70
|
-
i18n-works is licensed under the
|
|
80
|
+
i18n-works is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
|
|
71
81
|
|
|
72
82
|
## Known Limitations
|
|
73
83
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "i18n-works",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Build-time AI localization for strings marked with t() in React applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/rand0mC0d3r/i18n-works/issues"
|
|
19
19
|
},
|
|
20
|
-
"license": "
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "git+https://github.com/rand0mC0d3r/i18n-works.git"
|