Skip to content

Commit

Permalink
Localize About
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Sep 6, 2023
1 parent 611f29c commit 13a5444
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 19 deletions.
35 changes: 18 additions & 17 deletions app-ios/Modules/Sources/About/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,22 @@ public struct AboutView<ContributorView: View, StaffView: View, SponsorView: Vie
VStack(spacing: 0) {
Assets.Images.aboutKeyVisual.swiftUIImage
Spacer().frame(height: 16)
Text("DroidKaigiはAndroid技術情報の共有とコミュニケーションを目的に開催されるエンジニアが主役のAndroidカンファレンスです。")
Text(L10n.About.description)
.font(Font.system(size: 16))
.frame(maxWidth: .infinity, alignment: .leading)
Spacer().frame(height: 12)
VStack(alignment: .leading, spacing: 12) {
InformationRow(
icon: Assets.Icons.schedule.swiftUIImage,
title: "日時",
content: "2023.09.14(木) 〜 16(土) 3日間"
title: L10n.About.dateTitle,
content: L10n.About.dateDescription
)
InformationRow(
icon: Assets.Icons.locationOn.swiftUIImage,
title: "場所",
content: "ベルサール渋谷ガーデン",
title: L10n.About.placeTitle,
content: L10n.About.placeDescription,
action: .init(
label: "地図を見る",
label: L10n.About.viewMap,
action: {
if let googleMapUrl = URL(string: "https://goo.gl/maps/vv9sE19JvRjYKtSP9") {
openURL(googleMapUrl)
Expand All @@ -64,47 +65,47 @@ public struct AboutView<ContributorView: View, StaffView: View, SponsorView: Vie
.background(AssetColors.Surface.surfaceContainerLow.swiftUIColor)
.clipShape(RoundedRectangle(cornerRadius: 12))
Spacer().frame(height: 32)
SectionTitle(title: "Credits")
SectionTitle(title: L10n.About.creditsTitle)
NavigationLink(value: AboutRouting.staffs) {
ListTile(
icon: Assets.Icons.sentimentVerySatisfied.swiftUIImage,
title: "スタッフ"
title: L10n.About.staff
)
}
Divider()
NavigationLink(value: AboutRouting.contributors) {
ListTile(
icon: Assets.Icons.diversity.swiftUIImage,
title: "コントリビューター"
title: L10n.About.contributors
)
}
Divider()
NavigationLink(value: AboutRouting.sponsors) {
ListTile(
icon: Assets.Icons.apartment.swiftUIImage,
title: "スポンサー"
title: L10n.About.sponsors
)
}
Divider()
SectionTitle(title: "Others")
SectionTitle(title: L10n.About.othersTitle)
SafariLink(url: LocaleKt.getDefaultLocale() == .japan ? .codeOfConduct : .codeOfConductEn) {
ListTile(
icon: Assets.Icons.gavel.swiftUIImage,
title: "行動規範"
title: L10n.About.codeOfConduct
)
}
Divider()
NavigationLink(value: AboutRouting.license) {
ListTile(
icon: Assets.Icons.fileCopy.swiftUIImage,
title: "ライセンス"
title: L10n.About.licenses
)
}
Divider()
SafariLink(url: LocaleKt.getDefaultLocale() == .japan ? .privacyPolicy : .privacyPolicyEn) {
ListTile(
icon: Assets.Icons.privacyTip.swiftUIImage,
title: "プライバシーポリシー"
title: L10n.About.privacyPolicy
)
}
Divider()
Expand All @@ -121,20 +122,20 @@ public struct AboutView<ContributorView: View, StaffView: View, SponsorView: Vie
}
.padding(.vertical, 24)

Text("アプリバージョン")
Text(L10n.About.appVersion)
.font(Font.system(size: 14, weight: .medium))
Spacer().frame(height: 8)
Text(Bundle.main.formattedVersion)
.font(Font.system(size: 14, weight: .medium))
Spacer().frame(height: 8)
Text("The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.")
Text(L10n.About.androidRobotDescription)
.foregroundStyle(AssetColors.About.androidRobotDescription.swiftUIColor)
.font(Font.system(size: 11, weight: .medium))
.multilineTextAlignment(.center)
}
.padding(16)
}
.navigationTitle("About")
.navigationTitle(L10n.About.title)
.navigationDestination(for: AboutRouting.self) { routing in
switch routing {
case .contributors:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@

"about.title" = "About";
"about.description" = "DroidKaigi is a conference tailored for Android developers.";
"about.date_title" = "Date";
"about.date_description" = "2023.09.14(Thu) - 16(Sat) 3days";
"about.place_title" = "Place";
"about.place_description" = "Bellesalle Shibuya Garden";
"about.view_map" = "View Map";
"about.credits_title" = "Credits";
"about.staff" = "Staff";
"about.contributors" = "Contributors";
"about.sponsors" = "Sponsors";
"about.others_title" = "Others";
"about.code_of_conduct" = "Code Of Conduct";
"about.licenses" = "Licenses";
"about.privacy_policy" = "Privacy Policy";
"about.app_version" = "App Version";
"about.android_robot_description" = "The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.";
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@

"about.title" = "About";
"about.description" = "DroidKaigiはAndroid技術情報の共有とコミュニケーションを目的に開催されるエンジニアが主役のAndroidカンファレンスです。";
"about.date_title" = "日時";
"about.date_description" = "2023.09.14(木) 〜 16(土) 3日間";
"about.place_title" = "場所";
"about.place_description" = "ベルサール渋谷ガーデン";
"about.view_map" = "地図を見る";
"about.credits_title" = "Credits";
"about.staff" = "スタッフ";
"about.contributors" = "コントリビューター";
"about.sponsors" = "スポンサー";
"about.others_title" = "Others";
"about.code_of_conduct" = "行動規範";
"about.licenses" = "ライセンス";
"about.privacy_policy" = "プライバシーポリシー";
"about.app_version" = "アプリバージョン";
"about.android_robot_description" = "The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.";

0 comments on commit 13a5444

Please sign in to comment.