Repository navigation
#886 Localisation #975
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
Merged
#886 Localisation #975
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0d39a12
#886 Localisation foundation: string catalog, UiText, CI checks
ivanfenenko 941bfcf
#886 Android: key Active and Back, mirror Back in RTL, uncap lone top…
ivanfenenko 65a6729
#886 iOS: key Active and Back, mirror Back in RTL
ivanfenenko 9e1c41d
#886 iOS: verbatim text in the Playground scenario sheet
ivanfenenko 7feec02
#886 Localisation: Connection and onboarding text
ivanfenenko 911bc42
#886 Localisation: Home, Add Project and worktree text
ivanfenenko 95b00e5
#886 Localisation: Files and Terminal text
ivanfenenko fdb3f86
#886 Localisation: Session Chat screen and timeline text
ivanfenenko c89f039
#886 Localisation: Session Chat sheets and Session Context text
ivanfenenko 5ad810a
#886 Localisation: Settings, Diagnostics, Appearance and Feedback text
ivanfenenko 40c1111
#886 Compare resolved English in tests after combining the stack
ivanfenenko 0f7b58c
#886 Localisation: Changes text
ivanfenenko 9eca558
#886 Localisation: Session Chat timeline and tool text
ivanfenenko 78ba524
#886 Localisation: component and shared text
ivanfenenko 7ba44e4
#886 Localisation: one wording on both platforms, count grammar
ivanfenenko b0ea189
#886 Fix gallery label and tests after stacking the final slices
ivanfenenko 872bab3
#886 Merge the localisation stack into main
ivanfenenko 4f9d26f
#886 Merge main: key the Changes other-source hint and the Recent hint
ivanfenenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: String Checks | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| paths: | ||
| - "android/app/src/main/**" | ||
| - "ios/OpenCode Mobile/OpenCode Mobile/**" | ||
| - "scripts/check-string-keys.mjs" | ||
| - "scripts/check-hardcoded-text.mjs" | ||
| - ".github/workflows/string-checks.yml" | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| strings: | ||
| # GitHub-hosted on purpose: plain Node scripts with no dependencies or secrets. | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| # Fails when a key exists on one platform but not the other (#886). | ||
| - name: String key parity | ||
| run: node scripts/check-string-keys.mjs | ||
|
|
||
| # Warning only while existing text is extracted; becomes --strict once done (#886). | ||
| - name: Hardcoded text (warning only) | ||
| run: | | ||
| node scripts/check-hardcoded-text.mjs | tee hardcoded-text.txt | ||
| total=$(sed -n 's/^Total: //p' hardcoded-text.txt) | ||
| echo "::warning title=Hardcoded text::${total} user-facing literal(s) still in feature code" | ||
| { | ||
| echo '### Hardcoded text' | ||
| echo '```' | ||
| cat hardcoded-text.txt | ||
| echo '```' | ||
| } >> "$GITHUB_STEP_SUMMARY" |
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
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.
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.