You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utils/localization/generate-images/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,18 @@
2
2
3
3
This tool can be used to automatically generate compressed main menu images for all locales.
4
4
5
+
## Requirements
6
+
7
+
-[Inter font](https://rsms.me/inter/)
8
+
-[Chrome browser](https://www.google.com/chrome/)
9
+
-[Node.JS](https://nodejs.org/en/download)
10
+
5
11
## Usage
6
12
7
13
1. Run `git checkout l10n/master` to switch to the current Crowdin sync branch so you're working with the latest pending locales (make sure the branch is up to date with `git pull`)
8
14
2. Run `cd utils/localization/generate-images`
9
15
3. Run `npm ci` to install npm dependencies
10
-
4. Run `npm start` to start the generator
11
-
5. Run `git status` to confirm that all updated images have now been generated in the `/Shared/data/MTA San Andreas/MTA/locale` directory
12
-
6. Commit the updated image files into the `l10n/master` branch
16
+
4. Open `node_modules/@squoosh/lib/index.js` and remove `globalThis.navigator={hardwareConcurrency:os.cpus().length};` on line 30
17
+
5. Run `npm start` to start the generator
18
+
6. Run `git status` to confirm that all updated images have now been generated in the `/Shared/data/MTA San Andreas/MTA/locale` directory
19
+
7. Commit the updated image files into the `l10n/master` branch
0 commit comments