Skip to content

Commit fe89faf

Browse files
committed
Updated translations setup
1 parent 2119b6f commit fe89faf

3 files changed

Lines changed: 100 additions & 296 deletions

File tree

Taskfile.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
version: "3"
22

3-
dotenv: [".task.env", ".env"]
3+
# https://taskfile.dev/usage/#env-files
4+
dotenv: [".env.local", ".env"]
45

56
includes:
6-
translation:
7-
taskfile: ./task/Taskfile.translation.yml
7+
translations:
8+
taskfile: ./task/Taskfile.translations.yml
89
vars:
910
TRANSLATION_MODULES:
1011
- ai_screening
@@ -217,3 +218,12 @@ tasks:
217218
cmds:
218219
- docker run --rm -v $(pwd):/work tmknom/prettier --write tests
219220
- docker run --rm -v $(pwd):/work tmknom/prettier --check tests
221+
222+
translations:import:
223+
desc: Import and update translations
224+
cmds:
225+
- task compose -- exec phpfpm bash -c '(cd web && ../vendor/bin/drush locale:import --type=customized --override=all da ../translations/custom-translations.da.po)'
226+
- task drush -- locale:check
227+
- task drush -- locale:update
228+
- task drush -- cache:rebuild
229+

task/Taskfile.translation.yml

Lines changed: 0 additions & 293 deletions
This file was deleted.

0 commit comments

Comments
 (0)