From bc7d61da50495044c703ee7303300cac05aea8cd Mon Sep 17 00:00:00 2001 From: Chanry Date: Tue, 16 Dec 2025 17:57:26 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IDDDAX]=E4=BF=AE=E6=94=B9re?= =?UTF-8?q?act-native-localization=E7=9A=84=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chanry --- en/react-native-localization.md | 14 +++++++------- zh-cn/react-native-localization.md | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/en/react-native-localization.md b/en/react-native-localization.md index 7a73488d..8319b627 100644 --- a/en/react-native-localization.md +++ b/en/react-native-localization.md @@ -344,13 +344,13 @@ Verified in the following versions. | Name | Description | Type | Required | Platform | HarmonyOS Support | | ---- | :---------- | ---- | :------: | :------: | :----------------: | -| setLanguage(languageCode) | force manually a particular language | void | yes | iOS/Android | yes | -| getLanguage() | get the current displayed language | string | yes | iOS/Android | yes | -| getInterfaceLanguage() | get the current device interface language | string | yes | iOS/Android | yes | -| formatString() | format the passed string replacing its placeholders with the other arguments strings | string | yes | iOS/Android | yes | -| getAvailableLanguages() | get an array of the languages passed in the constructor | string[] | yes | iOS/Android | yes | -| getString(key: string, language?: string) | character information based on the key value | string | yes | iOS/Android | yes | -| setContent(props: any) | replace the NamedLocalization object without reinstantiating the object | void | yes | iOS/Android | yes | +| setLanguage(languageCode) | force manually a particular language | void | no | iOS/Android | yes | +| getLanguage() | get the current displayed language | string | no | iOS/Android | yes | +| getInterfaceLanguage() | get the current device interface language | string | no | iOS/Android | yes | +| formatString() | format the passed string replacing its placeholders with the other arguments strings | string | no | iOS/Android | yes | +| getAvailableLanguages() | get an array of the languages passed in the constructor | string[] | no | iOS/Android | yes | +| getString(key: string, language?: string) | character information based on the key value | string | no | iOS/Android | yes | +| setContent(props: any) | replace the NamedLocalization object without reinstantiating the object | void | no | iOS/Android | yes | ## Known Issues diff --git a/zh-cn/react-native-localization.md b/zh-cn/react-native-localization.md index 8f1332b9..ab2ea00e 100644 --- a/zh-cn/react-native-localization.md +++ b/zh-cn/react-native-localization.md @@ -351,13 +351,13 @@ ohpm install | Name | Description | Type | Required | Platform | HarmonyOS Support | | ----------------------------------------- | :----------------------------------------------------------- | -------- | :------: | :---------: | :---------------: | -| setLanguage(languageCode) | 手动强制设置为特定语言 | void | yes | iOS/Android | yes | -| getLanguage() | 获取当前显示的语言 | string | yes | iOS/Android | yes | -| getInterfaceLanguage() | 获取当前设备的系统界面语言 | string | yes | iOS/Android | yes | -| formatString() | 格式化传入的字符串,用其他参数替换字符串中的占位符。 | string | yes | iOS/Android | yes | -| getAvailableLanguages() | 获取在构造函数中传入的语言数组 | string[] | yes | iOS/Android | yes | -| getString(key: string, language?: string) | 根据键(key)获取对应的字符信息。如果指定了 `language`,则获取特定语言的字符信息。 | string | yes | iOS/Android | yes | -| setContent(props: any) | 替换 `NamedLocalization` 对象的内容,而无需重新实例化该对象。 | void | yes | iOS/Android | yes | +| setLanguage(languageCode) | 手动强制设置为特定语言 | void | no | iOS/Android | yes | +| getLanguage() | 获取当前显示的语言 | string | no | iOS/Android | yes | +| getInterfaceLanguage() | 获取当前设备的系统界面语言 | string | no | iOS/Android | yes | +| formatString() | 格式化传入的字符串,用其他参数替换字符串中的占位符。 | string | no | iOS/Android | yes | +| getAvailableLanguages() | 获取在构造函数中传入的语言数组 | string[] | no | iOS/Android | yes | +| getString(key: string, language?: string) | 根据键(key)获取对应的字符信息。如果指定了 `language`,则获取特定语言的字符信息。 | string | no | iOS/Android | yes | +| setContent(props: any) | 替换 `NamedLocalization` 对象的内容,而无需重新实例化该对象。 | void | no | iOS/Android | yes | ## 遗留问题 -- Gitee