Skip to content

Commit

Permalink
abnc
Browse files Browse the repository at this point in the history
  • Loading branch information
daktech5 committed Sep 16, 2023
1 parent 42f6399 commit e81e1bd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "1687DEE3-BEA3-4584-AA75-C95450800F3F"
type = "0"
version = "2.0">
</Bucket>
14 changes: 10 additions & 4 deletions DefaultProject/DefaultProjectApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ struct RootView: SwiftUI.View {
coordinator.build(fullScreenCover: fullScreencover)
}
.onAppear(perform: {
if USERNAME == ""{
language = "en"
CrowdinSDK.currentLocalization = language
}
let deviceLanguage = checkDeviceLanguage()
language = deviceLanguage
CrowdinSDK.currentLocalization = language

if !FIRST_LOAD_APP{
let point = Point(pointColor: 0)
Point.savePoint(point: point)
Expand Down Expand Up @@ -121,5 +121,11 @@ struct RootView: SwiftUI.View {
GADMobileAds.sharedInstance().applicationMuted = true
})
}


func checkDeviceLanguage() -> String {
let preferredLanguage = Locale.preferredLanguages[0]
return preferredLanguage
}
}

0 comments on commit e81e1bd

Please sign in to comment.