summaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/language.yml
blob: a5c6eaf358fea68b4da870c7394238f4f4c4030e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Compile UI translations

on:
  push:
    paths:
    - '.github/workflows/**'
    - 'language/**'
  pull_request:
    paths:
    - '.github/workflows/**'
    - 'language/**'

permissions:
  contents: read

jobs:
  build-language:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@main
      with:
        fetch-depth: 0
    - name: Compile message catalogs
      run: for x in language/*/*.po ; do python scripts/build/msgfmt.py --output-file "`dirname "$x"`/`basename "$x" .po`.mo" "$x" ; done
    - uses: actions/upload-artifact@main
      with:
        name: mame-language-${{ github.sha }}
        path: language/*/*.mo
        if-no-files-found: error