Skip to content

Commit 4187fdd

Browse files
committed
IOS-5255 Update description behaviour
1 parent 46b4e52 commit 4187fdd

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

Anytype/Sources/PresentationLayer/TextEditor/EditorPage/Views/Settings/ObjectSettings/Model/ObjectSetting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ extension ObjectSetting {
5252
Loc.icon
5353
case .cover:
5454
Loc.cover
55-
case .description:
56-
Loc.description
55+
case .description(let isVisible):
56+
isVisible ? Loc.hideDescription : Loc.showDescription
5757
case .relations:
5858
Loc.fields
5959
case .history:

Modules/Loc/Sources/Loc/Generated/Strings.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ public enum Loc {
369369
public static let header = Loc.tr("UI", "Header", fallback: "Header")
370370
public static let hidden = Loc.tr("UI", "Hidden", fallback: "Hidden")
371371
public static let hide = Loc.tr("UI", "Hide", fallback: "Hide")
372+
public static let hideDescription = Loc.tr("UI", "Hide Description", fallback: "Hide Description")
372373
public static let hideTypes = Loc.tr("UI", "Hide types", fallback: "Hide types")
373374
public static let highlight = Loc.tr("UI", "Highlight", fallback: "Highlight")
374375
public static let history = Loc.tr("UI", "History", fallback: "History")
@@ -579,6 +580,7 @@ public enum Loc {
579580
public static let settings = Loc.tr("UI", "Settings", fallback: "Settings")
580581
public static let share = Loc.tr("UI", "Share", fallback: "Share")
581582
public static let show = Loc.tr("UI", "Show", fallback: "Show")
583+
public static let showDescription = Loc.tr("UI", "Show Description", fallback: "Show Description")
582584
public static let showTypes = Loc.tr("UI", "Show types", fallback: "Show types")
583585
public static let skip = Loc.tr("UI", "Skip", fallback: "Skip")
584586
public static let sky = Loc.tr("UI", "Sky", fallback: "Sky")

Modules/Loc/Sources/Loc/Resources/UI.xcstrings

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44547,6 +44547,17 @@
4454744547
}
4454844548
}
4454944549
},
44550+
"Hide Description" : {
44551+
"extractionState" : "manual",
44552+
"localizations" : {
44553+
"en" : {
44554+
"stringUnit" : {
44555+
"state" : "translated",
44556+
"value" : "Hide Description"
44557+
}
44558+
}
44559+
}
44560+
},
4455044561
"Hide types" : {
4455144562
"extractionState" : "manual",
4455244563
"localizations" : {
@@ -83950,6 +83961,17 @@
8395083961
}
8395183962
}
8395283963
},
83964+
"Show Description" : {
83965+
"extractionState" : "manual",
83966+
"localizations" : {
83967+
"en" : {
83968+
"stringUnit" : {
83969+
"state" : "translated",
83970+
"value" : "Show Description"
83971+
}
83972+
}
83973+
}
83974+
},
8395383975
"Show types" : {
8395483976
"extractionState" : "manual",
8395583977
"localizations" : {

0 commit comments

Comments
 (0)