Skip to content

Commit

Permalink
chore: add a script to organize translations (#5586)
Browse files Browse the repository at this point in the history
* chore: add script to organize translations

* chore: organize translations alphabetically

* chore: add workflow to organize translations and commit changes

* chore: naming

* chore: update action

* test action

* wip

* updated translations

* chore: finish action

* action: organized translations

* Shuffle 🤪

* action: organized translations

---------

Co-authored-by: GleidsonDaniel <[email protected]>
Co-authored-by: Diego Mello <[email protected]>
Co-authored-by: diegolmello <[email protected]>
  • Loading branch information
4 people authored Feb 21, 2024
1 parent 116c217 commit 06b8910
Show file tree
Hide file tree
Showing 69 changed files with 9,165 additions and 9,075 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/organize_translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: organize translations

on:
push:
paths:
- 'app/i18n/locales/**.json'

jobs:
organize-and-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Run script to organize JSON keys
run: node scripts/organize-translations.js

- name: Get changed files
id: git-check
uses: tj-actions/changed-files@v42
with:
files: |
**.json
- name: List all changed files
if: steps.git-check.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.git-check.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- name: Commit and push if changes
if: steps.git-check.outputs.any_changed == 'true'
uses: EndBug/add-and-commit@v9
with:
message: 'action: organized translations'
2 changes: 1 addition & 1 deletion app/i18n/locales/af.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
442 changes: 221 additions & 221 deletions app/i18n/locales/ar.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/i18n/locales/az.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/bas-CM.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/be-BY.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/bg.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/bn-BD.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
1,516 changes: 758 additions & 758 deletions app/i18n/locales/bn-IN.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/i18n/locales/bs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/ca.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/cs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/cy.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/da.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
2 changes: 1 addition & 1 deletion app/i18n/locales/de-AT.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
926 changes: 463 additions & 463 deletions app/i18n/locales/de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/i18n/locales/el.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
1,036 changes: 518 additions & 518 deletions app/i18n/locales/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/i18n/locales/eo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{}
Loading

0 comments on commit 06b8910

Please sign in to comment.