-
-
Notifications
You must be signed in to change notification settings - Fork 55
Changes to support weblate workflow #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 48 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
45e6c25
localize reformat
ikreymer 5730e1f
Translations update from Hosted Weblate (#2206)
weblate 165ae91
ci: add weblate-reformat action
ikreymer 82a79a0
fix syntax error
ikreymer 57b92fb
add repo full name
ikreymer 7284325
update messages
ikreymer 3b006fe
build changes
ikreymer 2d86f7a
also commit templates
ikreymer ae09d19
rename
ikreymer 39d5355
Translated using Weblate (Spanish)
a5f856e
Translated using Weblate (Spanish)
8f91d1d
Translated using Weblate (Spanish)
35ab225
Translated using Weblate (Spanish)
ba04d5a
Translated using Weblate (Spanish)
f7122ca
Translated using Weblate (Spanish)
missclaraitzel 7e896e0
Translations update from Hosted Weblate (#2207)
weblate c908639
Merge remote-tracking branch 'weblate/weblate' into weblate
ikreymer 9baae09
Apply `localize:extract` changes
ikreymer 517a191
Translated using Weblate (Spanish)
beb0323
wrap in html``
ikreymer 2169326
Merge remote-tracking branch 'origin/weblate' into weblate
weblate 4089190
Apply `localize:extract` changes
ikreymer 1bd81f8
Merge remote-tracking branch 'origin/weblate' into weblate
weblate 4c10fc3
update es.xlf
ikreymer 5502e92
Merge branch 'weblate' of github.com:webrecorder/browsertrix-cloud in…
ikreymer 419ef72
Merge remote-tracking branch 'origin/weblate' into weblate
weblate c01457e
convert msg() that use & to use html`` to ensure unescaping
ikreymer 7e9819c
Merge remote-tracking branch 'origin/weblate' into weblate
weblate bc1c0fa
undo change
ikreymer 7cc3f6e
update
ikreymer f4ff2c4
Merge remote-tracking branch 'origin/weblate' into weblate
weblate 549b151
remove & use and
ikreymer 517c8bc
Merge remote-tracking branch 'origin/weblate' into weblate
weblate b1099a2
Translations update from Hosted Weblate (#2212)
weblate eb6b361
Merge remote-tracking branch 'weblate/weblate' into weblate
ikreymer a8dc067
Apply `localize:extract` changes
ikreymer 46b4b1e
try w/o sorting attrs, may revert, testing for conflict
ikreymer 02b5a8c
Translated using Weblate (Spanish)
f1e854b
Translations update from Hosted Weblate (#2216)
weblate f1b2563
Merge remote-tracking branch 'origin/weblate' into weblate
weblate 35e558d
Translations update from Hosted Weblate (#2217)
weblate f6a7016
Merge branch 'main' into weblate
ikreymer 71d7744
reformat
ikreymer 0ae2a12
Merge branch 'weblate' of github.com:webrecorder/browsertrix-cloud in…
ikreymer 7e2614d
Translations update from Hosted Weblate (#2219)
weblate 82a5e79
Merge branch 'main' into weblate
ikreymer 0453db4
Merge branch 'weblate' of github.com:webrecorder/browsertrix-cloud in…
ikreymer 039e882
rename `package` to `pkg` to fix prettier error
emma-sg a98a9fd
revert merge conflict resolution
SuaYoo b16947c
Apply `localize:extract` changes
SuaYoo b75ed9b
Update frontend/src/features/crawl-workflows/workflow-list.ts
SuaYoo e2553ba
Apply `localize:extract` changes
SuaYoo b8b9893
remove localize:extract from frontend build workflow
SuaYoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,54 @@ | ||
name: Weblate Reformat | ||
on: | ||
pull_request_target: | ||
paths: | ||
- 'frontend/xliff/**' | ||
- '.github/workflows/weblate-reformat.yaml' | ||
|
||
branches: | ||
- 'weblate' | ||
|
||
jobs: | ||
setup-and-build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
|
||
steps: | ||
# Setup: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
cache-dependency-path: frontend/yarn.lock | ||
- name: Install dependencies | ||
working-directory: frontend | ||
env: | ||
HUSKY: 0 | ||
run: yarn install --frozen-lockfile | ||
|
||
# Localize: | ||
- name: Reformat XLIFF files | ||
working-directory: frontend | ||
run: yarn localize:extract | ||
|
||
- name: Rebuild frontend templates | ||
working-directory: frontend | ||
run: yarn localize:build | ||
|
||
- name: Commit changes to upstream branch | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Format Weblate Changes | ||
file_pattern: '**/*.xlf **/__generated__/locales/*.ts' | ||
skip_fetch: true | ||
skip_checkout: true |
This file contains hidden or 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 hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.