Import your Last.fm and Spotify listening history to the AT Protocol network using the fm.teal.alpha.feed.play lexicon.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: locale generation was erroring, adjusted it

+7 -5
+7 -5
src/utils/helpers.ts
··· 8 8 */ 9 9 function getUserLocale(): string { 10 10 // Try to get locale from environment variables 11 - const envLang = process.env.LANG?.split('.')[0] || process.env.LC_ALL?.split('.')[0]; 12 - 11 + const envLang = process.env.LANG?.split('.')[0] || 12 + process.env.LC_ALL?.split('.')[0]; 13 + 13 14 // Filter out invalid locales (like "C" or "POSIX") 14 15 if (envLang && envLang !== 'C' && envLang !== 'POSIX') { 15 - return envLang; 16 + // FIX: Replace underscore with hyphen to satisfy BCP 47 (e.g., en_GB -> en-GB) [cite: 413, 414] 17 + return envLang.replace('_', '-'); 16 18 } 17 - 19 + 18 20 // Try system locale 19 21 try { 20 22 const systemLocale = Intl.DateTimeFormat().resolvedOptions().locale; ··· 24 26 } catch (e) { 25 27 // Ignore errors 26 28 } 27 - 29 + 28 30 // Default to UK format 29 31 return 'en-GB'; 30 32 }