Skip to content

Commit a4f3afb

Browse files
authored
Merge terslang/new-script
Update docs to point to the newly added python script to process models
2 parents 1e19bf4 + 8f5b16c commit a4f3afb

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
env:
35-
HUGO_VERSION: 0.149.1
35+
HUGO_VERSION: 0.151.0
3636
steps:
3737
- name: Install Hugo CLI
3838
run: |

content/docs/building-from-source.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#+TITLE: Building from Source
22
#+DATE: 2025-09-22T12:32:28+05:30
3-
#+WEIGHT: 4
3+
#+WEIGHT: 3
44

55
Building localtranslate from source is a tedious and involved process
66
as most dependencies need to be compiled and installed from source.

content/docs/obtaining-firefox-models.org

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#+TITLE: Obtaining Firefox Models (for packagers only)
22
#+DATE: 2025-03-15T12:05:41Z
3-
#+WEIGHT: 2
3+
#+WEIGHT: 4
44

55
#+begin_quote
66
Note: The instructions below are meant for packagers.
@@ -52,8 +52,9 @@ firefox-translations-models/models/
5252
We need all the models, vocabs and shortlists in a single directory.
5353
We also need a ~registry.json~ associating models, vocabs and shortlists with language pairs.
5454

55-
Use this [[https://gist.github.com/akashters/985311118f8d9937957d4c57073e5ad4][github gist]] to flatten the folder structure and also to generate the ~registry.json~ file.
56-
save that bash script into ~firefox-translations-models/process-firefox-translation-models.py~
55+
Use the ~sripts/process-firefox-translations-models.py~ script provided with the [[https://github.com/terslang/LocalTranslate][source code]] to flatten the folder structure and also to
56+
generate the ~registry.json~ file.
57+
Copy that script into ~firefox-translations-models/process-firefox-translation-models.py~
5758

5859
#+begin_src bash
5960
cd firefox-translations-models
@@ -63,6 +64,8 @@ save that bash script into ~firefox-translations-models/process-firefox-translat
6364

6465
This should have created a new directory called ~flattened-models~ with all the models, vocabs and shortlists and a file in this directory called ~registry.json~ along with a copy of the ~LICENSE~ file.
6566

67+
The script also provides other options like ~--base-first~ and ~--silent~. Run it with ~--help~ flag to get more information.
68+
6669
* Verify your directory and registry.json
6770

6871
Go through the directory and ~registry.json~ and check if everything looks valid.

content/docs/quickstart-guide.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#+TITLE: Quickstart Guide
22
#+DATE: 2025-09-09T23:24:10+05:30
3-
#+WEIGHT: 3
3+
#+WEIGHT: 2
44

55
Currently, localtranslate is only offered as a flatpak. You can find it on [[https://flathub.org/apps/dev.ters.LocalTranslate][Flathub]].
66

0 commit comments

Comments
 (0)