diff-mindustry-bundles 1.0.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/LICENSE +21 -0
- package/README.md +45 -0
- package/README.template.md +29 -0
- package/build/index.js +3503 -0
- package/package.json +24 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 aliser
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# diff-mindustry-bundles
|
|
2
|
+
|
|
3
|
+
A CLI utility to view missing/extra/untranslated keys between bundles (localizations) for Mindustry.
|
|
4
|
+
|
|
5
|
+
# Requirements
|
|
6
|
+
|
|
7
|
+
The utility is hosted on NPM, so to run it you will:
|
|
8
|
+
- A JS package manager that can run packages, so `npm` (`npx`), `bun` (`bunx`), etc.
|
|
9
|
+
- Local Mindustry repository.
|
|
10
|
+
|
|
11
|
+
# Usage
|
|
12
|
+
|
|
13
|
+
The readme will assume usage of `bun` (`bunx`).
|
|
14
|
+
|
|
15
|
+
Navigate to the Mindustry repository you've cloned locally.
|
|
16
|
+
|
|
17
|
+
Then run:
|
|
18
|
+
```bash
|
|
19
|
+
bunx diff-mindustry-bundles <translation_bundle>
|
|
20
|
+
```
|
|
21
|
+
where `<translation_bundle>` is the name of a bundle you want to check (no extension), for example: `bundle_de`.
|
|
22
|
+
```bash
|
|
23
|
+
bunx diff-mindustry-bundles bundle_de
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Available options:
|
|
27
|
+
```bash
|
|
28
|
+
Usage: diff-mindustry-bundles [options] <top-bundle> [base-bundle]
|
|
29
|
+
|
|
30
|
+
A handy utility to view missing/extra/untranslated keys between bundles.
|
|
31
|
+
|
|
32
|
+
Arguments:
|
|
33
|
+
top-bundle Bundle with your localization (no extension). For
|
|
34
|
+
example: 'bundle_ru'
|
|
35
|
+
base-bundle Bundle to compare with. (default: "bundle")
|
|
36
|
+
|
|
37
|
+
Options:
|
|
38
|
+
-V, --version output the version number
|
|
39
|
+
--base-dir <dirpath> Path to the directory containing Mindustry (default:
|
|
40
|
+
".")
|
|
41
|
+
--bundles-dir <dirpath> Path to the directory containing bundles. Relative to
|
|
42
|
+
the base directory. (default: "core/assets/bundles")
|
|
43
|
+
-h, --help display help for command
|
|
44
|
+
|
|
45
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# diff-mindustry-bundles
|
|
2
|
+
|
|
3
|
+
A CLI utility to view missing/extra/untranslated keys between bundles (localizations) for Mindustry.
|
|
4
|
+
|
|
5
|
+
# Requirements
|
|
6
|
+
|
|
7
|
+
The utility is hosted on NPM, so to run it you will:
|
|
8
|
+
- A JS package manager that can run packages, so `npm` (`npx`), `bun` (`bunx`), etc.
|
|
9
|
+
- Local Mindustry repository.
|
|
10
|
+
|
|
11
|
+
# Usage
|
|
12
|
+
|
|
13
|
+
The readme will assume usage of `bun` (`bunx`).
|
|
14
|
+
|
|
15
|
+
Navigate to the Mindustry repository you've cloned locally.
|
|
16
|
+
|
|
17
|
+
Then run:
|
|
18
|
+
```bash
|
|
19
|
+
bunx diff-mindustry-bundles <translation_bundle>
|
|
20
|
+
```
|
|
21
|
+
where `<translation_bundle>` is the name of a bundle you want to check (no extension), for example: `bundle_de`.
|
|
22
|
+
```bash
|
|
23
|
+
bunx diff-mindustry-bundles bundle_de
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Available options:
|
|
27
|
+
```bash
|
|
28
|
+
%help_output
|
|
29
|
+
```
|