| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 66820a5 commit 6b6f0d2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,3 +48,36 @@ jobs: | |||
| 48 | 48 | with: | |
| 49 | 49 | name: doc-html-${{ matrix.branch }} | |
| 50 | 50 | path: www/ | |
| 51 | + | ||
| 52 | + translations: | ||
| 53 | + runs-on: ${{ matrix.os }} | ||
| 54 | + strategy: | ||
| 55 | + fail-fast: false | ||
| 56 | + matrix: | ||
| 57 | + os: ["ubuntu-latest", "windows-latest"] | ||
| 58 | + steps: | ||
| 59 | + - uses: actions/checkout@v4 | ||
| 60 | + - uses: actions/setup-python@v5 | ||
| 61 | + with: | ||
| 62 | + python-version: 3 | ||
| 63 | + allow-prereleases: true | ||
| 64 | + cache: pip | ||
| 65 | + - name: Install dependencies | ||
| 66 | + run: | | ||
| 67 | + pip install -U pip setuptools | ||
| 68 | + pip install Babel jinja2 | ||
| 69 | + - run: python3 babel_runner.py extract | ||
| 70 | + - run: python3 babel_runner.py init -l pt_BR | ||
| 71 | + - run: python3 babel_runner.py update | ||
| 72 | + - run: python3 babel_runner.py update -l pt_BR | ||
| 73 | + - run: python3 babel_runner.py compile | ||
| 74 | + - run: python3 babel_runner.py compile -l pt_BR | ||
| 75 | + - name: Print .pot file | ||
| 76 | + shell: bash | ||
| 77 | + run: cat locales/messages.pot | ||
| 78 | + - name: Print .po file | ||
| 79 | + shell: bash | ||
| 80 | + run: cat locales/pt_BR/LC_MESSAGES/messages.po | ||
| 81 | + - name: list files in locales dir | ||
| 82 | + shell: bash | ||
| 83 | + run: ls -R locales/ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments