File extensions are not 1:1 unique with languages
ianlewis opened this issue · 0 comments
ianlewis commented
For example, the .ts
file extension is used by TypeScript as well as QT translation files which are in XML format.
The languages.yml
file includes this for both languages but linguist
internally links extensions to languages using a map
. This will result in the last entry added to the map winning.
Currently LanguageByFilename
returns a string. We should probably deprecate it and introduce a version of this function that returns a list of matching languages.