Language

UpdateLanguage #

If your application has multiple language versions, when users switch languages, AIHelp can just cooperate with users’ actions to switch languages.

API #

Call this method to actively update the language for the SDK.

It should be noted that if your application has only one language, you can choose to specify the language at initialization instead of calling this method.

This API requires following parameters:

  • language

    Required. The language code to be updated, such as zh_CN or en, which follows the system language by default. Please check the language code table at here.

Code example #

public void updateLanguage(String lan) {
    AIHelpSupport.updateSDKLanguage(lan);
}
- (void)updateLanguage:(NSString *)language {
    [AIHelpSupportSDK updateSDKLanguage:language];
}
public void updateLanguage(string lan) {
    AIHelpSupport::updateSDKLanguage(lan);
}
public void updateLanguage(string lan) {
    AIHelpSupport.updateSDKLanguage(lan);
}

Remark #

Language Code
English en
Russian ru
Japanese ja
Chinese Traditional zh_TW
Chinese Simplified zh_CN
Arabic ar
German de
French fr
Korean ko
Portuguese pt
Thai th
Turkish tr
Indonesian id
Spanish es
Vietnamese vi
Italian it
Polish pl
Dutch nl
Persian fa
Romanian ro
Filipino tl_PH
Malay ms_MY
Czech cs_CZ
Greek el_GR
Hungarian hu_HU
Svenska sv_SE
Hindi hi_IN
Telugu te_IN
Bengali bn_IN
Tamil ta_IN
Norwegian nb
Burmese my_MM