-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync function not working in some language env #512
Comments
…orate#512) When trying to perform an OAuth flow to enable synchronization, there is a need to redirect to an URL in the iorate.github.io/ublacklist/ website to finish the process. The extension was wrongfully redirecting to pages localized pages that don't exist yet.
Hey there. After some investigation, I found that this issue is mainly being caused by two things:
The second thing is something that only Considerations about the second optionI think that adding a page that doesn't exist to the Although, to be fair, the page is not even seen by the user if everything goes well, so it probably would matter that much. Code changesThe current version of the function returns a localized version of the callback page, but the problem is that it checks for the extension's i18n files, not the website's. This is a problem because even though the extension itself has a Korean version, the documentation website doesn't. ublacklist/src/scripts/locales.ts Lines 19 to 24 in 5a86624
I added this extra condition, and after some basic testing, it seems that the issue is fixed (I tested only on Dropbox): I haven't made a PR yet because the solution is still somewhat crude, since the localized values are hard-coded (which is not ideal). I will try to come up with something better, but if @iorate beats me to it, I hope this can be of some help. |
@HoneyLuka @aug-dev I appreciate your report and investigation. I think the problem is located here:
Since this entry is translated despite the lack of a Korean translation of the website, |
🎉 This issue has been resolved in version 8.9.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Actual Behavior
Both Google Drive and Dropbox is not working in ko env
Steps to Reproduce the Problem
as shown above, the key point is the callback url is mismatch
The correct url is
https://iorate.github.io/ublacklist/callback
But in ko env, it change to
https://iorate.github.io/ublacklist/ko/callback
I suggest user to change browser language to en, it solved the problem.
The text was updated successfully, but these errors were encountered: