PageSourceSearch

https://cooptic.be/carto-tourisme/javascripts/yeswiki-base-no-defer.js?v=4.6.9

js cooptic.be collected 2026-10-05 19:05:40 UTC 1,237 bytes, 46 lines download raw bytes

1function _t(message, replacements = {}) {
2  let translation =
3    typeof wiki !== 'undefined' && wiki.lang !== undefined
4      ? (wiki.lang[message] ?? null)
5      : null
6  if (!translation) {
7    translation = message
8    if (typeof wiki !== 'undefined' && wiki.isDebugEnabled) {
9      console.warn(
10        `Translation was not found in wiki.lang for "${message}", (wiki.locale = ${wiki.locale})`,
11      )
12    }
13  }
14  for (const key in replacements) {
15    while (translation.includes(`{${key}}`)) {
16      translation = translation.replace(`{${key}}`, replacements[key])
17    }
18  }
19  return translation
20}
21
22var wiki = {
23  ...(typeof wiki !== 'undefined' ? wiki : null),
24  ...{
25    url(url, params = {}) {
26      let result = wiki.baseUrl + url
27      result = result.replace('??', '?')
28      const stringParams = []
29      for (const key in params) {
30        stringParams.push(`${key}=${encodeURIComponent(params[key])}`)
31      }
32      if (stringParams.length) {
33        result += result.includes('?') ? '&' : '?'
34        result += stringParams.join('&')
35      }
36      return result
37    },
38    cssVar(varName) {
39      return getComputedStyle(document.documentElement).getPropertyValue(
40        varName,
41      )
42    },
43  },
44}
45
46window._t = _t

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.