PageSourceSearch

https://sharethemeal.org/assets/useCountryList-BFWfsNxT.js

js sharethemeal.org collected 2026-10-01 10:13:04 UTC 637 bytes, 1 lines download raw bytes

1import{t as o}from"./chunk-4N6VE7H7-Exqj4PTM.js";import{E as r}from"./constants-CmaRX5ba.js";import{u as i}from"./useTranslation-AnhJcB0n.js";const g=async(e,t,s)=>{const n=`/country-lists/${e}.json`;try{const a=s?await fetch(n,s):await fetch(n);if(!a.ok)throw new Response(r.PAGE_LOAD,{status:500});return await a.json()}catch{throw new Response(r.PAGE_LOAD,{status:500})}},h=e=>{const{i18n:t}=i(),[s,n]=o.useState(e),[a,u]=o.useState(t.language);return o.useEffect(()=>{(async()=>{if(s.length&&t.language===a)return;const c=await g(t.language);n(c),u(t.language)})()},[t.language,a,s.length]),{localisedCountryList:s}};export{h as u};

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.