Skip to content

Commit

Permalink
Add i18n by using rust i18n (#807)
Browse files Browse the repository at this point in the history
* feat: initial i18n setup

* style: fmt

* feat: i18n support for new steps

* fix: build on Linux

* fix: build on Linux

* refactor: rm unused translation keys

---------

Co-authored-by: Steve Lau <[email protected]>
  • Loading branch information
Mastermindaxe and SteveLauC authored Oct 3, 2024
1 parent c33d396 commit 29c555c
Show file tree
Hide file tree
Showing 33 changed files with 1,220 additions and 522 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check_locale_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
push:
branches:
- main

name: Check i18n locale file

jobs:
check_locale:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install checker
# Build it with the dev profile as this is faster and the checker still works
run: |
cargo install --git https://github.com/topgrade-rs/topgrade_i18n_locale_file_checker --profile dev
- name: Run the checker
run: topgrade_i18n_locale_file_checker ./locales/app.yml
Loading

0 comments on commit 29c555c

Please sign in to comment.