Skip to content

Commit

Permalink
Add extra markdown-editor locale
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Oct 6, 2016
1 parent e2e9da5 commit 3dba1a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../node_modules/angular/angular.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="../node_modules/marked/lib/marked.js"></script>
<script type="text/javascript" src="../node_modules/angular-marked/dist/angular-marked.min.js"></script>
<script type="text/javascript" src="../node_modules/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js"></script>
<script type="text/javascript" src="../node_modules/angular-highlightjs/src/angular-highlightjs.js"></script>

<!-- your ng-app file -->
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="../src/angular-markdown-editor.js"></script>
<script type="text/javascript" src="../src/angular-markdown-editor-locale.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>

<body ng-app="example-app" ng-controller="MainController">
Expand Down
20 changes: 20 additions & 0 deletions src/angular-markdown-editor-locale.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(function($) {
$.fn.markdown.messages['fr'] = {
'Bold': "Gras",
'Italic': "Italique",
'Heading': "Titre",
'URL/Link': "Insérer un lien HTTP",
'Image': "Insérer une image",
'List': "Liste à puces",
'Preview': "Prévisualiser",
'strong text': "texte important",
'emphasized text': "texte souligné",
'heading text': "texte d'entête",
'enter link description here': "entrez la description du lien ici",
'Insert Hyperlink': "Insérez le lien hypertexte",
'enter image description here': "entrez la description de l'image ici",
'Insert Image Hyperlink': "Insérez le lien hypertexte de l'image",
'enter image title here': "entrez le titre de l'image ici",
'list text here': "texte à puce ici"
};
}(jQuery));

0 comments on commit 3dba1a9

Please sign in to comment.