elk-zone / elk

A nimble Mastodon web client
https://elk.zone
MIT License
5.38k stars 554 forks source link

Support more languages #1760

Open salarua opened 1 year ago

salarua commented 1 year ago

Several languages supported by Mastodon-FE are missing from Elk.

The specific languages missing are:

stackblitz[bot] commented 1 year ago

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

salarua commented 1 year ago

I finally looked and I saw that the languages for the post language selector are simply imported from somewhere else. This may be an upstream issue.

shuuji3 commented 1 year ago

Yes, the languages in the post language selector came from npm library named iso-639-1 (ref. https://github.com/shuuji3/elk/blob/8c881f4d904b9e9eddd8359005d1388820fc9701/composables/langugage.ts).

Maybe because some languages are not included 639-1: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes

shuuji3 commented 1 year ago

Mastodon is hardcoding some of the languages from ISO-639-3: https://github.com/mastodon/mastodon/blob/e675c10d1926fcc8801813cfdb5be5bd58392c2d/app/helpers/languages_helper.rb#L191-L207.

zordsdavini commented 7 months ago

Also from ISO 639-3: