1window.languageStorage = { 2 3 getBrowserLanguage: function () { 4 return navigator.language || navigator.userLanguage || 'fr'; 5 }, 6 7 getCultureFromCookie: function () { 8 const match = document.cookie.match(/(^|;\s*)\.AspNetCore\.Culture=([^;]+)/); 9 if (!match) return null; 10 const decoded = decodeURIComponent(match[2]); 11 const langMatch = decoded.match(/c=([a-z]{2})/i); 12 return langMatch ? langMatch[1] : null; 13 }, 14 15 setDocumentLanguage: function (lang) { 16 document.documentElement.lang = lang; 17 }, 18 19 setCultureCookie: function (lang) { 20 const value = encodeURIComponent(`c=${lang}|uic=${lang}`); 21 const expires = new Date(); 22 expires.setFullYear(expires.getFullYear() + 1); 23 document.cookie = `.AspNetCore.Culture=${value};expires=${expires.toUTCString()};path=/;SameSite=Lax`; 24 } 25};
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.