Skip to content
Draft
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4362964
Migrate away from easy_localizartion
omeritzics Mar 15, 2026
57b018d
Migrate away from easy_localization
omeritzics Mar 15, 2026
beab741
Update
omeritzics Mar 15, 2026
13e7a1e
Migrate localization from easy_localization to Flutter gen-l10n
omeritzics Mar 15, 2026
94549fd
Fix compilation errors: Replace AppLocalizations calls with hardcoded…
omeritzics Mar 15, 2026
e9e9d2d
Fix getInfoColumn return type in app.dart
omeritzics Mar 15, 2026
80a2f12
Complete migration: Convert all 31 JSON translation files to ARB format
omeritzics Mar 15, 2026
8459279
Fix compilation errors: Replace all tr() and plural() calls with hard…
omeritzics Mar 15, 2026
ff91d2c
Fix remaining AppLocalizations compilation errors
omeritzics Mar 15, 2026
8127786
Fix all remaining AppLocalizations and compilation errors in settings…
omeritzics Mar 15, 2026
3c43a52
Fix AppLocalizations import in security_disclaimer.dart
omeritzics Mar 15, 2026
6ef6d82
Fix all remaining AppLocalizations compilation errors across entire c…
omeritzics Mar 15, 2026
6bc9086
Fix AppLocalizations.of(context) calls in provider classes
omeritzics Mar 15, 2026
bbe6d7a
Fix all remaining syntax errors and string issues
omeritzics Mar 15, 2026
50cf6e7
Fix remaining compilation errors in app.dart and home.dart
omeritzics Mar 15, 2026
40fedda
Fix all remaining syntax errors and import conflicts
omeritzics Mar 15, 2026
2644a54
Fix final compilation errors in providers
omeritzics Mar 15, 2026
fec742d
Fix all remaining compilation errors for successful build
omeritzics Mar 15, 2026
bbe9667
Try to fix
omeritzics Mar 17, 2026
4241ba9
Fix errors
omeritzics Mar 17, 2026
ee9ebe6
Fix attempt
omeritzics Mar 17, 2026
0525e3f
Fix
omeritzics Mar 17, 2026
aba377a
Update main.dart
omeritzics Mar 17, 2026
90b06c3
Fix tests
omeritzics Mar 17, 2026
967f2af
Fix & remove unused imports
omeritzics Mar 17, 2026
a85b283
Commit fix
omeritzics Mar 17, 2026
d20fe23
Update apps.dart
omeritzics Mar 17, 2026
c6e5cc2
Fix Import/Export page not being translated
omeritzics Mar 17, 2026
ae72269
Update
omeritzics Mar 17, 2026
13cada0
Commit
omeritzics Mar 17, 2026
1bab627
Fix
omeritzics Mar 17, 2026
fcc1432
Update buttons
omeritzics Mar 17, 2026
a82a22b
Update apps.dart
omeritzics Mar 17, 2026
8e90c8b
Fix attempt
omeritzics Mar 17, 2026
b3d7df2
Update add_app.dart
omeritzics Mar 18, 2026
f4f45f0
Add missing strings
omeritzics Mar 18, 2026
7b76f8e
Add more missing strings
omeritzics Mar 18, 2026
df68d6b
Add missing strings
omeritzics Mar 18, 2026
92d8183
Commit
omeritzics Mar 18, 2026
ed5ab1c
Update .github/workflows/auto_localization.yml
omeritzics Mar 18, 2026
aa7dbee
Fix
omeritzics Mar 18, 2026
ca1a7ab
Fix string
omeritzics Mar 18, 2026
19f3a3a
Update
omeritzics Mar 18, 2026
08d9773
Fix2
omeritzics Mar 18, 2026
8bb4b95
Merge branch 'main' into localization
omeritzics Mar 18, 2026
d575400
Fix
omeritzics Mar 18, 2026
b0dc069
Another commit
omeritzics Mar 18, 2026
fbd1a54
Add missing strings
omeritzics Mar 19, 2026
50b94d2
Fix
omeritzics Mar 19, 2026
2111490
Merge branch 'main' into localization
omeritzics Mar 19, 2026
a8e5e90
Fix 2
omeritzics Mar 19, 2026
e52e37e
Merge branch 'main' into localization
omeritzics Mar 23, 2026
2ed4aa2
Merge branch 'main' into localization
omeritzics Mar 23, 2026
7e93c2c
Merge branch 'main' into localization
omeritzics Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions .github/workflows/auto_localization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Auto Update Localization

on:
push:
branches: [ main, develop ]
paths:
- 'lib/l10n/app_en.arb'
- '.github/workflows/auto_localization.yml'
- 'scripts/update_localization.py'
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run (no commits)'
required: false
default: 'false'
type: boolean

jobs:
update-localization:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.41.4'
channel: 'stable'

- name: Get Flutter dependencies
run: flutter pub get

- name: Make script executable
run: chmod +x scripts/update_localization.py

- name: Update localization files
run: |
python3 scripts/update_localization.py

- name: Generate localization files
run: flutter gen-l10n

- name: Check for changes
id: verify-changed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
echo "Changes detected:"
git status --porcelain
else
echo "changed=false" >> $GITHUB_OUTPUT
echo "No changes detected"
fi

- name: Commit and push changes
if: steps.verify-changed.outputs.changed == 'true' && github.event.inputs.dry_run != 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add lib/l10n/ lib/generated/
git commit -m "🌐 Auto-update localization files

- Add missing keys to all ARB files
- Regenerate AppLocalizations files
- Sync with English master file

🤖 Generated by GitHub Actions"
git push

- name: Create summary
run: |
echo "## 🌐 Localization Update Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

if [ "${{ steps.verify-changed.outputs.changed }}" == "true" ]; then
echo "✅ **Localization files updated successfully!**" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### 📝 Changes made:" >> $GITHUB_STEP_SUMMARY
echo "- Added missing keys to ARB files" >> $GITHUB_STEP_SUMMARY
echo "- Regenerated AppLocalizations files" >> $GITHUB_STEP_SUMMARY
echo "- Synced all translations with English master" >> $GITHUB_STEP_SUMMARY
else
echo "ℹ️ **No changes needed** - all localization files are up to date" >> $GITHUB_STEP_SUMMARY
fi

echo "" >> $GITHUB_STEP_SUMMARY
echo "### 📊 Files processed:" >> $GITHUB_STEP_SUMMARY
echo "- English ARB (master): app_en.arb" >> $GITHUB_STEP_SUMMARY
echo "- Target ARB files: 31 languages" >> $GITHUB_STEP_SUMMARY
echo "- Generated files: app_localizations_*.dart" >> $GITHUB_STEP_SUMMARY

if [ "${{ github.event.inputs.dry_run }}" == "true" ]; then
echo "" >> $GITHUB_STEP_SUMMARY
echo "⚠️ **Dry run mode** - no changes were committed" >> $GITHUB_STEP_SUMMARY
fi
Loading
Loading