Skip to content

Commit 59e458c

Browse files
committed
docs: translate for zh
1 parent 88a0398 commit 59e458c

File tree

14 files changed

+299
-254
lines changed

14 files changed

+299
-254
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[中文版](./README_ZH.md) | [📖 Documentation](./docs/)
44

5-
A powerful React Native library for accessing local music files with full metadata support. Built with React Native's New Architecture (TurboModules) for optimal performance.
5+
A powerful React Native library for accessing local music files and getting full metadata. Built with React Native's New Architecture (TurboModules) for optimal performance.
66

77
[![npm version](https://badge.fury.io/js/@nodefinity%2Freact-native-music-library.svg)](https://badge.fury.io/js/@nodefinity%2Freact-native-music-library)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

docs/blog/Welcome.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
22
slug: welcome
3-
title: Welcome to React Native Music Library
3+
title: Welcome to RNML!
44
authors: [nodefinity]
5-
tags: [welcome]
65
---
76

7+
<!--truncate-->
8+
89
Welcome to React Native Music Library!
10+
11+
We will use this blog to share the latest news and updates of React Native Music Library.

docs/docs/api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Retrieves music tracks from the device's music library.
1818

1919
#### Returns
2020

21-
Promise that resolves to `TrackResult` containing:
21+
`Promise<TrackResult>` containing:
2222

2323
- `items`: Array of `Track` objects
2424
- `hasNextPage`: Boolean indicating if more tracks are available
@@ -51,7 +51,7 @@ Retrieves albums from the device's music library.
5151

5252
#### Returns
5353

54-
Promise that resolves to `AlbumResult` containing:
54+
`Promise<AlbumResult>` containing:
5555

5656
- `items`: Array of `Album` objects
5757
- `hasNextPage`: Boolean indicating if more albums are available
@@ -83,7 +83,7 @@ Retrieves artists from the device's music library.
8383

8484
#### Returns
8585

86-
Promise that resolves to `ArtistResult` containing:
86+
`Promise<ArtistResult>` containing:
8787

8888
- `items`: Array of `Artist` objects
8989
- `hasNextPage`: Boolean indicating if more artists are available
@@ -115,7 +115,7 @@ Retrieves detailed metadata for a specific track.
115115

116116
#### Returns
117117

118-
Promise that resolves to `TrackMetadata` containing detailed audio and tag information.
118+
`Promise<TrackMetadata>` containing detailed audio and tag information.
119119

120120
#### Example
121121

@@ -137,7 +137,7 @@ Retrieves all tracks from a specific album.
137137

138138
#### Returns
139139

140-
Promise that resolves to an array of `Track` objects.
140+
`Promise<Track[]>` containing an array of `Track` objects.
141141

142142
#### Example
143143

@@ -158,7 +158,7 @@ Retrieves all tracks from a specific artist.
158158

159159
#### Returns
160160

161-
Promise that resolves to `TrackResult` containing tracks by the artist.
161+
`Promise<TrackResult>` containing tracks by the artist.
162162

163163
#### Example
164164

@@ -181,7 +181,7 @@ Retrieves all albums from a specific artist.
181181

182182
#### Returns
183183

184-
Promise that resolves to an array of `Album` objects.
184+
`Promise<Album[]>` containing an array of `Album` objects.
185185

186186
#### Example
187187

docs/docs/getting-started.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ Learn how to set up and use React Native Music Library in your project.
88

99
## Installation
1010

11-
### Using npm
12-
1311
```bash
1412
npm install @nodefinity/react-native-music-library
15-
```
16-
17-
### Using yarn
18-
19-
```bash
13+
# or
2014
yarn add @nodefinity/react-native-music-library
2115
```
2216

docs/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type * as Preset from '@docusaurus/preset-classic';
77
const config: Config = {
88
title: 'React Native Music Library',
99
tagline:
10-
'A powerful React Native library for accessing local music files with full metadata support.',
10+
'A powerful React Native library for accessing local music files and getting full metadata.',
1111
favicon: 'img/favicon.ico',
1212

1313
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future

docs/i18n/zh/code.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,5 +321,37 @@
321321
"theme.contentVisibility.draftBanner.message": {
322322
"message": "此页面是草稿,仅在开发环境中可见,不会包含在正式版本中。",
323323
"description": "The draft content banner message"
324+
},
325+
"siteConfig.tagline": {
326+
"message": "一个功能强大的 React Native 库,用于访问本地音乐文件并获取完整的元数据信息",
327+
"description": "The title of the site"
328+
},
329+
"home.hero.mainButton": {
330+
"message": "开始使用",
331+
"description": "The label of the main button on the homepage hero"
332+
},
333+
"home.features.easyToUse.title": {
334+
"message": "易于使用",
335+
"description": "The title of the first feature on the homepage"
336+
},
337+
"home.features.easyToUse.description": {
338+
"message": "专为简单易用而设计,让您能够快速集成到项目中并开始访问本地音乐文件。",
339+
"description": "The description of the first feature on the homepage"
340+
},
341+
"home.features.powerful.title": {
342+
"message": "功能强大",
343+
"description": "The title of the second feature on the homepage"
344+
},
345+
"home.features.powerful.description": {
346+
"message": "提供完整的媒体库和音乐元数据访问功能,让您专注于构建出色的音乐应用体验。",
347+
"description": "The description of the second feature on the homepage"
348+
},
349+
"home.features.reactNative.title": {
350+
"message": "基于 React Native",
351+
"description": "The title of the third feature on the homepage"
352+
},
353+
"home.features.reactNative.description": {
354+
"message": "专为 React Native 生态系统构建,提供原生性能和无缝集成体验,同时保持跨平台兼容性。",
355+
"description": "The description of the third feature on the homepage"
324356
}
325357
}

0 commit comments

Comments
 (0)