gin-gonic/website

The Russian language is not shown in Gin Docs

Opened this issue · 9 comments

@appleboy They Russian language is not shown in Gin Docs even tho I've added everything was needed there.

Inside config.toml, have a look at the first line of the section for Russian language, it declares the section as Portuguese:

website/config.toml

Lines 133 to 139 in a6b5d1f

[languages.pt]
title = "Gin Web Framework"
description = "Gin Web Framework"
languageName = "Russian"
contentDir = "content/ru"
time_format_default = "02.01.2006"
time_format_blog = "02.01.2006"

Fix this copy and paste error and change line 133 from [languages.pt] to [languages.ru] and see whether it works then.

Please have a look at my PR #274 that makes the website work again.

@deining there's still no russian lang on page even though the PR got merged. image

@deining there's still no russian lang on page even though the PR got merged.

Yes, you are right. But: the current web site doesn't represent the HEAD of repo, deployment of the site after my PR was merged. failed. See this log:

Run hugo --minify
Error: add site dependencies: load resources: loading templates: "/home/runner/work/website/website/themes/docsy/layouts/partials/footer/copyright.html:20:1": parse failed: template: partials/footer/copyright.html:20: unclosed action

Busy right now, I will have a look on this later on. The hugo version used is quite dated, and there may be other issues.

Started with #276 to fix the deployment, but this site hasn't seen care for a long time! Will continue later!

Finished my work on #276, once this PR got merged, Russian language should be selectable!

@appleboy @deining i think we should revert the last merge, cause now the language selector is not working :D

@KostLinux we can wait for @appleboy to merge #280. I used the example Docsy site from Google which fixes most of the broken functionality issues in the website.