Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@richicodes.bsky.socialNov 23, 2026, 4:00 PM

Intl.Locale info: the browser knows your week

getWeekInfo(), getHourCycles() and friends tell you the first day of the week, the weekend, 12 or 24 hours and text direction for any locale, with no library.

#javascript #i18n #intl

richi.codesIntl.Locale info: the browser knows your weekgetWeekInfo(), getHourCycles() and friends tell you the first day of the week, the weekend, 12 or 24 hours and text direction for any locale, with no library.
@fxpm71.bsky.socialNov 23, 2026, 1:17 PM

Benicarló #detonación #controlada

#geolocalizada
#NATO
#Intl #Crm #Crt

Photo, no description
@fxpm71.bsky.socialNov 21, 2026, 7:39 PM

#organized #intl #crime #ecoterrorism

Photo, no description
@fxpm71.bsky.socialNov 21, 2026, 7:33 PM

#elche #Guevara #Alfonso #Guerra #Reagan #Rossell
#organized #intl #crime
#ecoTeRrOrism = #ortiz

Photo, no description
@fxpm71.bsky.socialNov 21, 2026, 7:23 PM

#Giro #Vicario #Alonso
#rivas #italy #ecocrime #ecoterrorism
#organized #intl #crime

#Crimea

Photo, no description
@fxpm71.bsky.socialNov 21, 2026, 3:54 PM

#Chile =/= Elche
#intl #crime #organized

#Chavez #Chivite #Marichalar #CH

#carlos #Herrera #terrorism

?Unknown authorNov 6, 2026, 2:05 PM

It is so so cool that we now have `Intl` and do not have to twist ourselves into pretzels when working with dates.

See how easy it is to implement "relative date" with `Intl`:

#JavaScript #WebDev #Intl

JavaScript code in time-ago.js. const formatter = new Intl.RelativeTimeFormat('en', { numeric: 'auto' }). const UNITS = new Map([['year', 31_536_000], ['month', 2_592_000], ['day', 86_400], ['hour', 3_600], ['minute', 60], ['second', 1]]). function timeAgo(date) { const seconds = (date - Date.now()) / 1000; for (const [unit, size] of UNITS) { if (Math.abs(seconds) >= size || unit === 'second') { return formatter.format(Math.round(seconds / size), unit); } } }. Then: timeAgo(new Date()) gives "now", timeAgo(new Date(Date.now() - 86_400_000)) gives "yesterday", timeAgo(new Date(Date.now() + 3 * 86_400_000)) gives "in 3 days". The formatter line and the return line are highlighted.
@richicodes.bsky.socialNov 3, 2026, 4:00 PM

Intl.Segmenter: split text without breaking emoji

Intl.Segmenter splits a string into the characters, words and sentences a person actually sees, and it is now Baseline Widely available.

#javascript #intl #unicode

richi.codesIntl.Segmenter: split text without breaking emojiIntl.Segmenter splits a string into the characters, words and sentences a person actually sees, and it is now Baseline Widely available.