Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 增加 Android Java 内嵌动态 使用方式 #1189

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions cn/docs/sdk/_partials/languages.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,97 @@ namespace TapSDK.Core

<>

```java
import com.taptap.sdk.core.TapTapLanguage;
import com.taptap.sdk.core.TapTapSdk;

TapTapSdk.setPreferredLanguage(TapTapLanguage.AUTO);
```

支持如下语言:

```java
/**
* 自动
*/
AUTO("auto"),

/**
* 简体中文
*/
ZH_HANS("zh_CN"),

/**
* 英语(美国)
*/
EN("en_US"),

/**
* 繁体中文
*/
ZH_HANT("zh_TW"),

/**
* 日文
*/
JA("ja_JP"),

/**
* 韩文
*/
KO("ko_KR"),

/**
* 泰语
*/
TH("th_TH"),

/**
* 印尼语
*/
ID("id_ID"),

/**
* 德语
*/
DE("de"),

/**
* 西班牙语
*/
ES("es_ES"),

/**
* 法语
*/
FR("fr"),

/**
* 葡萄牙语
*/
PT("pt_PT"),

/**
* 俄语
*/
RU("ru"),


/**
* 土耳其语
*/
TR("tr"),

/**
* 越南语
*/
VI("vi_VN");
```

</>

<>

```kotlin
TapTapSdk.setPreferredLanguage(TapTapLanguage.AUTO)
```
Expand Down
Loading
Loading