apertium / apertium/apertium-html-tools

list of languages incorrectly localised

Open
#210 10 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
41
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Expected behaviour:
- If language name is localised, display that
- Else if language name is natively localised, display native name
- Else display ISO code

Current behaviour:
- If language name is localised, display that
- Else if language name is natively localised and has a two-letter code, display native name
- Else display ISO code

Here's an example:
`http://turkic.apertium.org:8080/listLanguageNames?locale=arg` returns
```
{"es": "espanyol", "cs": "checo", "eo": "esperanto", "kaa": "karakalpak", "cu": "eslau eclesiastico", "as": "asam\u00e9s", "nl": "neerland\u00e9s", "th": "tailand\u00e9s", "ast": "asturiano", "sma": "sami meridional", "ru": "ruso", "bg": "bulgaro", "udm": "udmurt", "sw": "suahili", "ckb": "kurd sorani", "fi": "fin\u00e9s", "ta": "tamil", "nog": "nogai", "tg": "tadjik", "no": "noruego", "se": "sami septentrional", "mk": "macedonio", "fy": "fris\u00f3n oriental", "ia": "interlingua", "gn": "guaran\u00ed", "gd": "gaelico escoc\u00e9s", "vi": "vietnamita", "ht": "haitiano", "az": "azeri", "zu": "zul\u00fa", "sh": "serbocrovata", "gv": "manx", "it": "italiano", "sq": "alban\u00e9s", "ms": "malayo", "de": "alem\u00e1n", "hu": "hongaro", "ml": "malayalam", "kk": "kazakho", "te": "telugu", "lb": "luxemburgu\u00e9s", "el": "griego", "fa": "persa", "br": "bret\u00f3n", "lg": "ganda", "ur": "urd\u00fa", "smj": "sami lule", "uk": "ucrainiano", "ceb": "cebuano", "is": "island\u00e9s", "tet": "tetun", "oc": "occit\u00e1n", "kum": "kumiko", "ca": "catal\u00e1n", "pa": "panchab\u00ed", "nn": "noruego nynorsk", "tk": "turcomano", "ba": "baixkir", "tl": "tagalog", "uz": "uzbeko", "mr": "marathi", "csb": "caixubio", "dsb": "baixo sorabo", "myv": "mordoviano erza", "tt": "tartre", "bua": "buriat", "hr": "crovata", "bi": "bislama", "lo": "laosiano", "la": "lat\u00edn", "sco": "escoc\u00e8s", "mfe": "mauriciano", "pl": "polon\u00e9s", "ko": "coreano", "sk": "eslovaco", "av": "avaro", "kv": "komi", "an": "aragon\u00e9s", "xh": "xosa", "nb": "noruego bokm\u00e5l", "eu": "basco", "he": "hebreu", "sa": "sanscrito", "gl": "gallego", "ro": "rumano", "mt": "malt\u00e9s", "cv": "chuvaixo", "af": "afrikaans", "lv": "let\u00f3n", "ar": "arabe", "rm": "romanche", "sl": "esloveno", "sr": "serbio", "sc": "sardo", "rup": "arrumano", "zh": "chino", "be": "belorruso", "bn": "bengal\u00ed", "hsb": "alto sorabo", "hi": "hindi", "ga": "irland\u00e9s", "en": "angl\u00e9s", "pt": "portugu\u00e9s", "fr": "franc\u00e9s", "rn": "rundi", "fo": "fero\u00e9s", "et": "estonio", "sv": "sueco", "ne": "nepal\u00e9s", "ku": "kurdo", "hy": "armenio", "sah": "yacuto", "tyv": "tuviniano", "si": "singal\u00e9s", "bs": "bosnio", "cy": "gal\u00e9s", "tr": "turco", "os": "osseto", "ky": "kirgu\u00edz", "lt": "lituano", "da": "dan\u00e9s", "co": "corso", "id": "indonesio"}
```
The dropdown shows the following, with `crh`, `gag`, and `ug` not localised in `arg`:
![2017-11-12-13 18 13_001](https://user-images.githubusercontent.com/963849/32701910-fb66eb00-c7ab-11e7-9da7-7536ea54dfbe.png)

While `ug` is shown with its native name, `crh` and `gag` are not, despite being natively localised, as shown by the output of `http://turkic.apertium.org:8080/listLanguageNames?locale=crh` and `http://turkic.apertium.org:8080/listLanguageNames?locale=gag`, respectively:
```
{"crh": "q\u0131r\u0131mtatarca", "gag": "\u011fa\u011fauz\u00e7a"}
```
```
{"gag": "Gagauz\u00e7a"}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.