Skip to content

Commit f952bc7

Browse files
committed
set language correctly
1 parent 29f84e3 commit f952bc7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

script/update-docs.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def extract_glossary_from_html(content)
116116
term_names = []
117117
if term_name == "tree-ish (also treeish)"
118118
term_names = ['tree-ish', 'treeish']
119+
elsif term_name == "arbre-esque (aussi arbresque)"
120+
term_names = [''arbre-esque, 'arbresque']
119121
else
120122
term_names = [term_name]
121123
end

static/js/glossary.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ var GitGlossary = {
44
tooltip: null,
55

66
init: function() {
7-
// Default to English, could be made configurable later
8-
const language = 'en';
7+
const language = document.querySelector("html")?.getAttribute("lang") || 'en';
98
$.getJSON(baseURLPrefix + 'js/glossary/' + language + '.json')
109
.done((data) => this.onDataLoaded(data));
1110
window.addEventListener('resize', () => this.reposition())

0 commit comments

Comments
 (0)