File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ def extract_glossary_from_html(content)
116
116
term_names = [ ]
117
117
if term_name == "tree-ish (also treeish)"
118
118
term_names = [ 'tree-ish' , 'treeish' ]
119
+ elsif term_name == "arbre-esque (aussi arbresque)"
120
+ term_names = [ '' arbre -esque , 'arbresque' ]
119
121
else
120
122
term_names = [ term_name ]
121
123
end
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ var GitGlossary = {
4
4
tooltip : null ,
5
5
6
6
init : function ( ) {
7
- // Default to English, could be made configurable later
8
- const language = 'en' ;
7
+ const language = document . querySelector ( "html" ) ?. getAttribute ( "lang" ) || 'en' ;
9
8
$ . getJSON ( baseURLPrefix + 'js/glossary/' + language + '.json' )
10
9
. done ( ( data ) => this . onDataLoaded ( data ) ) ;
11
10
window . addEventListener ( 'resize' , ( ) => this . reposition ( ) )
You can’t perform that action at this time.
0 commit comments