feat(i18n): 마이페이지 그룹 3~5 하드코딩 문구를 I18n 키로 통일한다
This commit is contained in:
@@ -26,7 +26,7 @@ struct ProfileUpdateView: View {
|
||||
func EmailAndPasswordView() -> some View {
|
||||
VStack(spacing: 26.7) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("이메일")
|
||||
Text(I18n.User.emailTitle)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -45,7 +45,7 @@ struct ProfileUpdateView: View {
|
||||
|
||||
HStack(alignment: .bottom, spacing: 13.3) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("비밀번호")
|
||||
Text(I18n.User.passwordTitle)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -63,7 +63,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
Button(action: { AppState.shared.setAppStep(step: .modifyPassword) }) {
|
||||
Text("비밀번호 변경")
|
||||
Text(I18n.ProfileUpdate.modifyPasswordTitle)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.vertical, 13.3)
|
||||
@@ -85,7 +85,7 @@ struct ProfileUpdateView: View {
|
||||
VStack(spacing: 16.7) {
|
||||
HStack(alignment: .bottom, spacing: 13.3) {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("닉네임")
|
||||
Text(I18n.ProfileUpdate.nicknameHint)
|
||||
.appFont(size: 12, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -103,7 +103,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
Button(action: { AppState.shared.setAppStep(step: .changeNickname) }) {
|
||||
Text("닉네임 변경")
|
||||
Text(I18n.MyPage.Profile.changeNicknameAction)
|
||||
.appFont(size: 13.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.padding(.vertical, 13.3)
|
||||
@@ -114,7 +114,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("성별")
|
||||
Text(I18n.MyPage.Profile.genderTitle)
|
||||
.appFont(size: 12, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.leading, 6.7)
|
||||
@@ -126,7 +126,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("여자")
|
||||
Text(I18n.MyPage.Profile.female)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -140,7 +140,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("남자")
|
||||
Text(I18n.MyPage.Profile.male)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -154,7 +154,7 @@ struct ProfileUpdateView: View {
|
||||
.resizable()
|
||||
.frame(width: 20, height: 20)
|
||||
|
||||
Text("공개 안 함")
|
||||
Text(I18n.MyPage.Profile.notPublic)
|
||||
.appFont(size: 13.3, weight: .medium)
|
||||
.foregroundColor(Color.grayee)
|
||||
}
|
||||
@@ -220,7 +220,7 @@ struct ProfileUpdateView: View {
|
||||
@ViewBuilder
|
||||
func TagSelectView() -> some View {
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("관심사")
|
||||
Text(I18n.MyPage.Profile.interestsTitle)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -228,7 +228,7 @@ struct ProfileUpdateView: View {
|
||||
hideKeyboard()
|
||||
isShowSelectTagView = true
|
||||
}) {
|
||||
Text("관심사 선택")
|
||||
Text(I18n.MyPage.Profile.selectInterestsAction)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.button)
|
||||
.padding(.vertical, 13.7)
|
||||
@@ -275,7 +275,7 @@ struct ProfileUpdateView: View {
|
||||
@ViewBuilder
|
||||
func ContentInputView() -> some View {
|
||||
VStack(alignment: .leading, spacing: 13.3) {
|
||||
Text("소개글")
|
||||
Text(I18n.MyPage.Profile.introductionTitle)
|
||||
.appFont(size: 16.7, weight: .bold)
|
||||
.foregroundColor(Color.grayee)
|
||||
|
||||
@@ -296,7 +296,7 @@ struct ProfileUpdateView: View {
|
||||
GeometryReader { proxy in
|
||||
ZStack {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "프로필 수정")
|
||||
DetailNavigationBar(title: I18n.MyPage.Main.editProfile)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 0) {
|
||||
@@ -364,7 +364,7 @@ struct ProfileUpdateView: View {
|
||||
}
|
||||
|
||||
if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue {
|
||||
Text("저장하기")
|
||||
Text(I18n.MyPage.Profile.saveAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.frame(width: screenSize().width - 26.7, height: 50)
|
||||
@@ -394,7 +394,7 @@ struct ProfileUpdateView: View {
|
||||
if UserDefaults.string(forKey: .role) != MemberRole.CREATOR.rawValue {
|
||||
Spacer()
|
||||
|
||||
Text("저장하기")
|
||||
Text(I18n.MyPage.Profile.saveAction)
|
||||
.appFont(size: 18.3, weight: .bold)
|
||||
.foregroundColor(Color.white)
|
||||
.frame(width: screenSize().width - 26.7, height: 50)
|
||||
|
||||
Reference in New Issue
Block a user