Skip to content

Commit a06ae0d

Browse files
authored
v0.3.53: logs search, idempotency for webhooks, billing fixes for overage, i18n for docs
2 parents 1ad31c9 + ab97ac5 commit a06ae0d

File tree

540 files changed

+71354
-990
lines changed

Some content is hidden

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

540 files changed

+71354
-990
lines changed

.github/workflows/i18n.yml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
name: 'Auto-translate Documentation'
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'apps/docs/content/docs/en/**'
8+
- 'apps/docs/i18n.json'
9+
pull_request:
10+
branches: [ main ]
11+
paths:
12+
- 'apps/docs/content/docs/en/**'
13+
- 'apps/docs/i18n.json'
14+
workflow_dispatch: # Allow manual triggers
15+
16+
jobs:
17+
translate:
18+
runs-on: ubuntu-latest
19+
if: github.actor != 'github-actions[bot]' # Prevent infinite loops
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
fetch-depth: 0
27+
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v1
30+
with:
31+
bun-version: latest
32+
33+
- name: Run Lingo.dev translations
34+
env:
35+
LINGODOTDEV_API_KEY: ${{ secrets.LINGODOTDEV_API_KEY }}
36+
run: |
37+
cd apps/docs
38+
bunx lingo.dev@latest i18n
39+
40+
- name: Check for translation changes
41+
id: changes
42+
run: |
43+
cd apps/docs
44+
git config --local user.email "action@github.com"
45+
git config --local user.name "GitHub Action"
46+
47+
if [ -n "$(git status --porcelain content/docs)" ]; then
48+
echo "changes=true" >> $GITHUB_OUTPUT
49+
else
50+
echo "changes=false" >> $GITHUB_OUTPUT
51+
fi
52+
53+
- name: Commit and push translation updates
54+
if: steps.changes.outputs.changes == 'true'
55+
run: |
56+
cd apps/docs
57+
git add content/docs/es/ content/docs/fr/ content/docs/zh/ i18n.lock
58+
git commit -m "feat: update translations"
59+
git push origin ${{ github.ref_name }}
60+
61+
- name: Create Pull Request (for feature branches)
62+
if: steps.changes.outputs.changes == 'true' && github.event_name == 'pull_request'
63+
uses: peter-evans/create-pull-request@v5
64+
with:
65+
token: ${{ secrets.GITHUB_TOKEN }}
66+
commit-message: "feat: update translations"
67+
title: "🌐 Auto-update translations"
68+
body: |
69+
## Summary
70+
Automated translation updates for documentation.
71+
72+
- Updated translations for modified English content
73+
- Generated using Lingo.dev AI translation
74+
- Maintains consistency with source documentation
75+
76+
## Test Plan
77+
- [ ] Verify translated content accuracy
78+
- [ ] Check that all links and references work correctly
79+
- [ ] Ensure formatting and structure are preserved
80+
branch: auto-translations
81+
base: ${{ github.base_ref }}
82+
labels: |
83+
i18n
84+
auto-generated
85+
86+
verify-translations:
87+
needs: translate
88+
runs-on: ubuntu-latest
89+
if: always() # Run even if translation fails
90+
91+
steps:
92+
- name: Checkout repository
93+
uses: actions/checkout@v4
94+
95+
- name: Setup Bun
96+
uses: oven-sh/setup-bun@v1
97+
with:
98+
bun-version: latest
99+
100+
- name: Install dependencies
101+
run: |
102+
cd apps/docs
103+
bun install
104+
105+
- name: Build documentation to verify translations
106+
run: |
107+
cd apps/docs
108+
bun run build
109+
110+
- name: Report translation status
111+
run: |
112+
cd apps/docs
113+
echo "## Translation Status Report" >> $GITHUB_STEP_SUMMARY
114+
115+
en_count=$(find content/docs/en -name "*.mdx" | wc -l)
116+
es_count=$(find content/docs/es -name "*.mdx" 2>/dev/null | wc -l || echo 0)
117+
fr_count=$(find content/docs/fr -name "*.mdx" 2>/dev/null | wc -l || echo 0)
118+
zh_count=$(find content/docs/zh -name "*.mdx" 2>/dev/null | wc -l || echo 0)
119+
120+
es_percentage=$((es_count * 100 / en_count))
121+
fr_percentage=$((fr_count * 100 / en_count))
122+
zh_percentage=$((zh_count * 100 / en_count))
123+
124+
echo "- **🇪🇸 Spanish**: $es_count/$en_count files ($es_percentage%)" >> $GITHUB_STEP_SUMMARY
125+
echo "- **🇫🇷 French**: $fr_count/$en_count files ($fr_percentage%)" >> $GITHUB_STEP_SUMMARY
126+
echo "- **🇨🇳 Chinese**: $zh_count/$en_count files ($zh_percentage%)" >> $GITHUB_STEP_SUMMARY

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ start-collector.sh
6868
.vscode
6969

7070
## Helm Chart Tests
71-
helm/sim/test
71+
helm/sim/test
72+
i18n.cache

apps/docs/app/(docs)/[[...slug]]/layout.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/docs/app/(docs)/[[...slug]]/page.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

apps/docs/app/(docs)/layout.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)