Skip to content

Commit c2922f0

Browse files
committed
Merge branch 'ru-translate' into develop
# Conflicts: # src/content/docs/version-3.0/mail-checkout.mdx # src/content/docs/version-3.0/mail-get-started.mdx
2 parents d3e43bb + 6608281 commit c2922f0

794 files changed

Lines changed: 93791 additions & 313 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/editor/SKILL.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ After completing all checks, follow this flow:
241241
- Validate ALL links and images
242242
- Check intro, heading hierarchy, parallel headings, long blocks
243243

244+
### Localization
245+
Files in `src/locales/` are automatically translated and updated by a GitHub Actions workflow on push to `main`. Do not edit them as part of normal doc work — edit only the source English file in `src/content/docs/`. The exception is targeted manual corrections explicitly requested (e.g., a native speaker flagging a translation error).
246+
244247
### Writing a Full Article
245248
- Complete all 5 phases — no shortcuts
246249
- Match tone and depth of neighboring articles

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ PUBLIC_ALGOLIA_ANALYTICS_KEY=5e3fd9357b98f9f0d44bab0f0b7634c0
66

77
# Locale-specific Algolia indices
88
PUBLIC_ALGOLIA_INDEX_NAME_ZH=adapty_zh
9-
PUBLIC_ALGOLIA_INDEX_NAME_TR=adapty_tr
9+
PUBLIC_ALGOLIA_INDEX_NAME_TR=adapty_tr
10+
PUBLIC_ALGOLIA_INDEX_NAME_RU=adapty_ru

.github/workflows/s3-deploy-development.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
locale: [zh, tr]
47+
locale: [zh, tr, ru]
4848
steps:
4949
- uses: actions/checkout@v4
5050

@@ -103,6 +103,11 @@ jobs:
103103
name: build-tr
104104
path: build/tr/
105105

106+
- uses: actions/download-artifact@v4
107+
with:
108+
name: build-ru
109+
path: build/ru/
110+
106111
- name: Deploy
107112
uses: reggionick/s3-deploy@v4
108113
with:

.github/workflows/s3-deploy-production.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
runs-on: ubuntu-latest
9797
strategy:
9898
matrix:
99-
locale: [zh, tr]
99+
locale: [zh, tr, ru]
100100
steps:
101101
- uses: actions/checkout@v4
102102

@@ -155,6 +155,11 @@ jobs:
155155
name: build-tr
156156
path: build/tr/
157157

158+
- uses: actions/download-artifact@v4
159+
with:
160+
name: build-ru
161+
path: build/ru/
162+
158163
- name: Deploy
159164
uses: reggionick/s3-deploy@v4
160165
with:
@@ -180,7 +185,7 @@ jobs:
180185
runs-on: ubuntu-latest
181186
strategy:
182187
matrix:
183-
locale: [zh, tr]
188+
locale: [zh, tr, ru]
184189
steps:
185190
- uses: actions/checkout@v4
186191

@@ -234,18 +239,24 @@ jobs:
234239
name: build-tr-only-tr
235240
path: build/tr/
236241

242+
- uses: actions/download-artifact@v4
243+
with:
244+
name: build-tr-only-ru
245+
path: build/ru/
246+
237247
# Sync locale directories to S3 using AWS CLI —
238-
# only overwrites zh/ and tr/ prefixes, leaves English untouched.
248+
# only overwrites zh/, tr/, and ru/ prefixes, leaves English untouched.
239249
- name: Deploy translations to S3
240250
run: |
241251
aws s3 sync build/zh/ s3://${{ secrets.S3_BUCKET }}/zh/ --delete
242252
aws s3 sync build/tr/ s3://${{ secrets.S3_BUCKET }}/tr/ --delete
253+
aws s3 sync build/ru/ s3://${{ secrets.S3_BUCKET }}/ru/ --delete
243254
244255
- name: Invalidate locale paths
245256
run: |
246257
aws cloudfront create-invalidation \
247258
--distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \
248-
--paths "/zh/*" "/tr/*"
259+
--paths "/zh/*" "/tr/*" "/ru/*"
249260
250261
- name: Update deployment tag
251262
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ yarn-error.log*
3535
.translate-batch-id
3636
src/locales/zh/.hashes/
3737
src/locales/tr/.hashes/
38+
src/locales/ru/.hashes
3839

3940
# VSCode
4041
/.vscode/*

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Sidebars are defined per platform in `src/data/sidebars/*.json` (ios, android, r
4444
- Use `<ZoomImage id="image.png" width="700px" alt="desc" />` (preferred)
4545
- Legacy `<Zoom><img src={require(...)}/></Zoom>` still works
4646

47+
### Localization
48+
49+
Translated versions of articles live in `src/locales/{locale}/` (e.g., `src/locales/zh/`, `src/locales/tr/`). A GitHub Actions workflow automatically translates and updates them on every push to `main` — do not edit them as part of normal doc work. Edit only the source English file in `src/content/docs/`. The only exception is targeted manual corrections requested explicitly (e.g., fixing a translation error a native speaker caught).
50+
4751
### Path aliases
4852

4953
- `@site` → repo root

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default defineConfig({
8787
react(),
8888
sitemap({
8989
// Exclude localized pages — they are covered by locale-specific sitemaps (e.g. sitemap-zh-index.xml)
90-
filter: (page) => !page.includes('/docs/zh/') && !page.includes('/docs/tr/'),
90+
filter: (page) => !page.includes('/docs/zh/') && !page.includes('/docs/tr/') && !page.includes('/docs/ru/'),
9191
// Strip trailing slashes so sitemap URLs match the canonical tags emitted by DocsLayout.
9292
// The canonical strips trailing slashes (DocsLayout.astro:35-37), so the sitemap must too.
9393
// Mismatch causes the Algolia crawler (ignoreCanonicalTo: false) to skip sitemap entries.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"translate:zh:build": "node scripts/translate.mjs --lang zh --incremental",
1313
"translate:tr": "node scripts/translate.mjs --lang tr",
1414
"translate:tr:build": "node scripts/translate.mjs --lang tr --incremental",
15+
"translate:ru": "node scripts/translate.mjs --lang ru",
16+
"translate:ru:build": "node scripts/translate.mjs --lang ru --incremental",
1517
"preview": "astro preview",
1618
"astro": "astro",
1719
"check-links": "node scripts/check-links/index.mjs",

0 commit comments

Comments
 (0)