Creating a list of language names in the local language
- Dominant language
- No language data
- Stars
- 24
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Update: use [`@olizilla/lol`](https://github.com/olizilla/lol)
---
Transifex has an api that'll let you get info about the languages it supports
https://docs.transifex.com/api/language-info
```console
$ curl -i -L --user api: -X GET https://www.transifex.com/api/2/language/pt_BR/
{
"rtl": false,
"pluralequation": "language.pluralequation",
"code": "pt_BR",
"name": "Portuguese (Brazil)",
"nplurals": 2
}
```
but it gives you the locale in POSIX format, and the languge name in english.
It'd be optimal to only include language names that we currently have translations for, rather than all possible language names, so we could write a script to list the locales directory (in the case of webui) and output a json file with the browser locale and the local language name. I'm stugglin to find a module that supports all the local language names including region modifiers. https://www.npmjs.com/package/langs looks good, but no modifiers.
https://github.com/nohamelin/simple-locale-switcher/wiki/Language-Names-for-Locale-Codes is a nice list, but incomplete. and so on.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the proposed @olizilla/lol package and the Transifex language-info API, then inspect the webui locales directory mentioned in the issue. The work is complete when the supported locales can produce a JSON listing of browser locale codes and their language names in the local language, including region modifiers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- internationalization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100