Skip to content

Commit

Permalink
Try to use the new table for Script names
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed Oct 25, 2023
1 parent 320c37d commit c3c1af7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/langtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -8218,6 +8218,10 @@ function reponame2langname(reponame) {
return code2langname[parts[1]]
}

if (parts.length === 3 && parts[2].length === 4) {
return code2langname[parts[1]] + ' (' + code2scriptname[parts[2]] + ')'
}

return code2langname[parts[1]] + ' (' + parts.slice(3).join('-') + ')'
}

Expand Down

0 comments on commit c3c1af7

Please sign in to comment.