forked from tezpark/StringsDesignTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SBUStringSet.swift
237 lines (204 loc) · 8.77 KB
/
SBUStringSet.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
//
// SBUStringSet.swift
// SendBirdUIKit
//
// Created by Tez Park on 05/03/2020.
// Copyright © 2020 Sendbird, Inc. All rights reserved.
//
import UIKit
import SendBirdSDK
@objcMembers
public class SBUStringSet: NSObject {
// MARK: - Common
public static var Cancel = "Cancel"
public static var OK = "OK"
public static var Retry = "Retry"
public static var Save = "Save"
public static var Copy = "Copy"
public static var Delete = "Delete"
public static var Edit = "Edit"
public static var Remove = "Remove"
public static var Camera = "Camera"
public static var PhotoVideoLibrary = "Photo library"
public static var Document = "Files"
public static var Loading = "Loading..."
public static var Invite = "Invite"
public static var TakePhoto = "Take photo"
public static var ChoosePhoto = "Choose photo"
public static var RemovePhoto = "Remove photo"
public static var Search = "Search"
// MARK: - Alert
public static var Alert_Delete = "Are you sure you want to delete?"
// MARK: - Date Format
public static var Date_Yesterday = "Yesterday"
public static var Date_Year: (Int) -> String = { interval in
return String(format :"%lld%@", interval, (interval>1) ? "years" : "year")
}
public static var Date_Day: (Int) -> String = { interval in
return String(format :"%lld%@", interval, (interval>1) ? "days" : "day")
}
public static var Date_Month: (Int) -> String = { interval in
return String(format :"%lldmonth", interval)
}
public static var Date_Hour: (Int) -> String = { interval in
return String(format :"%lldh", interval)
}
public static var Date_Min: (Int) -> String = { interval in
return String(format :"%lldm", interval)
}
public static var Date_Ago = "ago"
public static var Date_On = "on"
// MARK: - Channel List
public static var ChannelList_Header_Title = "Channels"
public static var ChannelList_Last_File_Message = "uploaded a file."
// MARK: - Channel
public static var Channel_Name_Default = "Group Channel"
public static var Channel_Name_No_Members = "(No members)"
public static var Channel_Header_LastSeen = "Last seen"
public static var Channel_Header_Typing: ([SBDUser]) -> String = { members in
switch members.count {
case 1:
return String(format: "%@ is typing...",
members[0].nickname ?? "Member")
case 2:
return String(format: "%@ and %@ are typing...",
members[0].nickname ?? "Member",
members[1].nickname ?? "Member")
default:
return "Several people are typing..."
}
}
public static var Channel_Success_Download_file = "File saved."
public static var Channel_Failure_Download_file = "Couldn’t download file."
public static var Channel_Failure_Open_file = "Couldn’t open file."
public static var Channel_New_Message_File = "uploaded a file"
public static var Channel_New_Message: (Int) -> String = { count in
switch count {
case 1:
return "1 new message"
case 2...99:
return "\(count) new messages"
case 100...:
return "99+ new messages"
default:
return ""
}
}
public static var Channel_State_Banner_Frozen = "Channel frozen"
// MARK: - Open Channel
public static var Open_Channel_Name_Default = "Open Channel"
public static var Open_Channel_Participants = "Participants"
public static var Open_Channel_Participants_Count: (Int) -> String = { count in
switch count {
case 1:
return "1 participant"
default:
return "\(count) participants"
}
}
// MARK: - Channel Setting
public static var ChannelSettings_Header_Title = "Channel information"
public static var ChannelSettings_Change_Name = "Change name"
public static var ChannelSettings_Change_Image = "Change channel image"
public static var ChannelSettings_Enter_New_Name = "Enter name"
public static var ChannelSettings_Enter_New_Channel_Name = "Enter channel name"
public static var ChannelSettings_Notifications = "Notifications"
public static var ChannelSettings_Members_Title = "Members"
public static var ChannelSettings_Participants_Title = "Participants"
public static var ChannelSettings_Members: (UInt) -> String = { count in
switch count {
case 0:
return "members"
default:
return "\(count) members"
}
}
public static var ChannelSettings_Leave = "Leave channel"
public static var ChannelSettings_Delete = "Delete channel"
public static var ChannelSettings_Search = "Search in channel"
public static var ChannelSettings_Moderations = "Moderations"
public static var ChannelSettings_Operators = "Operators"
public static var ChannelSettings_Muted_Members = "Muted members"
public static var ChannelSettings_Banned_Members = "Banned members"
public static var ChannelSettings_Freeze_Channel = "Freeze channel"
public static var ChannelSettings_URL = "URL"
// MARK: - Message Input
public static var MessageInput_Text_Placeholder = "Type a message"
public static var MessageInput_Text_Unavailable = "Chat is unavailable in this channel"
public static var MessageInput_Text_Muted = "You are muted"
// MARK: - Message
public static var Message_Edited = "(edited)"
public static var Message_System = "System message"
public static var Message_Unknown_Title = "(Unknown message type)"
public static var Message_Unknown_Desctiption = "Cannot read this message."
// MARK: - Empty
public static var Empty_No_Channels = "No channels"
public static var Empty_No_Messages = "No messages"
public static var Empty_No_Users = "No users"
public static var Empty_No_Muted_Members = "No muted members"
public static var Empty_No_Banned_Members = "No banned members"
public static var Empty_Search_Result = "No results found"
public static var Empty_Wrong = "Something went wrong"
// MARK: - Create Channel
public static var CreateChannel_Create: (Int) -> String = { count in
switch count {
case 0:
return "Create"
default:
return "\(count) Create"
}
}
public static var CreateChannel_Header_Title = "New Channel"
public static var CreateChannel_Header_Select_Members = "Select members"
public static var CreateChannel_Header_Title_Profile = "New channel profile"
// MARK: - Invite Channel
public static var InviteChannel_Header_Title = "Invite users"
public static var InviteChannel_Header_Select_Members = "Select members"
public static var InviteChannel_Invite: (Int) -> String = { count in
switch count {
case 0:
return "Invite"
default:
return "\(count) Invite"
}
}
public static var InviteChannel_Add: (Int) -> String = { count in
switch count {
case 0:
return "Add"
default:
return "\(count) Add"
}
}
// MARK: - Member List
public static var MemberList_Header_Title = "Members"
public static var MemberList_Me = "(You)"
public static var MemberList_Ban = "Ban"
public static var MemberList_Unban = "Unban"
public static var MemberList_Mute = "Mute"
public static var MemberList_Unmute = "Unmute"
public static var MemberList_Dismiss_Operator = "Dismiss operator"
public static var MemberList_Promote_Operator = "Promote to operator"
public static var MemberList_Title_Members = "Members"
public static var MemberList_Title_Operators = "Operators"
public static var MemberList_Title_Muted_Members = "Muted members"
public static var MemberList_Title_Banned_Members = "Banned members"
public static var MemberList_Title_Participants = "Participants"
// MARK: - User
public static var User_No_Name = "(No name)"
public static var User_Operator = "Operator"
// MARK - User profile
public static var UserProfile_Role_Operator = "Operator"
public static var UserProfile_Role_Member = "Member"
public static var UserProfile_UserID = "User ID"
public static var UserProfile_Message = "Message"
public static var UserProfile_Promote = "Promote"
public static var UserProfile_Dismiss = "Dismiss"
public static var UserProfile_Mute = "Mute"
public static var UserProfile_Unmute = "Unmute"
public static var UserProfile_Ban = "Ban"
// MARK: - Channel type
public static var ChannelType_Group = "Group"
public static var ChannelType_SuperGroup = "Super group"
public static var ChannelType_Broadcast = "Broadcast"
}