PageSourceSearch

https://www.sweg.de/assets/js/_utilities/getter/get-language.js

js sweg.de collected 2026-10-02 03:28:02 UTC 336 bytes, 21 lines download raw bytes

1/**
2 * Get the current html language.
3 * @module get-language
4 * @exports getLanguage
5 * @public
6 * @author [email protected]
7 */
8
9'use strict';
10
11/**
12 * @function getLanguage
13 * @return {string}
14 */
15export function getLanguage() {
16  return document
17    .documentElement
18    .getAttribute('lang')
19    .split('-')[0]
20    .toLowerCase();
21}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.