mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feat: Added translations, use locales instead of depending on hardcoded strings. (#65)
## Pull Request Description
Single and hopefully only commit so weblate is up-to-date with last
repository
## Special thanks to the translators 🎉
@kingu - Noors (Bokmål) (nb_NO)
@alison2033 - Portuguese (Brazil) (pt_BR)
@andreasmolnardev - German (de)
@stanol - Ukrainian (uk)
If I forgot someone let me know!
## Checklist
- [x] If a new package was added, did you ensure it works for all
supported platforms? Is the package also well maintained?
- [x] Did you add localization for any text? If yes, did you sort the
.arb file using ```arb_utils sort <INPUT_FILE>```?
- [x] Check that any changes are related to the issue at hand.
---------
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
62e046de4a
commit
eb231f37cd
17 changed files with 6619 additions and 686 deletions
19
.github/workflows/checks.yaml
vendored
19
.github/workflows/checks.yaml
vendored
|
|
@ -26,24 +26,5 @@ jobs:
|
|||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Install arb_utils to check sorting of translations
|
||||
run: dart pub global activate arb_utils
|
||||
|
||||
- name: Copy translation file
|
||||
run: cp ./lib/l10n/app_en.arb ./lib/l10n/app_en_sorted.arb
|
||||
|
||||
- name: Sort translation file alphabetically
|
||||
run: arb_utils sort ./lib/l10n/app_en.arb
|
||||
|
||||
- name: Check sorted translations against english base
|
||||
run: |
|
||||
# Check if the contents of the destination file match the reference file
|
||||
if cmp -s "./lib/l10n/app_en.arb" "./lib/l10n/app_en_sorted.arb"; then
|
||||
echo "Translation entries are in alphabetical order."
|
||||
else
|
||||
echo "Translation entries are not in alphabetical order."
|
||||
exit 1 # Fail the workflow if files are not the same
|
||||
fi
|
||||
|
||||
- name: Linting
|
||||
run: flutter analyze --no-fatal-infos --no-fatal-warnings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue