-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
267 changed files
with
17,956 additions
and
12,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
# Bash scripts needs to have LF line endings, even on Windows | ||
*.sh text eol=lf | ||
# /usr/local/bin/ruby: warning: shebang line ending with \r may cause problems | ||
/bin/* text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Check Phrase exports | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
en-keys-to-remove: | ||
if: github.head_ref == 'phrase-translations' | ||
runs-on: ubuntu-latest | ||
name: Check for outdated English keys in Phrase | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby and run bundle install | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Run i18n-tasks missing (diff mode) | ||
run: bundle exec i18n-tasks missing -t diff -f keys en | bundle exec i18n-tasks tree-mv -f keys "en.{*}" "\1" > en-keys-to-remove.txt | ||
|
||
- name: Check that all keys exported from Phrase exist in English | ||
run: "! test -s en-keys-to-remove.txt" | ||
|
||
- name: Upload list of English keys that should be removed from Phrase | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: en-keys-to-remove | ||
path: en-keys-to-remove.txt | ||
|
||
unused-keys: | ||
if: github.head_ref == 'phrase-translations' | ||
runs-on: ubuntu-latest | ||
needs: en-keys-to-remove | ||
name: Check unused keys for all locales | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby and run bundle install | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Run i18n-tasks unused | ||
run: bundle exec i18n-tasks unused -f keys > unused-keys.txt | ||
|
||
- name: Upload list of unused locale keys | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: unused-keys | ||
path: unused-keys.txt | ||
|
||
inconsistent-interpolations: | ||
if: github.head_ref == 'phrase-translations' | ||
runs-on: ubuntu-latest | ||
name: Check consistent interpolations for all locales | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Ruby and run bundle install | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Run i18n-tasks check-consistent-interpolations | ||
run: bundle exec i18n-tasks check-consistent-interpolations -f yaml > inconsistent-interpolations.yml | ||
continue-on-error: true | ||
|
||
- name: Upload yaml of inconsistent interpolations | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: inconsistent-interpolations | ||
path: inconsistent-interpolations.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
tasks: | ||
- init: ./script/docker/init.sh | ||
command: docker compose up -d web | ||
|
||
ports: | ||
- port: 3000 | ||
onOpen: open-browser | ||
- port: 3306 | ||
onOpen: ignore | ||
- port: 6379 | ||
onOpen: ignore | ||
- port: 9200 | ||
onOpen: ignore | ||
- port: 9300 | ||
onOpen: ignore | ||
- port: 9400 | ||
onOpen: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.