adambard / learnxinyminutes-site

44 stars 61 forks source link

Ukrainian language #95

Open Menelion opened 2 years ago

Menelion commented 2 years ago

Hi @adambard,

I'm still confused about the Ukrainian language in the docs repository.

We have:

  1. Folder name uk-ua which seems correct to me;
  2. All the files have the -ua suffix (c-ua.html.markdown). Shouldn't it be then c-uk instead? I'm not proficient in those things and don't know how the parsers/file processors deal with language codes.

Any ideas would be highly appreciated. Thanks!

adambard commented 2 years ago

How the process works is (approximately and allowing for mistakes in my recollection):

So, the only thing that really matters for article discovery is the language tag on the document itself. The filename and the directory are manifested in the generated URL, but don't matter much outside of this.

If there are Ukrainian-language articles that are not appearing, most likely some error in parsing of either the yaml file header ("frontmatter") or the article itself (usually an unrecognized syntax highlighter) is preventing it from being picked up at the start of this process.