diff --git a/en/react-native-localization.md b/en/react-native-localization.md index 7a73488d5dbe709d0bab6df12ebddf5fbf96dffb..8319b62771196d1ae6ee306f69c6e53c7a836620 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 8f1332b9f9e4ac3478d2e152dbbbd02284af450e..ab2ea00ed0a63ec63ff08a3b5c45fc39ff74fc61 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 | ## 遗留问题