3 ms·
Naive question: The github page says 62% of the languages used in this repo is FreeMarker. I checked the repo and every file I look at is js, what and where is
by hojjat12000 5y ago
Naive question: The github page says 62% of the languages used in this repo is FreeMarker. I checked the repo and every file I look at is js, what and where is FreeMarker?
- timvisee 5y agoI don't know. Have been asking myself the same question the past month.
- TheDong 5y agoI think it's the locale files, like this one: https://github.com/timvisee/send/blob/master/public/locales/ja/send.ftl https://github.com/timvisee/send/blob/master/public/locales/... If you look at github/linguist, that's what recognizes languages in repos. It has this rule for FreeMarker: https://github.com/github/linguist/blob/32ec19c013a7f81ffaeead25e6e8f9668c7ed574/lib/linguist/languages.yml#L1706-L1715 https://github.com/github/linguist/blob/32ec19c013a7f81ffaee... It seems a .ftl extension means FreeMarker to linguist, so those localizations show up as such.
- timvisee 5y agoIt should be excluded from the stats as it's marked as documentation though: https://github.com/timvisee/send/blob/master/.gitattributes https://github.com/timvisee/send/blob/master/.gitattributes
- TheDong 5y agoIt shouldn't be excluded because that pattern doesn't match any of the files. If you run `git check-attr --all public/locales/foo/send.ftl` with the current .gitattr file, you'll get no attributes. If you update the attr match to `public/locales/**` or `public/locales/**/*.ftl`, then the `check-attr` command above will match it and show 'linguist-documentation'.
- niea_11 5y agoI think this has something to do with the repo being a fork. The parent repo doesn't have this issue. The "languages" list doesn't mention Freemarker on https://github.com/mozilla/send https://github.com/mozilla/send
- niea_11 5y agoI can't find any freemarker templates on the project, but apparently it's using i18n files with an ".ftl" extension which is the default extension for freemarker templates. Ex: https://github.com/timvisee/send/blob/master/public/locales/es-ES/send.ftl https://github.com/timvisee/send/blob/master/public/locales/...
- sciurus 5y agoYeah, those files are for https://projectfluent.org/ https://projectfluent.org/
- chungy 5y agoGitHub's language "detection" is ridiculously naïve and basically limited to examining file names only, not content.