tencent cloud

$0 14-Day TrialExperience EdgeOne for acceleration and security protection!

Feedback

Chat
Last updated: 2024-10-18 17:30:54

Supported Languages

Currently supports Simplified Chinese, English, Japanese, and Arabic.

Switch Language

TUICallKit defaults to the same language as the phone system . If you need to switch languages, you can use TUIGlobalization.setPreferredLanguage to switch languages, taking switching to English as an example:
import TUICore

func steLanguage() {
TUIGlobalization.setPreferredLanguage("en")
}

Add New Language

Step 1: Source Code Integration

1. Clone/download the code from GitHub.
2. Download the TUICallKit source code dependency to local in the Podfile file of the Application project.
target 'TUICallKitApp' do
use_frameworks!
pod 'TUICallKit-Swift/Professional', :path => "Your Download Path/TUICallKit/iOS"
end

3. Run the pod update command to update dependencies.

Step 2: Add a new language pack

Using Spanish as an example:

1. Add a new Spanish language file.
Navigate to the TUICallKit source file directory, under iOS/TUICallKit-Swift/Resources, and create a new es.lproj/Localized.strings file.
2. Copy the content in iOS/TUICallKit-Swift/Resources/en.lproj/Localized.strings into the newly added iOS/TUICallKit-Swift/Resources/es.lproj/Localized.strings file.
3. Translate the English content in iOS/TUICallKit-Swift/Resources/es.lproj/Localized.strings to Spanish.
4. Navigate to the directory containing the Application project’s Podfile and execute the pod install command to update dependencies.
import com.tencent.qcloud.tuicore.TUIThemeManager;

public class MainActivity extends BaseActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

Locale locale = new Locale("es"); TUIThemeManager.addLanguage("es", locale);
}
}

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon