File size: 1,220 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import i18n from 'i18n-calypso';

export const streamLabels = {
	timeline: () => i18n.translate( 'Timeline' ),
	email: () => i18n.translate( 'Email' ),
};

export const settingLabels = {
	comment_like: () => i18n.translate( 'Likes on my comments' ),
	comment_reply: () => i18n.translate( 'Replies to my comments' ),
	recommended_blog: () => i18n.translate( 'Blog recommendations' ),
	new_comment: () => i18n.translate( 'Comments on my site' ),
	post_like: () => i18n.translate( 'Likes on my posts' ),
	follow: () => i18n.translate( 'Subscriptions' ),
	achievement: () => i18n.translate( 'Site achievements' ),
	mentions: () => i18n.translate( 'Username mentions' ),
	scheduled_publicize: () =>
		i18n.translate( 'Jetpack Social', {
			comment: 'brand Jetpack Social does not need translation',
		} ),
	blogging_prompt: () => i18n.translate( 'Daily writing prompts' ),
	draft_post_prompt: () => i18n.translate( 'Draft post reminders' ),
	store_order: () => i18n.translate( 'New order' ),
};

export const getLabelForStream = ( stream ) =>
	stream in streamLabels ? streamLabels[ stream ].call() : null;

export const getLabelForSetting = ( setting ) =>
	setting in settingLabels ? settingLabels[ setting ].call() : null;