 
     return {link:link, require:"ngModel"}
 
-module.directive("tgMarkitup", ["$rootScope", "$tgResources", tgMarkitupDirective])
+module.directive("tgMarkitup", ["$rootScope", "$tgResources", "$tgI18n", tgMarkitupDirective])

                    separator: '---------------'
                },
                {
                    name: $i18next.t('markdown-editor.bulleted-list')
                    openWith: '- '
                },
                {
                    name: $i18next.t('markdown-editor.numeric-list')
                    openWith: (markItUp) -> markItUp.line+'. '
                },
                {
                    separator: '---------------'
                },
                {
                    name: $i18next.t('markdown-editor.picture')
                    key: "P"
                    replaceWith: '![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'
                },
                {
                    name: $i18next.t('markdown-editor.link')
                    key: "L"
                    openWith: '['
                    closeWith: ']([![Url:!:http://]!] "[![Title]!]")'
                    placeHolder: $i18next.t('markdown-editor.link-placeholder')
                },
                {
                    separator: '---------------'
                },
                {
                    name: $i18next.t('markdown-editor.quotes')
                    openWith: '> '
                },
                {
                    name: $i18next.t('markdown-editor.code-block')
                    openWith: '```\n'
                    closeWith: '\n```'
                },
                {
                    separator: '---------------'
                },
                {
                    name: $i18next.t('markdown-editor.preview')
                    call: preview
                    className: "preview-icon"
                },


            markupSet: [
                {
                    name: $tr.t("markdown-editor.heading-1")
                    key: "1"
                    placeHolder: $tr.t("markdown-editor.placeholder")
                    closeWith: (markItUp) -> markdownTitle(markItUp, "=")
                },
                {
                    name: $tr.t("markdown-editor.heading-2")
                    key: "2"
                    placeHolder: $tr.t("markdown-editor.placeholder")
                    closeWith: (markItUp) -> markdownTitle(markItUp, "-")
                },
                {
                    name: $tr.t("markdown-editor.heading-3")
                    key: "3"
                    openWith: "### "
                    placeHolder: $tr.t("markdown-editor.placeholder")
                },
                {
                    separator: '---------------'
                },
                {
                    name: $tr.t("markdown-editor.bold")
                    key: "B"
                    openWith: '**'
                    closeWith: '**'
                },
                {
                    name: $tr.t("markdown-editor.italic")
                    key: "I"
                    openWith: '_'
                    closeWith: '_'
                },
                {
                    name: $tr.t("markdown-editor.strike")
                    key: "S"
                    openWith: '~~'
                    closeWith: '~~'
