Generate i18n files on ci/cd
This commit is contained in:
parent
446b4639c7
commit
fdec12d311
5
.github/workflows/continuous_integration.yml
vendored
5
.github/workflows/continuous_integration.yml
vendored
@ -10,7 +10,6 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
||||
continuous-integration-front:
|
||||
name: "Continuous Integration Front"
|
||||
|
||||
@ -46,6 +45,10 @@ jobs:
|
||||
run: ./templater.sh
|
||||
working-directory: "front"
|
||||
|
||||
- name: "Generate i18n files"
|
||||
run: yarn run typesafe-i18n
|
||||
working-directory: "front"
|
||||
|
||||
- name: "Build"
|
||||
run: yarn run build
|
||||
env:
|
||||
|
4
.github/workflows/push-to-npm.yml
vendored
4
.github/workflows/push-to-npm.yml
vendored
@ -43,6 +43,10 @@ jobs:
|
||||
run: ./templater.sh
|
||||
working-directory: "front"
|
||||
|
||||
- name: "Generate i18n files"
|
||||
run: yarn run typesafe-i18n
|
||||
working-directory: "front"
|
||||
|
||||
- name: "Build"
|
||||
run: yarn run build-typings
|
||||
env:
|
||||
|
@ -1,2 +1,5 @@
|
||||
src/Messages/generated
|
||||
src/Messages/JsonMessages
|
||||
src/i18n/i18n-svelte.ts
|
||||
src/i18n/i18n-types.ts
|
||||
src/i18n/i18n-util.ts
|
||||
|
@ -82,7 +82,7 @@
|
||||
"svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore,a11y-media-has-caption:ignore\"",
|
||||
"pretty": "yarn prettier --write 'src/**/*.{ts,svelte}'",
|
||||
"pretty-check": "yarn prettier --check 'src/**/*.{ts,svelte}'",
|
||||
"typesafe-i18n": "typesafe-i18n"
|
||||
"typesafe-i18n": "typesafe-i18n --no-watch"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.svelte": [
|
||||
|
Loading…
Reference in New Issue
Block a user