From 3d4450f99685b83c81c8390594f34c540be3633e Mon Sep 17 00:00:00 2001 From: Maksim Petrov Date: Mon, 13 Mar 2023 12:40:04 +0100 Subject: [PATCH 1/2] Revert "Removing Localize and OneLocBuild folder" This reverts commit 1ba72723eb68dafe0ac83fea193153ce7d192b33. --- Localize/LocProject.json | 14 +++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 44 +++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ .../en-US/resources.resjson.lcl | 59 ++++++++++ Localize/localize-pipeline.yml | 109 ++++++++++++++++++ 16 files changed, 934 insertions(+) create mode 100644 Localize/LocProject.json create mode 100644 Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl create mode 100644 Localize/localize-pipeline.yml diff --git a/Localize/LocProject.json b/Localize/LocProject.json new file mode 100644 index 0000000..1d0e7c8 --- /dev/null +++ b/Localize/LocProject.json @@ -0,0 +1,14 @@ +{ + "Projects": [ + { + "LocItems": [ + { + "Languages": "de-DE;es-ES;fr-FR;it-IT;ja-JP;ko-KR;ru-RU;zh-CN;zh-TW", + "SourceFile": "Strings\\resources.resjson\\en-US\\resources.resjson", + "CopyOption": "LangIDOnPath", + "OutputPath": "Strings\\resources.resjson" + } + ] + } + ] +} \ No newline at end of file diff --git a/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..cc78da5 --- /dev/null +++ b/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..cc78da5 --- /dev/null +++ b/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..cae6bd0 --- /dev/null +++ b/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..c628b62 --- /dev/null +++ b/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..c628b62 --- /dev/null +++ b/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..ee2a4ef --- /dev/null +++ b/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..ee2a4ef --- /dev/null +++ b/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..9f8d02f --- /dev/null +++ b/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..318c584 --- /dev/null +++ b/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..318c584 --- /dev/null +++ b/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..2b8521e --- /dev/null +++ b/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..7dc50a0 --- /dev/null +++ b/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..e01b33c --- /dev/null +++ b/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl new file mode 100644 index 0000000..9009e86 --- /dev/null +++ b/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Localize/localize-pipeline.yml b/Localize/localize-pipeline.yml new file mode 100644 index 0000000..b700a14 --- /dev/null +++ b/Localize/localize-pipeline.yml @@ -0,0 +1,109 @@ +name: $(Date:MMddyy)$(Rev:.rrrr) + +trigger: none + +schedules: +- cron: 0 8 * * Mon # mm HH DD MM DW + displayName: Localization update + branches: + include: + - Localization + always: true + +stages: +- stage: __default + jobs: + - job: LocalizationUpdate + pool: + vmImage: windows-latest + steps: + + - checkout: self + persistCredentials: true + + - powershell: | + $sprintInfo = Invoke-WebRequest https://whatsprintis.it -Headers @{"Accept"= "application/json"} | ConvertFrom-Json + if (($env:PR_CREATION_ENABLED -eq 'True') -and (($sprintInfo.week -eq 3) -or ($env:BUILD_REASON -eq 'Manual'))) + { + Write-Host "shouldCreatePR was set to true" + Write-Host "##vso[task.setvariable variable=shouldCreatePR]$($true)" + } + else + { + Write-Host "shouldCreatePR was set to false" + Write-Host "##vso[task.setvariable variable=shouldCreatePR]$($false)" + } + displayName: "Determine the number of the week in the sprint and sprint number" + - powershell: | + git config --global user.email "$(github_email)" + git config --global user.name "$(username)" + git checkout -b Localization origin/Localization + git merge origin/master + git push origin Localization + displayName: "Sync with master branch" + condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) + - task: OneLocBuild@2 + condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) + inputs: + locProj: 'Localize/LocProject.json' + outDir: '$(Build.ArtifactStagingDirectory)' + packageSourceAuth: 'patAuth' + patVariable: '$(OneLocBuildPAT)' + isCreatePrSelected: $(shouldCreatePR) + repoType: 'gitHub' + prSourceBranchPrefix: 'Localize' + gitHubPatVariable: '$(GitHubPAT)' + isAutoCompletePrSelected: true + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + + - task: PublishBuildArtifacts@1 + condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) + displayName: 'Publish an artifact' + + - powershell: | + $date= Get-Date -Format "MMddyyyy" + $updateBranch="Localization-update_$date" + echo "##vso[task.setvariable variable=updateBranch]$updateBranch" + + git checkout -b $updateBranch + + if (Test-Path -Path Localize) { + Remove-Item -Recurse -Force Localize + } + + if (Test-Path -Path OneLocBuild) { + Remove-Item -Recurse -Force OneLocBuild + } + + git add -A + git commit -m "Removing Localize and OneLocBuild folder" + git push origin $updateBranch + displayName: Create and push localization update branch + condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual'))) + + - task: PowerShell@2 + inputs: + filePath: 'open-pullrequest.ps1' + arguments: "-SourceBranch $(updateBranch)" + failOnStderr: true + env: + GH_TOKEN: '$(GitHubPAT)' + displayName: Open a PR + condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual'))) + + # Two next tasks are used to notify about Localization update PRs + # Notifications are set by POST method to MS Teams webhook + # Body of message is compiled as Office 365 connector card + # More details about cards - https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#office-365-connector-card + - powershell: .\send-notifications.ps1 -IsPRCreated $true -RepoName "Tool-lib" + env: + TEAMS_WEBHOOK: $(MSTeamsUri) + displayName: 'Send MS Teams notification about PR opened' + condition: and(succeeded(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')) + + - powershell: .\send-notifications.ps1 -IsPRCreated $false -RepoName "Tool-lib" + env: + TEAMS_WEBHOOK: $(MSTeamsUri) + displayName: 'Send MS Teams notification about error' + condition: and(failed(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')) From 7ac933d32d787ac0a283eff7f7077b6bcdb62f91 Mon Sep 17 00:00:00 2001 From: vmapetr Date: Mon, 28 Aug 2023 08:01:46 +0000 Subject: [PATCH 2/2] Removing Localize and OneLocBuild folder --- Localize/LocProject.json | 14 --- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 44 ------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- .../en-US/resources.resjson.lcl | 59 ---------- Localize/localize-pipeline.yml | 109 ------------------ 16 files changed, 934 deletions(-) delete mode 100644 Localize/LocProject.json delete mode 100644 Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl delete mode 100644 Localize/localize-pipeline.yml diff --git a/Localize/LocProject.json b/Localize/LocProject.json deleted file mode 100644 index 1d0e7c8..0000000 --- a/Localize/LocProject.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "Projects": [ - { - "LocItems": [ - { - "Languages": "de-DE;es-ES;fr-FR;it-IT;ja-JP;ko-KR;ru-RU;zh-CN;zh-TW", - "SourceFile": "Strings\\resources.resjson\\en-US\\resources.resjson", - "CopyOption": "LangIDOnPath", - "OutputPath": "Strings\\resources.resjson" - } - ] - } - ] -} \ No newline at end of file diff --git a/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index cc78da5..0000000 --- a/Localize/loc/de-DE/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index cc78da5..0000000 --- a/Localize/loc/de-de/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index cae6bd0..0000000 --- a/Localize/loc/en-US/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index c628b62..0000000 --- a/Localize/loc/es-ES/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index c628b62..0000000 --- a/Localize/loc/es-es/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index ee2a4ef..0000000 --- a/Localize/loc/fr-FR/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index ee2a4ef..0000000 --- a/Localize/loc/fr-fr/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 9f8d02f..0000000 --- a/Localize/loc/it-IT/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 318c584..0000000 --- a/Localize/loc/ja-JP/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 318c584..0000000 --- a/Localize/loc/ja-jp/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 2b8521e..0000000 --- a/Localize/loc/ko-KR/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 7dc50a0..0000000 --- a/Localize/loc/ru-RU/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index e01b33c..0000000 --- a/Localize/loc/zh-CN/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl b/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl deleted file mode 100644 index 9009e86..0000000 --- a/Localize/loc/zh-TW/Strings/resources.resjson/en-US/resources.resjson.lcl +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Localize/localize-pipeline.yml b/Localize/localize-pipeline.yml deleted file mode 100644 index b700a14..0000000 --- a/Localize/localize-pipeline.yml +++ /dev/null @@ -1,109 +0,0 @@ -name: $(Date:MMddyy)$(Rev:.rrrr) - -trigger: none - -schedules: -- cron: 0 8 * * Mon # mm HH DD MM DW - displayName: Localization update - branches: - include: - - Localization - always: true - -stages: -- stage: __default - jobs: - - job: LocalizationUpdate - pool: - vmImage: windows-latest - steps: - - - checkout: self - persistCredentials: true - - - powershell: | - $sprintInfo = Invoke-WebRequest https://whatsprintis.it -Headers @{"Accept"= "application/json"} | ConvertFrom-Json - if (($env:PR_CREATION_ENABLED -eq 'True') -and (($sprintInfo.week -eq 3) -or ($env:BUILD_REASON -eq 'Manual'))) - { - Write-Host "shouldCreatePR was set to true" - Write-Host "##vso[task.setvariable variable=shouldCreatePR]$($true)" - } - else - { - Write-Host "shouldCreatePR was set to false" - Write-Host "##vso[task.setvariable variable=shouldCreatePR]$($false)" - } - displayName: "Determine the number of the week in the sprint and sprint number" - - powershell: | - git config --global user.email "$(github_email)" - git config --global user.name "$(username)" - git checkout -b Localization origin/Localization - git merge origin/master - git push origin Localization - displayName: "Sync with master branch" - condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) - - task: OneLocBuild@2 - condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) - inputs: - locProj: 'Localize/LocProject.json' - outDir: '$(Build.ArtifactStagingDirectory)' - packageSourceAuth: 'patAuth' - patVariable: '$(OneLocBuildPAT)' - isCreatePrSelected: $(shouldCreatePR) - repoType: 'gitHub' - prSourceBranchPrefix: 'Localize' - gitHubPatVariable: '$(GitHubPAT)' - isAutoCompletePrSelected: true - env: - SYSTEM_ACCESSTOKEN: $(System.AccessToken) - - - task: PublishBuildArtifacts@1 - condition: and(succeeded(), in(variables['build.reason'], 'Schedule', 'Manual')) - displayName: 'Publish an artifact' - - - powershell: | - $date= Get-Date -Format "MMddyyyy" - $updateBranch="Localization-update_$date" - echo "##vso[task.setvariable variable=updateBranch]$updateBranch" - - git checkout -b $updateBranch - - if (Test-Path -Path Localize) { - Remove-Item -Recurse -Force Localize - } - - if (Test-Path -Path OneLocBuild) { - Remove-Item -Recurse -Force OneLocBuild - } - - git add -A - git commit -m "Removing Localize and OneLocBuild folder" - git push origin $updateBranch - displayName: Create and push localization update branch - condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual'))) - - - task: PowerShell@2 - inputs: - filePath: 'open-pullrequest.ps1' - arguments: "-SourceBranch $(updateBranch)" - failOnStderr: true - env: - GH_TOKEN: '$(GitHubPAT)' - displayName: Open a PR - condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual'))) - - # Two next tasks are used to notify about Localization update PRs - # Notifications are set by POST method to MS Teams webhook - # Body of message is compiled as Office 365 connector card - # More details about cards - https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#office-365-connector-card - - powershell: .\send-notifications.ps1 -IsPRCreated $true -RepoName "Tool-lib" - env: - TEAMS_WEBHOOK: $(MSTeamsUri) - displayName: 'Send MS Teams notification about PR opened' - condition: and(succeeded(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')) - - - powershell: .\send-notifications.ps1 -IsPRCreated $false -RepoName "Tool-lib" - env: - TEAMS_WEBHOOK: $(MSTeamsUri) - displayName: 'Send MS Teams notification about error' - condition: and(failed(), eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule'))