mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 22:40:30 +00:00
Update crowdin for wiki localization
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -19,7 +19,7 @@ out
|
|||||||
ArchiSteamFarm/out
|
ArchiSteamFarm/out
|
||||||
|
|
||||||
# Ignore crowdin CLI secret
|
# Ignore crowdin CLI secret
|
||||||
tools/crowdin-cli/crowdin_identity.yaml
|
tools/crowdin-cli/crowdin_identity.yml
|
||||||
|
|
||||||
#################
|
#################
|
||||||
## Visual Studio
|
## Visual Studio
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
"preserve_hierarchy": true
|
|
||||||
files:
|
|
||||||
- source: /ArchiSteamFarm/Localization/Strings.resx
|
|
||||||
translation: /ArchiSteamFarm/Localization/Strings.%locale%.resx
|
|
||||||
- source: /ArchiSteamFarm/www/locale/strings.json
|
|
||||||
translation: /ArchiSteamFarm/www/locale/strings.%locale%.json
|
|
||||||
- source: /WebConfigGenerator/src/locale/strings.json
|
|
||||||
translation: /WebConfigGenerator/src/locale/%locale%.json
|
|
||||||
20
crowdin.yml
Normal file
20
crowdin.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
"preserve_hierarchy": true
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"source": "/ArchiSteamFarm/Localization/Strings.resx",
|
||||||
|
"translation": "/ArchiSteamFarm/Localization/Strings.%locale%.resx"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/ArchiSteamFarm/www/locale/strings.json",
|
||||||
|
"translation": "/ArchiSteamFarm/www/locale/strings.%locale%.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/WebConfigGenerator/src/locale/strings.json",
|
||||||
|
"translation": "/WebConfigGenerator/src/locale/%locale%.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/wiki/*.md",
|
||||||
|
"translation": "/wiki/locale/%file_name%-%locale%.%file_extension%",
|
||||||
|
"ignore": [ "/**/_*.md" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -15,7 +15,7 @@ This tool is being used by ASF developers for synchronization of strings/transla
|
|||||||
|
|
||||||
## Before you begin
|
## Before you begin
|
||||||
|
|
||||||
- Make sure that your `crowdin_identity.yaml` file exists - this is the file with login credentials that is not being committed to GitHub. If it doesn't exist yet (e.g. because you've just cloned the repo), create it from `crowdin_identity_example.yaml` and fill `api_key` that can be found **[here](http://l10n.asf.justarchi.net/project/archisteamfarm/settings#api)**.
|
- Make sure that your `crowdin_identity.yml` file exists - this is the file with login credentials that is not being committed to GitHub. If it doesn't exist yet (e.g. because you've just cloned the repo), create it from `crowdin_identity_example.yml` and fill `api_key` that can be found **[here](http://l10n.asf.justarchi.net/project/archisteamfarm/settings#api)**.
|
||||||
|
|
||||||
- Ensure that `crowdin` command is recognized by your OS.
|
- Ensure that `crowdin` command is recognized by your OS.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
pushd %~dp0
|
pushd %~dp0
|
||||||
cd ..\\..
|
cd ..\\..
|
||||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml download
|
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||||
git reset
|
git reset
|
||||||
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
|
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
|
||||||
git commit -m "Translations update"
|
git commit -m "Translations update"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
@echo off
|
@echo off
|
||||||
pushd %~dp0
|
pushd %~dp0
|
||||||
cd ..\\..
|
cd ..\\..
|
||||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml upload sources
|
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml download
|
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||||
git reset
|
git reset
|
||||||
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
|
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
|
||||||
git commit -m "Translations update"
|
git commit -m "Translations update"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@echo off
|
@echo off
|
||||||
pushd %~dp0
|
pushd %~dp0
|
||||||
cd ..\\..
|
cd ..\\..
|
||||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml upload sources
|
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||||
pause
|
pause
|
||||||
|
|||||||
Reference in New Issue
Block a user