Last active
June 28, 2017 04:39
-
-
Save gc373/64c19d59b21af125605f9816a725a0a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +import dom from 'vd'; | |
| + | |
| +// Localization prototype | |
| +export default { | |
| + locale: "ja", | |
| + meta: _ => { | |
| + return [dom('meta http-equiv="content-language" content="ja"')] | |
| + }, | |
| + title: (name) => { | |
| + return `${name}のSlackへの参加` | |
| + }, | |
| + join: (name, channels) => { | |
| + return [dom('p', | |
| + dom('b', name), | |
| + // mention single single-channel inline | |
| + channels && channels.length === 1 && dom('span', ' #', channels[0]), | |
| + 'のSlackに参加しましょう' | |
| + )] | |
| + }, | |
| + coc: (coc) => { | |
| + return [ dom('.coc', | |
| + dom('label', | |
| + dom('input type=checkbox name=coc value=1'), | |
| + dom('a', { href: coc, target: '_blank', }, 'Code of Conduct'), | |
| + '利用規約に同意する' | |
| + ) | |
| + ) | |
| + ] | |
| + }, | |
| + state: (active, total) => { | |
| + return active ? | |
| + [ dom('b.active', active), '人がアクティブです。', | |
| + '登録者', dom('b.total', total), '人'] : | |
| + [ dom('b.total', total), '人のユーザーが登録されています。.']; | |
| + }, | |
| + getinvite: _ => { | |
| + return [dom('button.loading', '招待メールを送信')]; | |
| + }, | |
| + powered: 'powered by ', | |
| + not_a_permitted_channel: '許可されていないチャンネルです', | |
| + no_email_provided: 'メールアドレスが入力されていません', | |
| + signin: (org) => { | |
| + return [dom('p.signin', | |
| + 'または', | |
| + dom(`a href=https://${org}.slack.com target=_top`, 'ログイン'), | |
| + '.' | |
| + )] | |
| + }, | |
| + channelNotFound: (channel) => { | |
| + return `チャンネルが見つかりません "${channel}"` | |
| + }, | |
| + invalid_email: 'メールアドレスが不正です', | |
| + mandatory_coc: 'Agreement to CoC is mandatory', | |
| + woot: 'やったぜ! メールを確認しましょう!' | |
| +} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment