forked from rauchg/slackin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
en.js
56 lines (55 loc) · 1.47 KB
/
en.js
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
import dom from 'vd';
// Localization prototype
export default {
locale: "en",
meta: _ => {
return [dom('meta http-equiv="content-language" content="en"')]
},
title: (name) => {
return `Join ${name} on Slack`
},
join: (name, channels) => {
return [dom('p',
'Join ', dom('b', name),
// mention single single-channel inline
channels && channels.length === 1 && dom('span', ' #', channels[0]),
' on Slack.'
)]
},
coc: (coc) => {
return [ dom('.coc',
dom('label',
dom('input type=checkbox name=coc value=1'),
'I agree to the ',
dom('a', { href: coc, target: '_blank', }, 'Code of Conduct'),
'.'
)
)
]
},
state: (active, total) => {
return active ?
[ dom('b.active', active), ' users online now of ',
dom('b.total', total), ' registered.'] :
[ dom('b.total', total), ' users are registered so far.'];
},
getinvite: _ => {
return [dom('button.loading', 'Get my Invite')];
},
powered: 'powered by ',
not_a_permitted_channel: 'Not a permitted channel',
no_email_provided: 'No email provided',
signin: (org) => {
return [dom('p.signin',
'or ',
dom(`a href=https://${org}.slack.com target=_top`, 'sign in'),
'.'
)]
},
channelNotFound: (channel) => {
return `Channel not found "${channel}"`
},
invalid_email: 'Invalid email',
mandatory_coc: 'Agreement to CoC is mandatory',
woot: 'WOOT. Check your email!'
}