Skip to content

[i18n] Add Simplified Chinese Documentation Translation #1900

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

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
d904efa
update docusaurus version from 2.3.0 to 3.0.0
coder-xiaomo Mar 14, 2025
92664d6
update docusaurus version from 3.0.0 to 3.7.0
coder-xiaomo Mar 14, 2025
380a1e1
fix docusaurus light & dark theme not fond error
coder-xiaomo Mar 14, 2025
ad63d41
run `npx docusaurus-mdx-checker` to fix docs compile error
coder-xiaomo Mar 14, 2025
d44d3c5
add `<!--truncate-->` to fix warning: `Docusaurus found blog posts wi…
coder-xiaomo Mar 14, 2025
d6f9e5e
run `yarn write-translations --locale zh-Hans` to generate chinese tr…
coder-xiaomo Mar 14, 2025
8229056
trans: Chinese translation
coder-xiaomo Mar 14, 2025
eea251a
copy markdown file to i18n folder to prepare translation
coder-xiaomo Mar 14, 2025
636705d
translate `docusaurus-plugin-content-blog`
coder-xiaomo Mar 14, 2025
8272974
translate CONTRIBUTING.md
coder-xiaomo Mar 14, 2025
a7a5297
translate Components.md
coder-xiaomo Mar 14, 2025
5dccf84
update `<3` to `&lt;3` to fix CI / JavaScript tests (22.x) checks fai…
coder-xiaomo Mar 14, 2025
fd3eebf
Merge branch 'master' into feature-chinese-translation
coder-xiaomo Mar 14, 2025
4df593b
translate CRUD.md
coder-xiaomo Mar 14, 2025
a73f36b
translate Model.md
coder-xiaomo Mar 14, 2025
ae8b3e8
translate Query.md
coder-xiaomo Mar 14, 2025
249d284
translate README.md
coder-xiaomo Mar 14, 2025
0989de1
translate Roadmap.md
coder-xiaomo Mar 14, 2025
a5cb719
translate Schema.md
coder-xiaomo Mar 14, 2025
ab41583
translate Setup.md
coder-xiaomo Mar 14, 2025
cfb426e
translate Writers.md
coder-xiaomo Mar 14, 2025
d551f82
translate AdvancedFields.md
coder-xiaomo Mar 14, 2025
2a48859
translate Architecture.md
coder-xiaomo Mar 14, 2025
0cfc96f
translate DatabaseAdapters.md
coder-xiaomo Mar 14, 2025
d2d8fde
translate Publishing.md
coder-xiaomo Mar 14, 2025
dff0946
translate SyncImpl.md
coder-xiaomo Mar 14, 2025
8c64659
translate CreateUpdateTracking.md
coder-xiaomo Mar 14, 2025
8749c7d
translate Flow.md
coder-xiaomo Mar 14, 2025
7b722af
translate LocalStorage.md
coder-xiaomo Mar 14, 2025
2f8a8c4
translate Logging.md
coder-xiaomo Mar 14, 2025
9263784
translate Migrations.md
coder-xiaomo Mar 14, 2025
6917211
translate Performance.md and ProTips.md
coder-xiaomo Mar 14, 2025
d98da93
translate SharingDatabaseAcrossTargets.md
coder-xiaomo Mar 14, 2025
b6f0021
translate Installation.mdx
coder-xiaomo Mar 14, 2025
5d36404
translate Relation.md
coder-xiaomo Mar 14, 2025
d24567f
translate Backend.md
coder-xiaomo Mar 14, 2025
efc7710
translate Contribute.md
coder-xiaomo Mar 14, 2025
374a25a
translate FAQ.md
coder-xiaomo Mar 14, 2025
b3a987d
translate Intro.md
coder-xiaomo Mar 14, 2025
e413cbd
translate Limitations.md
coder-xiaomo Mar 14, 2025
9d49d5b
translate Troubleshoot.md
coder-xiaomo Mar 14, 2025
66c9b5f
translate Frontend.md
coder-xiaomo Mar 14, 2025
5553be1
fix some translation mistakes
coder-xiaomo Mar 14, 2025
715543c
fix title translation
coder-xiaomo Mar 14, 2025
0c21539
update CHANGELOG-Unreleased.md
coder-xiaomo Mar 14, 2025
3bc4610
fix: <details> summary not display in Installation.mdx
coder-xiaomo Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG-Unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- Added `Database#experimentalIsVerbose` option
- Support for React Native 0.74+
- Add Simplified Chinese Documentation Translation

### Fixes

Expand All @@ -32,3 +33,4 @@
### Internal

- Update internal dependencies
- Update docusaurus dependencies version
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ Hotfix for rambdax crash
### Changes

- [Android] Changed `compile` to `implementation` in Library Gradle file
- ⚠️ might break build if you are using Android Gradle Plugin <3.X
- ⚠️ might break build if you are using Android Gradle Plugin &lt;3.X
- Updated `peerDependency` `react-native` to `0.57.0`
- [Sync] Added `hasUnsyncedChanges()` helper method
- [Sync] Improved documentation for backends that can't distinguish between `created` and `updated` records
Expand Down
2 changes: 2 additions & 0 deletions docs-website/blog/2021-08-01-mdx-blog-post.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tags: [docusaurus]

Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).

<!--truncate-->

:::tip

Use the power of React to create interactive blog posts.
Expand Down
2 changes: 1 addition & 1 deletion docs-website/docs/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ Hotfix for rambdax crash
### Changes

- [Android] Changed `compile` to `implementation` in Library Gradle file
- ⚠️ might break build if you are using Android Gradle Plugin <3.X
- ⚠️ might break build if you are using Android Gradle Plugin &lt;3.X
- Updated `peerDependency` `react-native` to `0.57.0`
- [Sync] Added `hasUnsyncedChanges()` helper method
- [Sync] Improved documentation for backends that can't distinguish between `created` and `updated` records
Expand Down
2 changes: 1 addition & 1 deletion docs-website/docs/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Watermelon fixes it **by being lazy**. Nothing is loaded until it's requested. A
But unlike using SQLite directly, Watermelon is **fully observable**. So whenever you change a record, all UI that depends on it will automatically re-render. For example, completing a task in a to-do app will re-render the task component, the list (to reorder), and all relevant task counters. [**Learn more**](https://www.youtube.com/watch?v=UlZ1QnFF4Cw).

| <a href="https://www.youtube.com/watch?v=UlZ1QnFF4Cw"><img src="https://github.com/Nozbe/WatermelonDB/raw/master/assets/watermelon-talk-thumbnail.jpg" alt="React Native EU: Next-generation React Databases" width="300" /></a> |
| ---- | --- |
| ---- |
| <p align="center"><a href="https://www.youtube.com/watch?v=UlZ1QnFF4Cw">📺 <strong>Next-generation React databases</strong><br/>(a talk about WatermelonDB)</a></p> |

## Usage
Expand Down
15 changes: 10 additions & 5 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
const { themes } = require('prism-react-renderer')
const lightTheme = themes.github
const darkTheme = themes.dracula
const { version } = require('./package.json')

/** @type {import('@docusaurus/types').Config} */
Expand Down Expand Up @@ -32,7 +33,7 @@ const config = {
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en', 'zh-Hans'],
},

presets: [
Expand Down Expand Up @@ -97,6 +98,10 @@ const config = {
label: 'GitHub',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
Expand Down Expand Up @@ -153,8 +158,8 @@ const config = {
copyright: `WatermelonDB by <a href="https://radex.io">Radek Pietruszewski</a> and <a href="https://nozbe.com">Nozbe</a>.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
theme: lightTheme,
darkTheme: darkTheme,
},
}),
}
Expand Down
Loading
Loading