KudoAI / chatgpt.js

🤖 A powerful, open source client-side JavaScript library for ChatGPT
https://chatgpt.js.org
MIT License
1.87k stars 122 forks source link

Missing locale #182

Closed thedayofcondor closed 4 months ago

thedayofcondor commented 7 months ago

Hi, the extension currently fails to run with a 404 error from chatgpt.js line 30 Failed to load resource: the server responded with a status of 404 () https://raw.githubusercontent.com/KudoAI/chatgpt.js/main/data/_locales/en_GB/messages.json does not exist

By the way - thank your work - I do not understand why OpenAI insists on a narrow chat window...

Luwa-Tech commented 7 months ago

Looks like en_GB folder does not exist. I assume creating it will fix the issue. @adamlui I would love to be assigned this issue if my proposed solution would fix it. thanks

adamlui commented 7 months ago

Yes @Luwa-Tech that would be great! Sorry @thedayofcondor most my day was tied up securing a second booster (I'm severely afflicted by long COVID since 2020 so need continuous shots) and then I got caught up with some other tasks, one note about the locales is not all browsers support the fetching due to CORS (I tested in Firefox it works well I think) but @Luwa-Tech your proposed fix would at least create the data first, then I need to fix the overall issue of bypassing CORS + logic to default to en if region data is not found

thedayofcondor commented 7 months ago

@adamlui ouch that sucks! Hope you will feel better soon!

Luwa-Tech commented 7 months ago

@adamlui Wishing you a quick recovery and a healthier life. okay.. I'm on it.

adamlui commented 4 months ago

I removed the message fetching for now until/if OpenAI relaxes their CSP