Skip to content

Commit

Permalink
update bridge methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhichao Link committed Jan 31, 2023
1 parent b6031c4 commit f4f7020
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Assets/Plugins/iOS/.Swift/UnityManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,17 @@ extension UnityManager {

func setLanguage(_ json: String) {
/**
SYSTEM,
ZH_CN,
ZH_TW,
EN,
ZH_HANS,
JA,
KO,
*/
if json.lowercased() == "en" {
ParticleNetwork.setLanguage(Language.en)
} else if json.lowercased() == "zh_hans" {
} else if json.lowercased() == "zh_cn" {
ParticleNetwork.setLanguage(Language.zh_Hans)
} else if json.lowercased() == "zh_hant" {
} else if json.lowercased() == "zh_tw" {
ParticleNetwork.setLanguage(Language.zh_Hant)
} else if json.lowercased() == "ko" {
ParticleNetwork.setLanguage(Language.ko)
Expand Down

0 comments on commit f4f7020

Please sign in to comment.