-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More updates... ugh, wish this would work
- Loading branch information
1 parent
f85735b
commit f41865f
Showing
5 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# resource-translator | ||
A GitHub action that uses Azure Cognitive Services translator to generate .resx resource files | ||
# 🌐 Resource translator | ||
|
||
A GitHub action that uses Azure Cognitive Services Translator to generate .resx resource files given a source .resx file. | ||
|
||
## Usage | ||
|
||
```yml | ||
# This is a basic workflow to help you get started with Actions | ||
name: Create translation pull request | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the main branch | ||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '**.resx' # only take action when *.resx files change | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Use the resource translator to automatically translate resource files | ||
- name: Resource translator | ||
uses: IEvangelist/[email protected] | ||
with: | ||
# The Azure Cognitive Services translator resource subscription key | ||
subscriptionKey: ${{ secrets.AZURE_TRANSLATOR_SUBSCRIPTION_KEY }} | ||
# The Azure Cognitive Services translator resource endpoint. | ||
endpoint: ${{ secrets.AZURE_TRANSLATOR_ENDPOINT }} | ||
# (Optional) The Azure Cognitive Services translator resource region. This is optional when using a global translator resource. | ||
region: ${{ secrets.AZURE_TRANSLATOR_REGION }} | ||
# The source locale (i.e.; 'en'), used to create the glob pattern for which resource (**/*.en.resx) files to use as input | ||
sourceLocale: 'en' | ||
|
||
- name: Create pull request | ||
uses: peter-evans/[email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters