Created
November 29, 2012 23:09
-
-
Save chrisb/4172555 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
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