diff --git a/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/Contents.json index b63f1250..618a057a 100644 --- a/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/Contents.json +++ b/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/Contents.json @@ -1,15 +1,7 @@ { "images" : [ { - "filename" : "img_apply_creator.png", - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { + "filename" : "img_apply_creator_kr.png", "idiom" : "universal", "scale" : "3x" } diff --git a/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator.png b/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator.png deleted file mode 100644 index fe9f2b53..00000000 Binary files a/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator.png and /dev/null differ diff --git a/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator_kr.png b/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator_kr.png new file mode 100644 index 00000000..382cb0ec Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/img_apply_creator.imageset/img_apply_creator_kr.png differ diff --git a/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/Contents.json new file mode 100644 index 00000000..73669899 --- /dev/null +++ b/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "filename" : "img_apply_creator_ja.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/img_apply_creator_ja.png b/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/img_apply_creator_ja.png new file mode 100644 index 00000000..cea3fb2d Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/img_apply_creator_ja.imageset/img_apply_creator_ja.png differ diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/Contents.json new file mode 100644 index 00000000..c6f09ef4 --- /dev/null +++ b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "filename" : "img_introduce_sodalive_kr.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/img_introduce_sodalive_kr.png b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/img_introduce_sodalive_kr.png new file mode 100644 index 00000000..62f03301 Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive.imageset/img_introduce_sodalive_kr.png differ diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/Contents.json new file mode 100644 index 00000000..ba0c436b --- /dev/null +++ b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "filename" : "img_introduce_sodalive_ja.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/img_introduce_sodalive_ja.png b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/img_introduce_sodalive_ja.png new file mode 100644 index 00000000..59701c65 Binary files /dev/null and b/SodaLive/Resources/Assets.xcassets/img_introduce_sodalive_ja.imageset/img_introduce_sodalive_ja.png differ diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/Contents.json b/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/Contents.json deleted file mode 100644 index 737c1a0b..00000000 --- a/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/Contents.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "images" : [ - { - "filename" : "img_introduce_voiceon.png", - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/img_introduce_voiceon.png b/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/img_introduce_voiceon.png deleted file mode 100644 index 731ebd4a..00000000 Binary files a/SodaLive/Resources/Assets.xcassets/img_introduce_voiceon.imageset/img_introduce_voiceon.png and /dev/null differ diff --git a/SodaLive/Sources/MyPage/MyPageView.swift b/SodaLive/Sources/MyPage/MyPageView.swift index 97f03488..4407d1fd 100644 --- a/SodaLive/Sources/MyPage/MyPageView.swift +++ b/SodaLive/Sources/MyPage/MyPageView.swift @@ -13,6 +13,8 @@ import Kingfisher import RefreshableScrollView struct MyPageView: View { + + @Environment(\.locale) private var locale @StateObject var viewModel = MyPageViewModel() @StateObject var recentContentViewModel = RecentContentViewModel() @@ -137,8 +139,9 @@ struct MyPageView: View { if let url = URL(string: "https://bit.ly/4h7pVks"), UIApplication.shared.canOpenURL(url) { // SodaLive Banner - Image("img_apply_creator") + Image(locale.identifier.hasPrefix("ja") ? "img_apply_creator_ja" : "img_apply_creator") .resizable() + .scaledToFit() .frame(maxWidth: .infinity) .padding(.horizontal, 24) .onTapGesture { @@ -149,8 +152,9 @@ struct MyPageView: View { if let url = URL(string: "https://blog.naver.com/sodalive_official"), UIApplication.shared.canOpenURL(url) { // SodaLive Banner - Image("img_introduce_voiceon") + Image(locale.identifier.hasPrefix("ja") ? "img_introduce_sodalive_ja" : "img_introduce_sodalive") .resizable() + .scaledToFit() .frame(maxWidth: .infinity) .padding(.horizontal, 24) .onTapGesture {