diff --git a/crowdin.yml b/crowdin.yml index c55f2a645..151d57cb3 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -4,6 +4,10 @@ "source": "/ArchiSteamFarm/Localization/Strings.resx", "translation": "/ArchiSteamFarm/Localization/Strings.%locale%.resx" }, + { + "source": "/ASF-ui/src/i18n/locale/default.json", + "translation": "/ASF-ui/src/i18n/locale/%locale%.json" + }, { "source": "/ASF-WebConfigGenerator/src/locale/strings.json", "translation": "/ASF-WebConfigGenerator/src/locale/%locale%.json" diff --git a/tools/crowdin-cli/archi_download.ps1 b/tools/crowdin-cli/archi_download.ps1 index 505287f1f..3540eb8d9 100644 --- a/tools/crowdin-cli/archi_download.ps1 +++ b/tools/crowdin-cli/archi_download.ps1 @@ -8,6 +8,12 @@ Set-Location ..\\.. crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download git reset +Push-Location -Path ASF-ui +git pull +git add -A "src\i18n\locale\*.json" +git commit -m "Translations update" +Pop-Location + Push-Location -Path ASF-WebConfigGenerator git pull git add -A "src\locale\*.json" @@ -20,7 +26,7 @@ git add -A "locale\*.md" git commit -m "Translations update" Pop-Location -git add -A "ArchiSteamFarm\Localization\*.resx" "ASF-WebConfigGenerator" "wiki" +git add -A "ArchiSteamFarm\Localization\*.resx" "ASF-ui" "ASF-WebConfigGenerator" "wiki" git commit -m "Translations update" git push --recurse-submodules=on-demand diff --git a/tools/crowdin-cli/archi_download.sh b/tools/crowdin-cli/archi_download.sh index 22bcecd48..4430602b2 100755 --- a/tools/crowdin-cli/archi_download.sh +++ b/tools/crowdin-cli/archi_download.sh @@ -7,6 +7,12 @@ cd ../.. crowdin -b master --identity tools/crowdin-cli/crowdin_identity.yml download git reset +cd ASF-ui +git pull +git add -A "src/i18n/locale/*.json" +git commit -m "Translations update" +cd .. + cd ASF-WebConfigGenerator git pull git add -A "src/locale/*.json" @@ -19,7 +25,7 @@ git add -A "locale/*.md" git commit -m "Translations update" cd .. -git add -A "ArchiSteamFarm/Localization/*.resx" "ASF-WebConfigGenerator" "wiki" +git add -A "ArchiSteamFarm/Localization/*.resx" "ASF-ui" "ASF-WebConfigGenerator" "wiki" git commit -m "Translations update" git push --recurse-submodules=on-demand diff --git a/tools/crowdin-cli/archi_sync.ps1 b/tools/crowdin-cli/archi_sync.ps1 index 0c8df67d9..be2d75092 100644 --- a/tools/crowdin-cli/archi_sync.ps1 +++ b/tools/crowdin-cli/archi_sync.ps1 @@ -5,6 +5,12 @@ $ProgressPreference = 'SilentlyContinue' Set-Location $PSScriptRoot Set-Location ..\\.. +Push-Location -Path ASF-ui +git reset --hard +git clean -fd +git pull +Pop-Location + Push-Location -Path ASF-WebConfigGenerator git reset --hard git clean -fd @@ -22,6 +28,12 @@ crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sou crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download git reset +Push-Location -Path ASF-ui +git pull +git add -A "src\i18n\locale\*.json" +git commit -m "Translations update" +Pop-Location + Push-Location -Path ASF-WebConfigGenerator git pull git add -A "src\locale\*.json" @@ -34,7 +46,7 @@ git add -A "locale\*.md" git commit -m "Translations update" Pop-Location -git add -A "ArchiSteamFarm\Localization\*.resx" "ASF-WebConfigGenerator" "wiki" +git add -A "ArchiSteamFarm\Localization\*.resx" "ASF-ui" "ASF-WebConfigGenerator" "wiki" git commit -m "Translations update" git push --recurse-submodules=on-demand diff --git a/tools/crowdin-cli/archi_sync.sh b/tools/crowdin-cli/archi_sync.sh index 12350bfe7..405e6060d 100755 --- a/tools/crowdin-cli/archi_sync.sh +++ b/tools/crowdin-cli/archi_sync.sh @@ -4,6 +4,12 @@ set -eu cd "$(dirname "$(readlink -f "$0")")" cd ../.. +cd ASF-ui +git reset --hard +git clean -fd +git pull +cd .. + cd ASF-WebConfigGenerator git reset --hard git clean -fd @@ -21,6 +27,12 @@ crowdin -b master --identity tools/crowdin-cli/crowdin_identity.yml upload sourc crowdin -b master --identity tools/crowdin-cli/crowdin_identity.yml download git reset +cd ASF-ui +git pull +git add -A "src/i18n/locale/*.json" +git commit -m "Translations update" +cd .. + cd ASF-WebConfigGenerator git pull git add -A "src/locale/*.json" @@ -33,7 +45,7 @@ git add -A "locale/*.md" git commit -m "Translations update" cd .. -git add -A "ArchiSteamFarm/Localization/*.resx" "ASF-WebConfigGenerator" "wiki" +git add -A "ArchiSteamFarm/Localization/*.resx" "ASF-ui" "ASF-WebConfigGenerator" "wiki" git commit -m "Translations update" git push --recurse-submodules=on-demand diff --git a/tools/crowdin-cli/archi_upload.ps1 b/tools/crowdin-cli/archi_upload.ps1 index ca323f0ee..5fb7e3935 100644 --- a/tools/crowdin-cli/archi_upload.ps1 +++ b/tools/crowdin-cli/archi_upload.ps1 @@ -5,6 +5,12 @@ $ProgressPreference = 'SilentlyContinue' Set-Location $PSScriptRoot Set-Location ..\\.. +Push-Location -Path ASF-ui +git reset --hard +git clean -fd +git pull +Pop-Location + Push-Location -Path ASF-WebConfigGenerator git reset --hard git clean -fd diff --git a/tools/crowdin-cli/archi_upload.sh b/tools/crowdin-cli/archi_upload.sh index d0812d3d9..aa207429d 100755 --- a/tools/crowdin-cli/archi_upload.sh +++ b/tools/crowdin-cli/archi_upload.sh @@ -4,6 +4,12 @@ set -eu cd "$(dirname "$(readlink -f "$0")")" cd ../.. +cd ASF-ui +git reset --hard +git clean -fd +git pull +cd .. + cd ASF-WebConfigGenerator git reset --hard git clean -fd