Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrf0rtuna4 committed Aug 6, 2024
2 parents 7f7d927 + 6461cc4 commit aacdc9a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Push to GitHub
uses: crazy-max/[email protected]
with:
target_branch: translations
target_branch: translations_indev
build_dir: 'dist'
env:
GITHUB_TOKEN: ${{ secrets.GTK }}
32 changes: 32 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Generate Localized Readme # The name of your action

on:
workflow_dispatch: # Manual start
push: # Run when committing to a branch
branches:
- master # Set the name of your branch if required
paths: # Start translating only if readme file changed in current push
- 'README.MD'
- 'README.md'
- 'readme.md'
- 'Readme.md'

jobs:
translate: # Task name
runs-on: ubuntu-latest # Running on an Ubuntu image
steps:
- name: Checkout code # Step: code check
uses: actions/checkout@v2 # Using an action to test the code

- name: Run translation # Step: start the translation
uses: mrf0rtuna4/[email protected] # Using an action to translate
env:
LANGS: 'english,italian,dutch,spanish' # List of languages to be translated

- name: Push to GitHub # Step: Submit changes to GitHub
uses: crazy-max/[email protected] # Using an action to publish to GitHub Pages
with:
target_branch: translations # The branch to which the changes will be sent
build_dir: 'dist' # The directory with the collected files
env:
GITHUB_TOKEN: ${{ secrets.GTK }} # Transferring a GitHub access token
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GitHub Readme AutoTranslator
<div align="center">
<img src="https://img.shields.io/github/v/release/mrf0rtuna4/Github-Readme-AutoTranslator">
<img src="https://img.shields.io/github/actions/workflow/status/mrf0rtuna4/Github-Readme-AutoTranslator/translate-readme.yml">
<img src="https://img.shields.io/github/actions/workflow/status/mrf0rtuna4/Github-Readme-AutoTranslator/example.yml">
</div>


Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/checkout@v2 # Using an action to test the code

- name: Run translation # Step: start the translation
uses: mrf0rtuna4/Github-Readme-AutoTranslator@v1.2.0 # Using an action to translate
uses: mrf0rtuna4/Github-Readme-AutoTranslator@v1.3.0 # Using an action to translate
env:
LANGS: 'english,italian,dutch,spanish' # List of languages to be translated

Expand Down Expand Up @@ -106,19 +106,19 @@ For example, if you want to generate README files for Serbian, Italian, and Engl

And you can view, how to work action by clicking this widgets:
<div align="center">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations/ru.md">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations_indev/ru.md">
<img src="https://img.shields.io/badge/Язык-Руский-blue" alt="Руский" />
</a>
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations/ja.md">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations_indev/ja.md">
<img src="https://img.shields.io/badge/言語-日本語-blue" alt="日本語" />
</a>
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations/it.md">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations_indev/it.md">
<img src="https://img.shields.io/badge/Lingua-Italiano-blue" alt="Italiano" />
</a>
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations/uk.md">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations_indev/uk.md">
<img src="https://img.shields.io/badge/Мова-Українська-blue" alt="Українська" />
</a>
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations/ar.md">
<a href="https://github.com/mrf0rtuna4/Github-Readme-AutoTranslator/blob/translations_indev/ar.md">
<img src="https://img.shields.io/badge/لغة-العربية-blue" alt="العربية" />
</a>
</div>
Expand Down

0 comments on commit aacdc9a

Please sign in to comment.