Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function wysiwymTslt(strKey) {
var locale = $('html').attr('lang');
return {
'bold': { en: 'Bold', fr: '' },
'italic': { en: 'Italic', fr: '' },
'italics': { en: 'italics', fr: '' },
'link': { en: 'Link', fr: '' },
'blockquote': { en: 'Blockquote', fr: '' },
'large_code_block': { en: 'Large Code Block', fr: '' },
'quote': { en: 'Quote', fr: '' },
'strong_text': { en: 'strong text', fr: '' },
'italic_text': { en: 'italic text', fr: '' },
'link_text': { en: 'link text', fr: '' },
'quote_text': { en: 'quote text', fr: '' },
'code_text': { en: 'code text', fr: '' },
'bullet_list': { en: 'Bullet List', fr: '' },
'number_list': { en: 'Number List', fr: '' },
'code': { en: 'Code', fr: '' },
'spoiler': { en: 'Spoiler', fr: '' },
'header': { en: 'Header', fr: '' },
'list_item': { en: 'list item', fr: '' },
'begin_lines_with_4_spaces': { en: 'Begin lines with 4 spaces', fr: '' },
'inline_code_block': { en: 'Inline Code Block', fr: '' },
'inline_code': { en: 'inline_code', fr: '' }
}[strKey][locale];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment