Skip to content

Commit

Permalink
Added logs for importing localizations (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksSavelev authored Jun 7, 2024
1 parent 40f0940 commit ea75d19
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/updateLocalizations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,20 @@ jobs:
BRANCH: ${{needs.update_en_localization.outputs.branch-name}}
- name: Copy translations to submodules
run: |
for file in ./localizations/*/stringResources/*/resources.resjson; do
if [[ $file == *"/en-US/"* ]]; then
continue
fi
substring="localizations/"
newLocation="${file/$substring/visuals/}"
test -f $newLocation || mkdir -p ${newLocation%resources.resjson*}
cp $file $newLocation;
for visualPath in ./localizations/*; do
for filePath in $visualPath/stringResources/*/resources.resjson; do
if [[ $filePath == *"/en-US/"* ]]; then
continue
fi
repoName=$(echo $visualPath| cut -d'/' -f 3)
echo "::group::Copy to $repoName"
substring="localizations/"
newLocation="${filePath/$substring/visuals/}"
test -f $newLocation || mkdir -p ${newLocation%resources.resjson*}
echo "$filePath to $newLocation"
cp $filePath $newLocation;
echo "::endgroup::"
done;
done;
- name: Commit and push new changes to submodules
run: |
Expand Down

0 comments on commit ea75d19

Please sign in to comment.