Add i18n system
This commit is contained in:
parent
d5f46925a3
commit
77be338e46
11 changed files with 340 additions and 17 deletions
3
.github/workflows/ci-otapi3.yml
vendored
3
.github/workflows/ci-otapi3.yml
vendored
|
|
@ -33,6 +33,9 @@ jobs:
|
|||
with:
|
||||
dotnet-version: '6.0.100'
|
||||
|
||||
- name: Install msgfmt
|
||||
run: sudo apt-get install -y gettext
|
||||
|
||||
- name: Produce build
|
||||
run: |
|
||||
cd TShockLauncher
|
||||
|
|
|
|||
23
.github/workflows/i18n-extract.yml
vendored
Normal file
23
.github/workflows/i18n-extract.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: i18n extraction
|
||||
on:
|
||||
push:
|
||||
branches: [ general-devel ]
|
||||
jobs:
|
||||
extract:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: |
|
||||
3.1.x
|
||||
6.0.100
|
||||
|
||||
- name: Run i18n checking/extraction script
|
||||
run: ./.github/scripts/i18n.sh
|
||||
shell: bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue