Skip to content
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

Bug: Duplicate articles for 3-letter code #567

Open
bittlingmayer opened this issue Oct 31, 2023 · 1 comment
Open

Bug: Duplicate articles for 3-letter code #567

bittlingmayer opened this issue Oct 31, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bittlingmayer
Copy link
Collaborator

A lot of languages at the bottom of https://machinetranslate.org/languages seem to be not supported by any API yet, e.g. https://machinetranslate.org/wln - 0 APIs.

Screenshot 2023-10-31 at 12 54 26

It turns out that these are simply languages for which a 2-letter code exists, but for which an API like Baidu chose to use the 3-letter code, and we generated a page for both codes.

https://github.com/search?q=repo%3Amachinetranslate%2Fmachinetranslate.org%20wln&type=code

So really we only need to list wa.

https://machinetranslate.org/wa
So for language for which a mapping to a canonical code exists in api_languages.json, we should remove the listing of the non-canonical code from languages.json:

Screenshot 2023-10-31 at 13 22 17
@bittlingmayer bittlingmayer added the bug Something isn't working label Oct 31, 2023
@bittlingmayer
Copy link
Collaborator Author

I assume this got added during 8fcd474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants