未验证 提交 9cfe188e 编写于 作者: O openharmony_ci 提交者: Gitee

!23991 修改i18n中接口错误码描述错误的问题--一致性问题

Merge pull request !23991 from LY/monthly_20230815
......@@ -116,14 +116,6 @@ static getSystemLanguages(): Array<string>
| ------------------- | ------------ |
| Array<string> | 系统支持的语言ID列表。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -231,14 +223,6 @@ static getSystemLanguage(): string
| ------ | ------- |
| string | 系统语言ID。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -303,14 +287,6 @@ static getSystemRegion(): string
| ------ | ------- |
| string | 系统地区ID。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -375,14 +351,6 @@ static getSystemLocale(): string
| ------ | ------- |
| string | 系统区域ID。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -447,14 +415,6 @@ static is24HourClock(): boolean
| ------- | ---------------------------------------- |
| boolean | 返回true,表示系统24小时开关开启;返回false,表示系统24小时开关关闭。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -602,14 +562,6 @@ static getPreferredLanguageList(): Array<string>
| ------------------- | --------- |
| Array<string> | 系统偏好语言列表。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -636,14 +588,6 @@ static getFirstPreferredLanguage(): string
| ------ | -------------- |
| string | 偏好语言列表中的第一个语言。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -670,14 +614,6 @@ static getAppPreferredLanguage(): string
| ------ | -------- |
| string | 应用的偏好语言。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -742,14 +678,6 @@ static getUsingLocalDigit(): boolean
| ------- | ---------------------------------------- |
| boolean | true表示系统当前已打开本地数字开关,false表示系统当前未打开本地数字开关。 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
import { BusinessError } from '@ohos.base';
......@@ -1819,6 +1747,14 @@ static getTimezonesByLocation(longitude: number, latitude: number): Array<Tim
| -------- | ----------- |
| Array<[TimeZone](#timezone)> | 时区对象的数组 |
**错误码:**
以下错误码的详细介绍请参见[ohos.i18n错误码](../errorcodes/errorcode-i18n.md)
| 错误码ID | 错误信息 |
| ------ | ---------------------- |
| 890001 | param value not valid |
**示例:**
```ts
let timezoneArray: Array<I18n.TimeZone> = I18n.TimeZone.getTimezonesByLocation(-118.1, 34.0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册