Skip to content

Commit

Permalink
fix: add leading slash to dest in crowdin config (#23)
Browse files Browse the repository at this point in the history
* fix: add leading slash to dest in crowdin config

* chore: add cron scheduler to crowdin sync

---------

Co-authored-by: Christoffer Jahren <christoffer.jahren@schibsted.com>
  • Loading branch information
j4hr3n and Christoffer Jahren committed Oct 10, 2023
1 parent 18ad7bf commit d1170b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/crowdin-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Crowdin Synchronisation

on:
push:
branches: [next, main]
branches: [next]
schedule:
# We need a schedule to detect translations from Crowdin. Every 2nd hour from 8-17
# on weekdays is a proposed starting point. You may change the minute counter to
# avoid crashing with other workflows.
- cron: "0 8-17/2 * * 1-5" # At minute 0 past every 2nd hour from 8 through 17 on every day-of-week from Monday through Friday (https://crontab.guru/#0_8-17/2_*_*_1-5)

jobs:
synchronize-with-crowdin:
Expand Down
2 changes: 1 addition & 1 deletion scripts/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const files = [];
Object.values(icons).map(iconFolderName => {
files.push({
source: `/src/raw/${iconFolderName}/locales/en/messages.po`, // Path to the source file
dest: `icons/src/raw/${iconFolderName}/messages.po`, // Destination path in the repository
dest: `/icons/src/raw/${iconFolderName}/messages.po`, // Destination path in the repository
translation: `/src/raw/${iconFolderName}/locales/%two_letters_code%/messages.po` // Path to the translation files
})
});
Expand Down

0 comments on commit d1170b6

Please sign in to comment.