Skip to content

Commit 6eead0b

Browse files
Ncerzzkclaude
andcommitted
Add English localization support
- Configure VitePress i18n with Chinese (root) and English (/en/) - Add English versions of home, products, and manuals pages - Add language switcher in navigation bar Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0ddb62f commit 6eead0b

4 files changed

Lines changed: 189 additions & 12 deletions

File tree

.vitepress/config.mts

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
import { defineConfig } from 'vitepress'
22

33
export default defineConfig({
4-
title: "座头鲸工作室",
5-
description: "HumpbackLab",
6-
themeConfig: {
7-
nav: [
8-
{ text: 'Home', link: '/' },
9-
{ text: '产品介绍', link: '/products' },
10-
{ text: '用户手册', link: '/manuals' }
11-
],
12-
sidebar: [],
13-
socialLinks: [
14-
{ icon: 'github', link: 'https://github.com/HumpbackLab/website' }
15-
]
4+
locales: {
5+
root: {
6+
label: '简体中文',
7+
lang: 'zh-CN',
8+
title: "座头鲸工作室",
9+
description: "HumpbackLab",
10+
themeConfig: {
11+
nav: [
12+
{ text: '首页', link: '/' },
13+
{ text: '产品介绍', link: '/products' },
14+
{ text: '用户手册', link: '/manuals' }
15+
],
16+
sidebar: [],
17+
socialLinks: [
18+
{ icon: 'github', link: 'https://github.com/HumpbackLab' }
19+
]
20+
}
21+
},
22+
en: {
23+
label: 'English',
24+
lang: 'en-US',
25+
title: 'HumpbackLab',
26+
description: 'Lightweight Flight Control Solutions',
27+
themeConfig: {
28+
nav: [
29+
{ text: 'Home', link: '/en/' },
30+
{ text: 'Products', link: '/en/products' },
31+
{ text: 'Manuals', link: '/en/manuals' }
32+
],
33+
sidebar: [],
34+
socialLinks: [
35+
{ icon: 'github', link: 'https://github.com/HumpbackLab' }
36+
]
37+
}
38+
}
1639
}
1740
})

en/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: home
3+
4+
hero:
5+
name: "HumpbackLab"
6+
text: "Lightweight Flight Control Solutions"
7+
tagline: Innovative products for RC hobbyists
8+
actions:
9+
- theme: brand
10+
text: Products
11+
link: /en/products
12+
- theme: alt
13+
text: Manuals
14+
link: /en/manuals
15+
16+
features:
17+
- title: 🚀 Innovative Products
18+
details: Continuously developing lightweight flight control solutions, from smartphone controllers to micro flight controllers, making flying easier
19+
- title: 🌐 Open Source Ecosystem
20+
details: Based on excellent open source projects such as INAV and ExpressLRS, deeply integrated and optimized, embracing community collaboration
21+
- title: 📚 Technical Sharing
22+
details: Complete product documentation, detailed user manuals, and regular technical articles sharing project experience
23+
---
24+
25+
<ProductCarousel />

en/manuals.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# User Manuals
2+
3+
User manual documentation for our products.
4+
5+
## Android-ELRS User Manual
6+
7+
Android-ELRS is an ELRS configuration tool for Android devices.
8+
9+
- [Download PDF](/manuals/android-elrs-manual.pdf)
10+
- [View in New Window](/manuals/android-elrs-manual.pdf){target="_blank"}
11+
12+
<div style="margin-top: 20px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;">
13+
<iframe
14+
src="/manuals/android-elrs-manual.pdf"
15+
width="100%"
16+
height="800px"
17+
style="border: none;"
18+
></iframe>
19+
</div>
20+
21+
## AT32F435mini Flight Controller User Manual
22+
23+
AT32F435mini is an INAV-based flight controller user manual.
24+
25+
- [Download PDF](/manuals/flight-controller-manual.pdf)
26+
- [View in New Window](/manuals/flight-controller-manual.pdf){target="_blank"}
27+
28+
<div style="margin-top: 20px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;">
29+
<iframe
30+
src="/manuals/flight-controller-manual.pdf"
31+
width="100%"
32+
height="800px"
33+
style="border: none;"
34+
></iframe>
35+
</div>

en/products.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Products
2+
3+
HumpbackLab is dedicated to providing innovative lightweight flight control solutions for RC hobbyists.
4+
5+
## Android-ELRS Converter
6+
7+
**Lightweight RC Solution for Beginners**
8+
9+
![Android-ELRS Product](/manuals/Android-ELRS-manual/assets/1.png)
10+
11+
### Overview
12+
13+
The Android-ELRS Converter is a revolutionary smart hardware that instantly transforms your Android phone into a professional-grade RC transmitter. Say goodbye to bulky and expensive dedicated RC transmitters - with just an Android phone, you can experience low-latency, long-range professional RC control.
14+
15+
### Hardware Interface
16+
17+
![Hardware Interface](/manuals/Android-ELRS-manual/assets/2.png)
18+
19+
### Key Features
20+
21+
- **Plug and Play** - Powers directly from phone's Type-C port, no external battery needed
22+
- **Industrial-Grade Communication** - Uses ExpressLRS (ELRS) open source protocol with ultra-high refresh rate and strong anti-interference
23+
- **Dual Control Modes** - Supports both virtual joystick and motion control
24+
- **Integrated Charging** - Built-in 1S battery charging system with 500mA constant current charging
25+
26+
### LED Status
27+
28+
![LED Status](/manuals/Android-ELRS-manual/assets/4.png)
29+
30+
### Technical Highlights
31+
32+
- Industrial-grade serial conversion chip ensures stable communication without packet loss
33+
- Based on ExpressLRS open source project, providing professional wireless performance
34+
- Built-in high-performance antenna supporting long-range control
35+
- Supports Crossfire (CRSF) protocol standard
36+
37+
### Use Cases
38+
39+
- RC beginners learning and practice
40+
- Lightweight fixed-wing aircraft control
41+
- Small multirotor drone operation
42+
- Indoor/outdoor recreational flying
43+
44+
### Manual Download
45+
46+
- [Download Complete User Manual (PDF)](/manuals/android-elrs-manual.pdf)
47+
- [View Manual Online](/manuals#android-elrs-用户手册)
48+
49+
---
50+
51+
## AT32F435mini INAV Flight Controller
52+
53+
**1S Integrated Flight Controller for Differential Thrust Fixed-Wing and Lightweight Aircraft**
54+
55+
![AT32F435mini Product](/manuals/flight-controller-manual/assets/product-overview.png)
56+
57+
### Overview
58+
59+
AT32F435mini is a ultra-compact flight controller optimized for INAV firmware, integrating AT32F435 MCU and ELRS wireless link, specifically designed for 1S powered lightweight aircraft, especially differential thrust wingless fixed-wing aircraft (such as paper airplane conversions).
60+
61+
### Hardware Specifications
62+
63+
| Component | Specification | Description |
64+
|-----------|---------------|-------------|
65+
| MCU | AT32F435CGU7 | QFN48 package, multiple UART/PWM |
66+
| Wireless Link | ESP8285 + SX1280 | Onboard ELRS 2.4GHz, WiFi dual antenna |
67+
| IMU | LSM6DSOWTR | 6-axis accelerometer/gyroscope |
68+
| Magnetometer | QMC5883P | I2C interface, address 0x2C |
69+
| Barometer | SPL06-001 | I2C interface, address 0x77 |
70+
| Operating Voltage | 3.0V - 4.2V | 1S LiPo battery powered |
71+
72+
### Suitable Aircraft
73+
74+
- **Differential Thrust Fixed-Wing** - Dual motor differential control, no control surfaces needed
75+
- **Paper Airplane Conversion** - Lightweight fixed-wing platform
76+
- **1S Lightweight Aircraft** - Suitable for small indoor/outdoor flyers
77+
78+
### Core Advantages
79+
80+
- **Differential Control** - Dual motor differential steering simplifies mechanical structure
81+
- **Integrated ELRS** - No external receiver needed, reduces wiring and weight
82+
- **Open Source Firmware** - Based on INAV with rich community support
83+
- **Easy to Debug** - Supports INAV Configurator graphical configuration
84+
85+
### Manual Download
86+
87+
- [Download Complete User Manual (PDF)](/manuals/flight-controller-manual.pdf)
88+
- [View Manual Online](/manuals#at32f435mini-飞控用户手册)
89+
90+
---
91+
92+
## Technical Support
93+
94+
For more technical support or product inquiries, please visit our [GitHub](https://github.com/HumpbackLab) or consult the complete user manuals.

0 commit comments

Comments
 (0)