gin-gonic / website

Official website and document for Gin
https://gin-gonic.com/
MIT License
120 stars 194 forks source link

The Russian language is not shown in Gin Docs #273

Open KostLinux opened 2 months ago

KostLinux commented 2 months ago

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

deining commented 2 months ago

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

https://github.com/gin-gonic/website/blob/a6b5d1fb116ff092c05f082c7e0a7a9b11555368/config.toml#L133-L139

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

deining commented 2 months ago

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

KostLinux commented 2 months ago

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

deining commented 2 months ago

@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.

deining commented 2 months ago

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

deining commented 2 months ago

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

KostLinux commented 2 months ago

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

luigimorel commented 2 weeks ago

@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.

luigimorel commented 2 weeks ago

@KostLinux @appleboy
image