Skip to content

Commit

Permalink
Merge pull request #1004 from 0x1-company/maintenance
Browse files Browse the repository at this point in the history
feat: 🎸 maintenance localize
  • Loading branch information
tomokisun authored Nov 20, 2023
2 parents f690e59 + 88a4fa0 commit 9ca1547
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{
"sourceLanguage" : "en",
"strings" : {
"サービス再開までしばらくお待ち下さい。" : {

"Please wait for a while until service resumes." : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "サービス再開までしばらくお待ち下さい。"
}
}
}
},
"メンテナンス中" : {

"Under Maintenance" : {
"localizations" : {
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "メンテナンス中"
}
}
}
}
},
"version" : "1.0"
Expand Down
15 changes: 4 additions & 11 deletions Packages/GodPackage/Sources/MaintenanceFeature/Maintenance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@ public struct MaintenanceLogic {
public init() {}
}

public enum Action {
case onTask
}
public enum Action {}

public var body: some Reducer<State, Action> {
Reduce<State, Action> { _, action in
switch action {
case .onTask:
return .none
}
}
EmptyReducer()
}
}

Expand All @@ -34,10 +27,10 @@ public struct MaintenanceView: View {
public var body: some View {
WithViewStore(store, observe: { $0 }) { _ in
VStack(spacing: 24) {
Text("メンテナンス中", bundle: .module)
Text("Under Maintenance", bundle: .module)
.font(.system(.title, design: .rounded, weight: .bold))

Text("サービス再開までしばらくお待ち下さい。", bundle: .module)
Text("Please wait for a while until service resumes.", bundle: .module)
.font(.system(.body, design: .rounded, weight: .bold))
}
.padding(.horizontal, 24)
Expand Down

0 comments on commit 9ca1547

Please sign in to comment.