forked from scribe-org/Scribe-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'Scribe/i18n/' changes from 8dd22be..5fd31d2
5fd31d2 Merge pull request scribe-org#18 from Jag-Marcel/github-actions-fix 3b71e3d Slight fix to xcstrings conversion workflow 06027db Merge pull request scribe-org#7 from Jag-Marcel/swift-conversions 6b43924 Minor formatting fixes, add pt back in and fix typo in the .yml file 13c9ced Minor spelling fixes 81f9c11 Merge branch 'main' into swift-conversions f4041c7 Edited scripts to reflect agreed upon coonfiguration 8a99dba Add basic issue templates to bring people to community channels 33cb640 Reorder Matrix logo placement in contributing of readme 9daccff Add navigation to powered by in readme b1a2932 Minor edits to readme and maintainer checklist 38d4fa7 scribe-org#1 Update readme with Weblate information and directions ee1eb47 Move test string to base translation file 5bd6b19 Test webhook cb06f73 Testing adding language file and adding string to repo 3fd3707 Implemented GitHub action for xcstrings conversion script 9b5f645 Adjusted conversion for new location of Xcode file b3d8b03 Revert "Adjusted conversion to xcstrings" 3de1788 Adjusted conversion to xcstrings 811fe13 Replaced old placeholder 055453f Changed directory and file names 4982d14 Changed file in accordance with PEP 8 style guide 3051cad Revert "Added current localizations to JSON files" d165540 Implemented conversion from JSON to files for iOS 1a7b45d Implemented script to convert files for iOS to JSON d452419 Added current localizations to JSON files git-subtree-dir: Scribe/i18n git-subtree-split: 5fd31d28c3e2b29fbf4974226862468288ec846e
- Loading branch information
1 parent
3871fc2
commit 2890070
Showing
17 changed files
with
1,302 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 👋 Community discussion channels | ||
url: https://matrix.to/#/#scribe_community:matrix.org | ||
about: Join us in our public Matrix chat rooms! |
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,26 @@ | ||
name: 🌐 Localization | ||
description: Report issues or offer help for Scribe localizations. | ||
labels: ["localization"] | ||
projects: ["scribe-org/1"] | ||
body: | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Terms | ||
options: | ||
- label: I have searched [open localization issues](https://github.com/scribe-org/Scribe-i18n/issues?q=is%3Aissue+is%3Aopen+label%3Alocalization) | ||
required: true | ||
- label: I agree to follow Scribe-i18n's [Code of Conduct](https://github.com/scribe-org/Scribe-i18n/blob/main/.github/CODE_OF_CONDUCT.md) | ||
required: true | ||
- type: textarea | ||
id: support | ||
attributes: | ||
label: Description | ||
placeholder: | | ||
Tell us where Scribe needs localization support, and let us know if you're able to help! | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for your efforts to bring Scribe to other languages! |
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,24 @@ | ||
name: ❓ Questions and everything else | ||
description: We'd love to hear from you! | ||
projects: ["scribe-org/1"] | ||
body: | ||
- type: checkboxes | ||
id: terms | ||
attributes: | ||
label: Terms | ||
options: | ||
- label: I have searched [open and closed issues](https://github.com/scribe-org/Scribe-i18n/issues?q=is%3Aissue) | ||
required: true | ||
- label: I agree to follow Scribe-i18n's [Code of Conduct](https://github.com/scribe-org/Scribe-i18n/blob/main/.github/CODE_OF_CONDUCT.md) | ||
required: true | ||
- type: textarea | ||
id: issue | ||
attributes: | ||
label: Issue | ||
placeholder: Ask a question, start a discussion, create an issue... | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for your contribution! |
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,42 @@ | ||
name: xcstrings_conversion.yml | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# Check to make sure the localization files have actually changed. | ||
conditional_job_check_files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
json_changed: ${{ steps.check_file_changed.outputs.json_changed }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- shell: pwsh | ||
id: check_file_changed | ||
run: | | ||
$diff = git diff --name-only HEAD^ HEAD | ||
$SourceDiff = $diff | Where-Object { $_ -match '^Scribe-i18n/' -and $_ -match '.json$' } | ||
$HasDiff = $SourceDiff.Length -gt 0 | ||
Write-Host "json_changed=$HasDiff >> $GITHUB_OUTPUT" | ||
# Run xcstrings conversion script if needed. | ||
conditional_job: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- conditional_job_check_files | ||
if: needs.conditional_job_check_files.outputs.json_changed == 'True' | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Execute script to convert JSON to xcstrings | ||
run: | | ||
python convert_to_xcstrings.py |
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.